Collectd: Safe to add custom conf files?

flatline69

Dabbler
Joined
Jan 30, 2021
Messages
29
I have some custom configuration files for collectd (dumped into influxdb for grafana.) Is it safe to add them or would they get clobbered on reboot when /etc is populated?
 

Patrick M. Hausen

Hall of Famer
Joined
Nov 25, 2013
Messages
7,776
The configuration will be reset after each reboot. You could create a shell script that adds your specific config and restarts collectd. Than add that as a post-startup task.
 

flatline69

Dabbler
Joined
Jan 30, 2021
Messages
29
The configuration will be reset after each reboot. You could create a shell script that adds your specific config and restarts collectd. Than add that as a post-startup task.

Even if they're under /etc/collectd.d/ ? I haven't tested it yet myself but it'd be handy.

edit: answer my own question; it's do-able but /etc/collectd/collectd.conf needs to be patched every reboot for the include statements (or otherwise add to.)
 
Last edited:
Top