Windows updates check wrong number of updates displayed

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
clarkjohnken
Posts: 1
Joined: Wed Mar 11, 2020 10:05 pm

Windows updates check wrong number of updates displayed

Post by clarkjohnken »

I am working on the windows updates check to see in nagios if there are updates on the windows servers needed.

The results i get in nagios are different then when i run the check on the windows server.

For example: I run the powershell command on the windows server:
./check_nrpe -H <ip adress of the server> -t 120 -p 5666 -c check_updates

The result i get:
OK - no pending updates.|critical=0;optional=0;hidden=0

Above is correct, there are no updates needed.

But NagiosXI displays:
Updates: 1 critical, 0 optional
2019-07 Servicing Stack Update for Windows Server 2012 R2 for x64-based Systems (KB4504418)

When i run the command on the nagiosxi server itself i get the same wrong result.
./check_nrpe -H <ip adress of the server> -t 120 -p 5666 -c check_updates

I am missing something but i don't know what.
Any help is appreciated.
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: Windows updates check wrong number of updates displayed

Post by Box293 »

I am not sure how the script classes the update. In Windows it might be an "optional" update but the script just sees it as an update and marks it as critical.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
smetzler
Posts: 27
Joined: Mon Apr 15, 2019 11:06 am

Re: Windows updates check wrong number of updates displayed

Post by smetzler »

Clark,

Were you able to get the Windows Update check working?
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Windows updates check wrong number of updates displayed

Post by ssax »

If you're still having issues, please link us to the exact plugin you are using (or attach it) so that we can debug further.
Locked