Hi,
good idea. Why not put these 'addon' definitions into a file /etc/collectd.addons ? One problem rermains. services.cgi displays all existent collectd RRDs. Therefore these should be deleted in case of uninstallation of a addon.
Regards, Bernhard
Am 17.01.2023 um 05:10 schrieb jon:
All,
I’d like to make a change to the `/etc/collectd.conf` to remove a few monitored processes. The items appear in the <Plugin processes> section of the config file. And the processes appear at the bottom of the https://ipfire.localdomain:444/cgi-bin/services.cgi WebGUI page.
Why you ask? Mostly because smbd, nmbd, squidguard, qemu, or mpd are not used (at least by me!). And so the users of those items are not left out, I’d like to move those items to a `collect.custom`.
So overall idea is the core processes would be in `collectd.conf` file. And the add-on processes will be in `collect.custom`.
This is a snip of the plugin process section of the `collectd.conf` file:
<Plugin processes> <Plugin processes> Process “sshd" to Process "sshd" Process “smbd" this Process "squid" Process “nmbd” ---> Process "charon" Process "squid" Process "openvpn" Process “squidguard" </Plugin> Process “charon" Process “openvpn" Process "qemu" Process "mpd" </Plugin>
The items removed from the `collectd.conf` file would move to `collect.custom`.
<Plugin processes> Process "smbd" Process "nmbd" Process "squidguard" Process "qemu" Process "mpd" </Plugin>
But the problem is I don’t want to overwrite the `/etc/collectd.custom` file incase an admin has modified it for their own use.
The big question
So how do I change the `collectd.custom` file in `ipfire-2.x/config/collectd` AND not overwrite the admin’s `/etc/collectd.custom` file?