Ad Widget

Collapse

Windows PostgreSQL custom script problems

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Alik
    Junior Member
    • Jul 2013
    • 1

    #1

    Windows PostgreSQL custom script problems

    Hello,

    I created a script for monitoring PostgreSQL server on windows. The script is implemented in VBScript and destined to be run with cscript.exe. Source code and installation instruction are here: https://github.com/akurdyukov/Zabbix...ows-postgresql

    The script works perfectly when run from command line. But I experience problems with running script under zabbix agent. It seems that script aborts after "Set objExec = objShell.Exec(strExe)" line that invokes psql.exe. Unfortunatelly, there's no useful info for the problem in logs at level 4.

    Can you help me with ideas for debugging the problem?

    Is there any way to understand what goes wrong with cscript under zabbix agent?

    Thanks in advance!
Working...