Merge pull request #258 from Icinga:fix/header_summary_considers_hidden_packages

Fix: Header summary should not include hidden packages/elements

Fixes header summary to no longer count in hidden elements for status counts
This commit is contained in:
Lord Hepipud 2021-05-28 23:52:41 +02:00 committed by GitHub
commit 8288cc4833
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -179,6 +179,10 @@ function New-IcingaCheckPackage()
$check.Compile();
if ($check.__IsHidden()) {
continue;
}
if ($WorstState -lt $check.__GetCheckState()) {
$WorstState = $check.__GetCheckState();
}