Skip to content

Commit 76844af

Browse files
authored
Merge pull request #443 from Icinga:fix/update_check_wrongly_reports_critical_on_critonreboot
Fix: Invoke-IcingaCheckUpdates to properly report critical for -CritOnReboot Fixes `Invoke-IcingaCheckUpdates` to properly report critical for `-CritOnReboot`
2 parents 8abe85a + 637d306 commit 76844af

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

doc/31-Changelog.md

+1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ Released closed milestones can be found on [GitHub](https://github.com/Icinga/ic
1919

2020
### Bugfixes
2121

22+
* [#351](https://github.com/Icinga/icinga-powershell-plugins/issues/351) Fixes `Invoke-IcingaCheckUpdates` to properly report critical for `-CritOnReboot`
2223
* [#377](https://github.com/Icinga/icinga-powershell-plugins/issues/377) Fixes `Invoke-IcingaCheckPerfCounter` to write correct performance data in case only certain instances are checked to ensure perf data are assigned to checks accordingly
2324
* [#420](https://github.com/Icinga/icinga-powershell-plugins/issues/420) Fixes `Invoke-IcingaCheckUptime` to report a more human readable output for the current uptime in the package name
2425
* [#436](https://github.com/Icinga/icinga-powershell-plugins/issues/436) Fixes performance data for ScheduledTask plugin for Last and Next RunTime

plugins/Invoke-IcingaCheckUpdates.psm1

+1-1
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ function Invoke-IcingaCheckUpdates()
103103
$RebootPending.WarnIfMatch([int][bool]$WarnOnReboot) | Out-Null;
104104
}
105105
if ($CritOnReboot) {
106-
$RebootPending.CritIfMatch([int][bool]$WarnOnReboot) | Out-Null;
106+
$RebootPending.CritIfMatch([int][bool]$CritOnReboot) | Out-Null;
107107
}
108108

109109
$TotalPendingUpdates.WarnOutOfRange($Warning).CritOutOfRange($Critical) | Out-Null;

0 commit comments

Comments
 (0)