r/collectd: Enable unixsock plugin

The *unixsock* plugin for *collectd* provides a socket-based interface
that other software can use to communicate with *collectd*.  Notably,
this can be used to publish custom values, query existing values, and
flush caches.

The socket is created at `/run/collectd/socket`.  The `/run/collectd`
directory is managed by systemd; it will be created automatically when
the service starts and cleaned up when it stops.
This commit is contained in:
2021-10-30 16:44:21 -05:00
parent 98401b3c1e
commit 32d1e0ff6f
5 changed files with 51 additions and 0 deletions

View File

@@ -1,3 +1,8 @@
- name: reload systemd
systemd:
daemon_reload: true
changed_when: true
- name: restart collectd
service:
name: collectd