Page 1 of 1

Windows updates check wrong number of updates displayed

Posted: Wed Mar 11, 2020 10:12 pm
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.

Re: Windows updates check wrong number of updates displayed

Posted: Thu Mar 12, 2020 9:00 pm
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.

Re: Windows updates check wrong number of updates displayed

Posted: Tue May 05, 2020 1:48 pm
by smetzler
Clark,

Were you able to get the Windows Update check working?

Re: Windows updates check wrong number of updates displayed

Posted: Wed May 06, 2020 9:10 am
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.