]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
zabbix_agentd: Set passive check agents to 3 by default on new installations.
authorRobin Roevens <robin.roevens@disroot.org>
Fri, 28 Mar 2025 23:23:32 +0000 (00:23 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Sun, 30 Mar 2025 13:07:09 +0000 (13:07 +0000)
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>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
config/zabbix_agentd/zabbix_agentd.conf

index a5a608d83c6ddc8aebcd1e0323b3e107b3a8a9cd..c9e041113dccfe7f48270c8615f4471d076cf08d 100644 (file)
 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.