From mboxrd@z Thu Jan 1 00:00:00 1970 From: Robin Roevens To: development@lists.ipfire.org Subject: [PATCH] zabbix_agentd: Add IPFire services.get item Date: Tue, 10 Sep 2024 23:12:30 +0200 Message-ID: <20240910212924.1685603-1-robin.roevens@disroot.org> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============2238914255737384276==" List-Id: --===============2238914255737384276== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Hi all, This patch introduces again the ability for Zabbix to get information about the running IPFire services. This functionality was already submitted a long while ago but was rejected because the perl script behind it contained the same 'ugly code' as services.cgi contained back then. Meanwhile the code of services.cgi was updated by both me, adding more generic addon services discovery using new pakfire functions, and more recently by Michael with new general functions for finding pids and memory consumption of services. So I now refactored my services-discovery-perl-script, that will be used by the zabbix-agent if the Zabbix server requests services information, to use the same methods as currently used in services.cgi, using those new functions, hoping that this feature now can be accepted into IPFire. Note: I don't change the PAKVER in this patch, which should not be needed if this patch is applyed shortly after my previous patch updating zabbix_agentd to v6.0.33 Regards Robin --===============2238914255737384276==--