Hello,
I would like to monitor the number of windows update available (win serv 2008). I find VB script online.
Set updateSession = CreateObject("Microsoft.Update.Session")
Set updateSearcher = updateSession.CreateupdateSearcher()
Set searchResult = updateSearcher.Search("IsInstalled=0 and Type='Software'")
WScript.Echo searchResult.Updates.Count
On the server side I add this line at the end:
UserParameter=wua.getnumupdates,%systemroot%\syste m32\cscript.exe /nologo c:\zabbix\wu\getnumupdates.vbs
I open Windows command line and copy past this:
%systemroot%\system32\cscript.exe /nologo c:\zabbix\wu\getnumupdates.vbs
And I got result .
But when i tried to use this command from zabbix server i got:
[131009154640 root@cnmontest02 zabbix_get]# ./zabbix_get -s 10.114.1.5 -p 10050 -k "wua.getnumupdates[]"
ZBX_NOTSUPPORTED
So i guess i did mistake somewhere but I don't know where, if someone know how to solve it, I will be happy.
Thanks
Zabbix 2.0.8
Centos 6.4
Postgresql
I would like to monitor the number of windows update available (win serv 2008). I find VB script online.
Set updateSession = CreateObject("Microsoft.Update.Session")
Set updateSearcher = updateSession.CreateupdateSearcher()
Set searchResult = updateSearcher.Search("IsInstalled=0 and Type='Software'")
WScript.Echo searchResult.Updates.Count
On the server side I add this line at the end:
UserParameter=wua.getnumupdates,%systemroot%\syste m32\cscript.exe /nologo c:\zabbix\wu\getnumupdates.vbs
I open Windows command line and copy past this:
%systemroot%\system32\cscript.exe /nologo c:\zabbix\wu\getnumupdates.vbs
And I got result .
But when i tried to use this command from zabbix server i got:
[131009154640 root@cnmontest02 zabbix_get]# ./zabbix_get -s 10.114.1.5 -p 10050 -k "wua.getnumupdates[]"
ZBX_NOTSUPPORTED
So i guess i did mistake somewhere but I don't know where, if someone know how to solve it, I will be happy.
Thanks
Zabbix 2.0.8
Centos 6.4
Postgresql
Its named is system.run.
Comment