Ad Widget

Collapse

Zabbix remote command on windows

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • spending
    Junior Member
    • Nov 2019
    • 2

    #1

    Zabbix remote command on windows

    Hello.

    I'm operating zabbix on windows servers.
    I'm trying simple script execute via remote on zabbix,
    So I modified target computer's zabbix_agentd.conf, EnableRemoteCommands 0 to 1.
    And I ran successfully some windows command (like dir, run batch,tasklist) using zabbix_get command on zabbix server.
    But the problem is what execute scripts on the Map is not functional.
    The result is strange, and 2 patterns.

    1.system.run['dir c:\dev\']

    'system.run['dir' is not recognized as an internal or external command,
    operable program or batch file.

    2.system.run[chcp 437 & dir] : referenced zabbix japan forum.

    'system.run[chcp' is not recognized as an internal or external command,
    operable program or batch file.
    Volume in drive C is *********
    Volume Serial Number is *******

    Directory of C:\Windows\system32

    File Not Found

    Result1 is cannot executed the 'dir' but Result2 is executed but failed result seems like permission denine.

    What's wrong with me?
Working...