PDA

View Full Version : Simple UserParameter experiment


modonnell
24-06-2010, 19:16
I have an agent running in Active mode (server is completely unable to initiate any contact with agent behind a firewall) and I'm trying to understand how to get the agent to execute arbitrary scripts and report the results to the server.

At the end of /opt/zabbix/etc/zabbix_agentd.conf I have added the following line:

UserParameter=system.test,echo 42

...and I wonder what changes I need to make on the server side to see the results of that command.

ruswold
24-06-2010, 20:18
I have an agent running in Active mode (server is completely unable to initiate any contact with agent behind a firewall) and I'm trying to understand how to get the agent to execute arbitrary scripts and report the results to the server.

At the end of /opt/zabbix/etc/zabbix_agentd.conf I have added the following line:

UserParameter=system.test,echo 42

...and I wonder what changes I need to make on the server side to see the results of that command.

create item at agent host with zabbix active check system.test