From e63bf3cbea03ae1e4a2a11b0b0f040a32e9b6b44 Mon Sep 17 00:00:00 2001 From: Lord Hepipud Date: Fri, 28 May 2021 23:50:54 +0200 Subject: [PATCH] Fixes header summary, no longer counts hidden --- lib/icinga/plugin/New-IcingaCheckPackage.psm1 | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/icinga/plugin/New-IcingaCheckPackage.psm1 b/lib/icinga/plugin/New-IcingaCheckPackage.psm1 index 57bae1c..0bfb9fb 100644 --- a/lib/icinga/plugin/New-IcingaCheckPackage.psm1 +++ b/lib/icinga/plugin/New-IcingaCheckPackage.psm1 @@ -179,6 +179,10 @@ function New-IcingaCheckPackage() $check.Compile(); + if ($check.__IsHidden()) { + continue; + } + if ($WorstState -lt $check.__GetCheckState()) { $WorstState = $check.__GetCheckState(); }