icinga-powershell-plugins
icinga-powershell-plugins copied to clipboard
Invoke-IcingaCheckUpdates - CritOnReboot
If CritOnReboot is set to 1, and reboot pending is no, then the plugin seems to incorrectly return critical:
PS C:\Users\administrator> invoke-icingacheckupdates -verbosity 3 -warning 0 -**CritOnReboot 1**
[CRITICAL] Windows Updates: 1 Critical 5 Ok [CRITICAL] Reboot Pending (No) (All must be [OK])
\_ [OK] Microsoft Defender (All must be [OK])
\_ [OK] Security Intelligence Update for Microsoft Defender Antivirus - KB2267602 (Version 1.389.2707.0) [29/05/2023 00:00:00]: 0
\_ [OK] Update Count: 1c
\_ [OK] Other (All must be [OK])
\_ [OK] Update Count: 0c
**\_ [CRITICAL] Reboot Pending: No is matching threshold No**
\_ [OK] Security Updates (All must be [OK])
\_ [OK] 2023-04 Cumulative Update for Windows Server 2019 (1809) for x64-based Systems (KB5025229) [11/04/2023 00:00:00]: 0
\_ [OK] Update Count: 1c
\_ [OK] Total Pending Updates: 0c
\_ [OK] Update Rollups (All must be [OK])
\_ [OK] Update Count: 1c
\_ [OK] Windows Malicious Software Removal Tool x64 - v5.113 (KB890830) [09/05/2023 00:00:00]: 0
| 'rollups::ifw_updates::count'=1c;; 'summary::ifw_updates::count'=0c;0; 'reboot::ifw_updates::required'=0;;0 'other::ifw_updates::count'=0c;; 'defender::ifw_updates::count'=1c;; 'security::ifw_updates::count'=1c;;
2