r/collectd: Max unixsock plugin optional

Some hosts may not need this plugin, or may not have it installed.
Notably, it is not needed or used on my systems based on Buildroot,
since the only current use case for it is to keep track of the Fedora
version.
btop
Dustin 2022-07-18 18:10:26 -05:00
parent 4aedeef546
commit 31fe128d48
2 changed files with 3 additions and 0 deletions

View File

@ -14,4 +14,5 @@ collectd_plugins_defaults:
collectd_df: {} collectd_df: {}
collectd_unixsock_plugin: true
collectd_load_unixsock_plugin: true collectd_load_unixsock_plugin: true

View File

@ -1,3 +1,4 @@
{% if collectd_unixsock_plugin %}
{% if collectd_load_unixsock_plugin %} {% if collectd_load_unixsock_plugin %}
LoadPlugin unixsock LoadPlugin unixsock
{% endif %} {% endif %}
@ -16,3 +17,4 @@ LoadPlugin unixsock
DeleteSocket false DeleteSocket false
{% endif %} {% endif %}
</Plugin> </Plugin>
{% endif %}