* [PATCH] zabbix_agentd: Set passive check agents to 3 by default
@ 2025-03-28 23:23 Robin Roevens
2025-03-28 23:23 ` [PATCH] zabbix_agentd: Set passive check agents to 3 by default on new installations Robin Roevens
0 siblings, 1 reply; 2+ messages in thread
From: Robin Roevens @ 2025-03-28 23:23 UTC (permalink / raw)
To: development
Hi again
Sorry for the spam, but it seems I made a mistake by setting the number
of Zabbix agent forks to 0 in my last patch.
TLDR; That change breaks the monitoring of OpenVPN Clients in the Zabbix
monitoring template I provide and promote on the IPFire wiki.
After upgrading to Zabbix Agent v7 I noticed it forking 10 instances on
my mini appliance (old version) in contrary to only 3 instances on
previous versions of Zabbix agent, and I wrongly thought my monitoring
template for it is only using active checks, so I concluded that we simply
don't need passive checks unless a user decides otherwise.
But I forgot that for monitoring OpenVPN clients, my template generates
new hosts (one for each client) on the Zabbix Server, all pointing to the
same IPFire instance. But those hosts representing OpenVPN clients won't
receive the results of their checks if they are set to active, since
active checks relies on the hostname of the IPFire instance to be the
same as the hostname set in the Zabbix Server. And that is not the case
for those OpenVPN clients.
Regards
Robin
--
Dit bericht is gescanned op virussen en andere gevaarlijke
inhoud door MailScanner en lijkt schoon te zijn.
^ permalink raw reply [flat|nested] 2+ messages in thread
* [PATCH] zabbix_agentd: Set passive check agents to 3 by default on new installations.
2025-03-28 23:23 [PATCH] zabbix_agentd: Set passive check agents to 3 by default Robin Roevens
@ 2025-03-28 23:23 ` Robin Roevens
0 siblings, 0 replies; 2+ messages in thread
From: Robin Roevens @ 2025-03-28 23:23 UTC (permalink / raw)
To: development; +Cc: Robin Roevens
Zabbix Agent since v7 by default forks 10 instances to listen for and concurrently execute incoming (passive) checks. This was only 3 in previous versions and should be plenty on an IPFire instance where resources can be scarce.
Users with an existing installation will have to manually add the parameter to their config if they don't want the Zabbix new default of 10 . This will be documented in the wiki.
Signed-off-by: Robin Roevens <robin.roevens@disroot.org>
---
config/zabbix_agentd/zabbix_agentd.conf | 13 +++++++------
1 file changed, 7 insertions(+), 6 deletions(-)
diff --git a/config/zabbix_agentd/zabbix_agentd.conf b/config/zabbix_agentd/zabbix_agentd.conf
index a5a608d83..c9e041113 100644
--- a/config/zabbix_agentd/zabbix_agentd.conf
+++ b/config/zabbix_agentd/zabbix_agentd.conf
@@ -13,12 +13,13 @@
Server=127.0.0.1
ServerActive=127.0.0.1
-# Number of pre-forked instances of zabbix_agentd that process passive checks.
-# On IPFire this is set to 0 to disable passive checks and only allow active
-# checks by default.
-# Set this value in a range of 1-100 to enable passive checks or comment it
-# out to revert to the Zabbix agent default (10).
-StartAgents=0
+# Number of pre-forked instances of zabbix_agentd that concurrently process
+# passive checks.
+# On IPFire this is by default set to 3 to minimize the required resources.
+# This parameter can be increased up to 100 if you have a lot of slow-running
+# checks, and the agent acts as the bottleneck.
+# Or set to 0 to disable passive checks.
+StartAgents=3
# List of comma delimited IP addresses that the agent should listen on
# for passive checks.
--
2.49.0
--
Dit bericht is gescanned op virussen en andere gevaarlijke
inhoud door MailScanner en lijkt schoon te zijn.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2025-03-28 23:36 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-03-28 23:23 [PATCH] zabbix_agentd: Set passive check agents to 3 by default Robin Roevens
2025-03-28 23:23 ` [PATCH] zabbix_agentd: Set passive check agents to 3 by default on new installations Robin Roevens
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox