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.
21 lines
522 B
Django/Jinja
21 lines
522 B
Django/Jinja
{% if collectd_unixsock_plugin %}
|
|
{% if collectd_load_unixsock_plugin %}
|
|
LoadPlugin unixsock
|
|
{% endif %}
|
|
|
|
<Plugin unixsock>
|
|
SocketFile "/run/collectd/socket"
|
|
{% if collectd_unixsock_group|d %}
|
|
SocketGroup "{{ collectd_unixsock_group }}"
|
|
{% endif %}
|
|
{% if collectd_unixsock_perms|d %}
|
|
SocketPerms "{{ collectd_unixsock_perms }}"
|
|
{% endif %}
|
|
{% if collectd_unixsock_delete|d is true %}
|
|
DeleteSocket true
|
|
{% elif collectd_unix_sock_delete|d is false%}
|
|
DeleteSocket false
|
|
{% endif %}
|
|
</Plugin>
|
|
{% endif %}
|