Ad Widget

Collapse

problems with VBS Script

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • cm2000
    Junior Member
    • Mar 2009
    • 29

    #1

    problems with VBS Script

    Hi,

    I've been testing zabbix out, and so far am very impressed. Although i have an issue and i wonder if anyone could help me please....

    I haev a VBS file set up on a windows 2003 server that checks some of our internal processes. The script returns a number, which i was hoping Zabbix could then do an action on.

    Problem is this - when testing locally with zabbix_get i get the following error...

    C:\zabbix>zabbix_get.exe -s 127.0.0.1 -k script.test
    zabbix_get.exe [2480]: Get value error: ZBX_TCP_READ() failed [An existing connection was forcibly closed by the remote host.]


    To check it wasnt my script, i replaced my script with a vbs file that just says "wscript.echo "hello" and i get the same response.

    My zabbix_agentd.conf on the win2k3 server has the following...

    UserParameter=script.test, cscript c:\zabbix\test.vbs //NOLOGO


    Any clues guys?

    Cheers,

    Tom @ CM2000
  • cm2000
    Junior Member
    • Mar 2009
    • 29

    #2
    Fixed

    Hi,

    Just incase anyone has similar issues when starting out, I've found the solutions...

    #1 - When using zabbix_get.exe locally to test, ensure that 127.0.0.1 is in the allowed servers in the conf file. ()

    #2 - use wscript.stdout.write instead of wscript.echo.

    Cheers,

    Tom

    Comment

    Working...