Windows updates check wrong number of updates displayed
Posted: Wed Aug 21, 2019 2:32 am
Good Day,
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.
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.