Ad Widget

Collapse

Simple UserParameter experiment

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • modonnell
    Junior Member
    • Apr 2010
    • 17

    #1

    Simple UserParameter experiment

    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
    Senior Member
    • Mar 2010
    • 210

    #2
    Originally posted by modonnell
    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

    Comment

    Working...