From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bernhard Bitsch To: development@lists.ipfire.org Subject: Re: Change to collectd.conf and collect.custom Date: Tue, 17 Jan 2023 14:50:18 +0100 Message-ID: In-Reply-To: <28C93A89-EA8C-4183-8139-257A7268C8A3@ipfire.org> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1676654186182398496==" List-Id: --===============1676654186182398496== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable 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.=20 Therefore these should be deleted in case of uninstallation of a addon. Regards, Bernhard Am 17.01.2023 um 05:10 schrieb jon: > All, >=20 > I=E2=80=99d like to make a change to the `/etc/collectd.conf` to remove a f= ew monitored processes. The items appear in the section o= f the config file. And the processes appear at the bottom of the https://ipf= ire.localdomain:444/cgi-bin/services.cgi WebGUI page. >=20 > Why you ask? Mostly because smbd, nmbd, squidguard, qemu, or mpd are not u= sed (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`. >=20 > So overall idea is the core processes would be in `collectd.conf` file. An= d the add-on processes will be in `collect.custom`. >=20 > This is a snip of the plugin process section of the `collectd.conf` file: >=20 > ``` > > 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" > Process =E2=80=9Ccharon" =09 > Process =E2=80=9Copenvpn" =09 > Process "qemu" > Process "mpd" > > ``` >=20 >=20 > The items removed from the `collectd.conf` file would move to `collect.cust= om`. >=20 > > Process "smbd" > Process "nmbd" > Process "squidguard" > Process "qemu" > Process "mpd" > >=20 >=20 > But the problem is I don=E2=80=99t want to overwrite the `/etc/collectd.cus= tom` file incase an admin has modified it for their own use. >=20 >=20 > The big question > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D >=20 > So how do I change the `collectd.custom` file in `ipfire-2.x/config/collect= d` AND not overwrite the admin=E2=80=99s `/etc/collectd.custom` file? >=20 >=20 >=20 >=20 --===============1676654186182398496==--