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.
Windows updates check wrong number of updates displayed
-
clarkjohnken
- Posts: 1
- Joined: Wed Mar 11, 2020 10:05 pm
- 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
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.
Re: Windows updates check wrong number of updates displayed
Clark,
Were you able to get the Windows Update check working?
Were you able to get the Windows Update check working?
Re: Windows updates check wrong number of updates displayed
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.