tenho um script que baixei para pegar o numero de updates do windows, esta funcionando perfeitamente quando executo manualmente, porem quando executado pelo zabbix ele retorna vazio.
fiz um teste colocando a saida por um txt.
script abaixo:
Set updateSession = CreateObject("Microsoft.Update.Session")
Set updateSearcher = updateSession.CreateupdateSearcher()
Set searchResult = updateSearcher.Search("IsInstalled=0 and Type='Software'")
WScript.Echo searchResult.Updates.Count
alterações no conf:
EnableRemoteCommands=1
UserParameters=1
UserParameter = wu.all,%systemroot%\system32\cscript.exe /nologo /T:30 "C:\Agent\scripts\zabbix_wus_update_all.vbs"
fiz um teste colocando a saida por um txt.
script abaixo:
Set updateSession = CreateObject("Microsoft.Update.Session")
Set updateSearcher = updateSession.CreateupdateSearcher()
Set searchResult = updateSearcher.Search("IsInstalled=0 and Type='Software'")
WScript.Echo searchResult.Updates.Count
alterações no conf:
EnableRemoteCommands=1
UserParameters=1
UserParameter = wu.all,%systemroot%\system32\cscript.exe /nologo /T:30 "C:\Agent\scripts\zabbix_wus_update_all.vbs"
Comment