Ad Widget

Collapse

Remote command Problem

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • 753713
    Senior Member
    • Apr 2006
    • 137

    #1

    Remote command Problem

    Hello,

    i define the following actions in Zabbix 1.4.1:

    Action type ->Remote command
    Remote command ->myserver:c:\windows\system32\shutdown.exe –r –f

    and i become this error:

    incorrect command: 'myserver:c:\windows\system32\shutdown.exe –r –f'

    any Ideas????

    Christian
    ______________________________
    Version : 2.0.x
    Server OS: Ubuntu 12.04
    Zabbix Servers: 12
    Monitored Windows Server: ~ 1000
    ______________________________
  • wurm
    Junior Member
    • Jun 2007
    • 12

    #2
    Remote commands are disabled by default... do you have it enabled in your conf file?
    EnableRemoteCommands=1

    Wurm

    Comment

    • wurm
      Junior Member
      • Jun 2007
      • 12

      #3
      Never mind... don't see that conf file parameter in the manual for windows agents either. Hmmm. Sorry about that...

      Wurm

      Comment

      • manfro
        Junior Member
        • Jun 2006
        • 25

        #4
        Hello,
        I've experienced the same problem and I made it work this way:

        create a .bat file and move it in c:\
        fill the bat file (i.e.: mybatfile.bat) with the instructions you need to execute (i.e. : shutdown command).

        create a remote command action on zabbix like this:

        myserver:/mybatfile.bat

        It should work.
        Hope it helps.

        Comment

        Working...