I am attempting to get Zabbix 2.2-1+percise to monitor a Windows server. Currently, the server is behind a NAT and is set to actively send information to the server. One of my primary interests was to use Zabbix to monitor Windows updates, on servers and workstations. I found a handful of posts suggesting I create an active key, wua.getnumupdates[], which I created and set to active...

However, after a couple seconds, the item goes from active to not supported, as shown above.
In the agent log, it shows
I have inserted this into the config file for the agent:
...and this is the script, in the zabbix\wu folder:
I have tested the script and it returns a result in about 12 seconds, but it doesn't seem like I've configured something correctly, because it doesn't want to work on the Zabbix server... Does anyone have any ideas?

However, after a couple seconds, the item goes from active to not supported, as shown above.
In the agent log, it shows
Code:
8180:20140422:173117.359 End of collect_perfstat() 7104:20140422:173117.665 for key [wua.getnumupdates] received value [ZBX_NOTSUPPORTED] 7104:20140422:173117.667 In process_value() key:'sbs-server:wua.getnumupdates' value:'ZBX_NOTSUPPORTED' 7104:20140422:173117.667 In send_buffer() host:'9x.xxx.xx.x8' port:10051 values:0/1000 7104:20140422:173117.668 End of send_buffer():SUCCEED 7104:20140422:173117.669 buffer: new element 0 7104:20140422:173117.669 End of process_value():SUCCEED 7104:20140422:173117.670 active check "wua.getnumupdates" is not supported 7104:20140422:173117.671 End of process_active_checks()
Code:
UserParameter=wua.getnumupdates,%systemroot%\system32\cscript.exe /nologo c:\zabbix\wu\getnumupdates.vbs
Code:
Set updateSession = CreateObject("Microsoft.Update.Session")
Set updateSearcher = updateSession.CreateupdateSearcher()
Set searchResult = updateSearcher.Search("IsInstalled=0 and Type='Software'")
WScript.Echo searchResult.Updates.Count
Comment