Ad Widget

Collapse

Remote commands

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • bbrendon
    Senior Member
    • Sep 2005
    • 870

    #1

    Remote commands

    I'm running 1.1 of Zabbix and I just spent about two hours trying to get remote commands to run on a linux system with NO luck.

    When running
    Code:
    zabbix_agentd -p
    I get:
    Code:
    system.run[echo test]                         [t|test]
    Script command:
    Code:
    cli.flower:/tmp/myscr.sh
    where "cli.flower" is the host as zabbix knows it.

    I also created another action with:
    Code:
    grp1#/tmp/myscr.sh
    ...this yields nothing as well.

    I also tried with and without the condition:
    Trigger value = "ON"

    I have debuglevel set to 4, and none of the remote commands I enter into the actions even show up in the agent logfile. I have a script that is executable by all in /tmp that creates a tmp file in /tmp and nothing is appearing as well.

    I'm stumpted!!!
    Last edited by bbrendon; 18-08-2006, 00:19.
    Unofficial Zabbix Expert
    Blog, Corporate Site
  • dantheman
    Senior Member
    • May 2006
    • 209

    #2
    Do you have
    Code:
    EnableRemoteCommands=1
    in your agent's config file?

    I had the same issue this morning and after I uncommented that line, restarted the agent, then it worked.

    Comment

    • bbrendon
      Senior Member
      • Sep 2005
      • 870

      #3
      Thanks for the reply. Yes. I have EnableRemoteCommands=1 in the agent config file.

      I thought it might have something to do with the "." in the hostname, but i renamed it and removed the "." ... same results.
      Last edited by bbrendon; 18-08-2006, 01:07.
      Unofficial Zabbix Expert
      Blog, Corporate Site

      Comment

      Working...