Ad Widget

Collapse

system.run and UserParameter on windows box

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • art
    Junior Member
    • Oct 2006
    • 12

    #1

    system.run and UserParameter on windows box

    Hi All,

    Have Zabbix server 1.1.2 running on Linux to monitor mixed Windows/Solaris/Linux network.

    Actually had no problems with windows agent until decided to implement some custom checks. Tried both system.run and UserParameter - none of them work properly (though had no problem with unix agents).

    Actually what I'd like to do is to have possibility to run batch file on windows host (either through system.run or UserParameter) and send its output to zabbix server.

    Just for testing purposes created batch file with '@echo OK' in it. Batch file is in the same directory where zabbix agent is.

    zabbix_agentd.conf file on windows (windows2000):

    Server=...
    Hostname=Test
    EnableRemoteCommands=1
    LogFile=c:\zabbix\zabbix_agentd.log
    UserParameter=test.test,q.bat

    config-check reports OK.
    I can poll any standard items both locally and from zabbix server.

    When trying to test test.test user parameter locally it returns 'OK' as it should but when testing from zabbix server - result is empty string.

    I can't call system.run[q.bat] neither locally nor from the server (getting ZBX_NOTSUPPORTED)

    Any clues/ideas/workarounds?
  • den_crane
    Senior Member
    • Feb 2006
    • 272

    #2
    Originally posted by art
    Hi All,
    UserParameter=test.test,q.bat
    UserParameter=test.test,FULLPATH\q.bat

    zabixagent - windows service work in own environment, imho current dir will be c:\windows

    Comment

    • art
      Junior Member
      • Oct 2006
      • 12

      #3
      Thanks, that helped.

      Comment

      Working...