Posted by Ricardo Santos in agent, scripts, zabbix
on Mar 28th, 2011 | 4 comments
Every time that you need to add or change an UserParameter on zabbix_agentd.conf you need to restart the agent. It’s easy if you have less than 10 servers, but could be a trouble if you have more than 30 servers.
Automation Tools like CFEngine and Puppet do this work well done, but unfortunately they aren’t used in many companies.
But it’s possible using a Dynamic UserParameter:
1) add two lines on zabbix_agentd.conf and restart the agent:
UserParameter=custom.getvalue[*],/etc/zabbix/zabbix_agentd/custom_getvalue $1 $2 $3 $4...