Ad Widget

Collapse

Remote Command Problem

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • clahti
    Senior Member
    • Jan 2007
    • 126

    #1

    Remote Command Problem

    Hello all:

    I am running version 2.0.6 and am having a problem running a "remote command" from the Actions. I have defined:

    /srv/myfoomonitor_monitor/current/myfooscript restart

    as a second action after sending an alert email. The email gets sent just fine, and I see in the zabbix_agentd.conf log file:

    Executing command '/srv/sl_meter_payment_api_monitor/current/meter_payment_api restart'

    remote commands are enabled in the zabbix_agentd.conf file, and the script resides on the zabbix server. Regardless of selecting "run on" either the zabbix server or zabbix agent (they are the same box) nothing seems to happen even though zabbix says it ran it. The script is owned by zabbix, privs are correct. In fact if I copy and paste the log entry in a shell as user zabbix the script runs just fine. Am I missing something?

    I turned up logging to debug level 4, and I get no further useful information than the above that I can see.

    Thanks!
Working...