Ad Widget

Collapse

Remote Commands not working...Get value from agent failed

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • robp2175
    Junior Member
    • Nov 2018
    • 6

    #1

    Remote Commands not working...Get value from agent failed

    I am a NOOB to zabbix, so I would appreciate a little patience. I am trying to setup my first remote command and I believe I have everything configure properly, but I keep getting the error "Get value from agent failed" when the Actions tries to run. I am successfully able to telnet into the Host machine (Windows box) on port 10050.

    EnableRemoteCommands=1 is set on the agent config
    Timeout=30 is set on agent config

    I am now running the agent in passive mode only. There is no firewall (and again, I can telnet into it from the server on port 10050)
    --------->Question: Does active mode NEED to be off for remote commands to work?

    For my Remote command all I have is echo "test" >> c:\zabbix\event.log, just to test for it to work. (See picture)
    If I run this in the server shell, it works perfectly
    Code:
     zabbix_get -s 192.168.1.45 -k "system.run[echo \"test\" >> c:\zabbix\script.log]"
    I have read several articles on this forum and google and I appear to be doing everything necessary.

    I appreciate any thoughts as to what I could check for next. Thank you for any assistance.
  • Andy Afanasyev
    Junior Member
    • Oct 2018
    • 8

    #2
    Did you try to escape double quotes with backslash in remote command like you did in zabbix_get string?

    Comment

    • robp2175
      Junior Member
      • Nov 2018
      • 6

      #3
      Yes, I did.

      Comment

      Working...