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(); }