Ad Widget

Collapse

Arguments with remote commands?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Borrie
    Junior Member
    • Jun 2006
    • 18

    #1

    Arguments with remote commands?

    Hi All, i hope you can help me with the following problem;

    when i create a remote command, it runs without an argument, but with an argument it won't run;

    What i do;

    server.com:/home/zabbix/sendsms '+1234567890' 'Alert'

    if u run the command on the console it runs normally and i receive an sms message. (the zabbix user does have rwx permissions (chmod 777 to make it easy for me )

    What the logfile says;

    Code:
    010412:20060628:113907 Got line:system.run[/home/zabbix/sendsms '+1234567890' 'Alert',nowait
    010412:20060628:113907 Sending back:ZBX_NOTSUPPORTED
    When i run the script without arguments, zabbix does run normally:
    Code:
    010409:20060628:122439 Got line:system.run[/home/zabbix/sendsms,nowait]
    010409:20060628:122439 RUN_COMMAND cmd = 'system.run[/homw/zabbix/sendsms,nowait]'
    Does anyone know what goes wrong?

    Thanks for helping me out!
Working...