Template for detecting available Windows Updates for Host

See at
http://znil.net/index.php?title=Zabbix:Template_Windows_Updates

Copy to Zabbix Agent Folder an add Line

UserParameter=znil.windowsupdates,"C:\Program Files\Zabbix\windowsupdates.exe" 

to 

zabbix_agentd.win.conf

Import Template File to Zabbix and link to Host.

The "windowsupdate.exe" normaly takes too long for check (>30 seconds), so the is cheating:
* at first run it send a "0" (zero) to zabbix and restart itself mit Parameter "CHEAT" and stop itself
* the 2. instance will get the Number of Updates and save it in the file "%WINDIR%\Temp\zabbix-windowsupdates.txt
* Next Time Zabbix is checking the windowsupdates.exe will find the textfile, report the numbers back to zabbix and restart itself with "CHEAT" parameter
* repeat the steps :-)


2013 Bernhard Linz
Bernhard@znil.de
Bernhard.Linz@datagroup.de
