Ad Widget

Collapse

Zabbix to Monitor Windows Updates

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • talkinggoat
    Junior Member
    • Apr 2014
    • 10

    #1

    Zabbix to Monitor Windows Updates

    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

    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()
    I have inserted this into the config file for the agent:
    Code:
    UserParameter=wua.getnumupdates,%systemroot%\system32\cscript.exe /nologo c:\zabbix\wu\getnumupdates.vbs
    ...and this is the script, in the zabbix\wu folder:
    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
    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?
  • Jelena
    Junior Member
    • Feb 2010
    • 12

    #2
    Please correct zabbix_agentd.conf to Timeout=10

    Detailed information is available here:

    Comment

    • StarDestroyer
      Junior Member
      • Jun 2014
      • 20

      #3
      FYI - I just posted version to Monitor Windows Update using a Zabbix Trap. This uses VB.net and has the code built into it that sends the data to the server (a la zabbix_sender).

      Comment

      Working...