Ad Widget

Collapse

Character limits on Remote Commands?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • rbarrero
    Junior Member
    • Mar 2007
    • 21

    #1

    Character limits on Remote Commands?

    It seems that remote commands with really long paths return ZBX_NOTSUPPORTED.

    Here is the log of a remote command that fails to execute:
    sudo /etc/rc.d/init.d/httpd-arincd3phweb start

    ###
    003346:20070303:025151 Got line:system.run["sudo /etc/rc.d/init.d/httpd-arincd3phweb start",now
    003346:20070303:025151 Sending back:ZBX_NOTSUPPORTED
    ###
    Here is the log of a remote command that executes:
    sudo /etc/init.d/httpd-arincd3phweb start

    ###
    003347:20070303:025445 Got line:system.run["sudo /etc/init.d/httpd-arincd3phweb start",nowait]
    003347:20070303:025445 RUN_COMMAND cmd = 'system.run["sudo /etc/init.d/httpd-arincd3phweb start",nowait]'
    003347:20070303:025445 RUN_COMMAND flag = 'nowait'
    003347:20070303:025445 Run remote command '"sudo /etc/init.d/httpd-arincd3phweb start"'
    003347:20070303:025445 RUN_COMMAND to be started as NOWAIT
    ###

    Is this a bug?

    Thanks!
  • Alexei
    Founder, CEO
    Zabbix Certified Trainer
    Zabbix Certified SpecialistZabbix Certified Professional
    • Sep 2004
    • 5654

    #2
    Replace

    system.run["sudo /etc/init.d/httpd-arincd3phweb start",nowait]

    by

    system.run[sudo /etc/init.d/httpd-arincd3phweb start,nowait]

    Please report if it works.
    Alexei Vladishev
    Creator of Zabbix, Product manager
    New York | Tokyo | Riga
    My Twitter

    Comment

    • rbarrero
      Junior Member
      • Mar 2007
      • 21

      #3
      Hi;
      Run that manually from the command line? Or configured via Remote Command Action?

      Even though both use system.run, behaviour seems different.

      Comment

      Working...