Uploaded image for project: 'ZABBIX BUGS AND ISSUES'
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-16064

executing remote commands on windows

XMLWordPrintable

    • Icon: Incident report Incident report
    • Resolution: Won't fix
    • Icon: Minor Minor
    • None
    • 4.0.6
    • Agent (G)
    • None
    • windows

      I have successfully created a trigger to look for a running application... in this case we will call it program.exe. The trigger works and alerts go out. I'm trying to have a remote command go out in attempt that the agent server will fix itself.

      So I have a bat file named "program.bat" on the agent server that has the following in it:
      HTML Code:
      @echo off
      start "" "C:\Users\Winbin\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\ProgramName\program.exe"
      exit
      The bat file does exactly what it needs to do on the agent server. However when executed remotely it does absolutely nothing. 

      I ran it in command line on the zabbix host to make sure it connects
      zabbix_get -s IP -p 10050 -k "system.run[C:\program.bat]"
      and it seems to do it... but the application doesn't start on the agent machine

       

      EnableRemoteCommands=1 

       

            zabbix.support Zabbix Support Team
            shadid amr shadid
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: