From mboxrd@z Thu Jan  1 00:00:00 1970
From: jon <jon.murphy@ipfire.org>
To: development@lists.ipfire.org
Subject: Change to collectd.conf and collect.custom
Date: Mon, 16 Jan 2023 22:10:36 -0600
Message-ID: <28C93A89-EA8C-4183-8139-257A7268C8A3@ipfire.org>
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="===============3420957563214739635=="
List-Id: <development.lists.ipfire.org>

--===============3420957563214739635==
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: quoted-printable

All,

I=E2=80=99d 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://ipfir=
e.localdomain:444/cgi-bin/services.cgi WebGUI page.

Why you ask?  Mostly because smbd, nmbd, squidguard, qemu, or mpd are not use=
d (at least by me!).  And so the users of those items are not left out, I=E2=
=80=99d 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 =E2=80=9Csshd"		to			Process "sshd"
	Process =E2=80=9Csmbd"		this			Process "squid"
	Process =E2=80=9Cnmbd=E2=80=9D		--->			Process "charon"
	Process "squid"					Process "openvpn"
	Process =E2=80=9Csquidguard"			</Plugin>
	Process =E2=80=9Ccharon"				=09
	Process =E2=80=9Copenvpn"				=09
	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=E2=80=99t want to overwrite the `/etc/collectd.custo=
m` file incase an admin has modified it for their own use. =20


The big question
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D

So how do I change the `collectd.custom` file in `ipfire-2.x/config/collectd`=
 AND not overwrite the admin=E2=80=99s `/etc/collectd.custom` file?





--===============3420957563214739635==--