From 009e88fd9b5e9c4bf845464da447a7cc870c3f71 Mon Sep 17 00:00:00 2001 From: Lord Hepipud Date: Wed, 28 Jan 2026 17:19:07 +0100 Subject: [PATCH] Fixes notice object handling for checks using only critical status and being chained with warning thresholds --- lib/icinga/plugin/New-IcingaCheck.psm1 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/icinga/plugin/New-IcingaCheck.psm1 b/lib/icinga/plugin/New-IcingaCheck.psm1 index 7c0de72..14702af 100644 --- a/lib/icinga/plugin/New-IcingaCheck.psm1 +++ b/lib/icinga/plugin/New-IcingaCheck.psm1 @@ -150,6 +150,8 @@ function New-IcingaCheck() # If our call sets CheckOverride, it means we could have used something like SetWarning() before # By doing so, we actively interact with the object and therefore we should not handle it as notice object $this.__HandleAsNoticeObject = $TRUE; + } else { + $this.__HandleAsNoticeObject = $FALSE; } # Set this object to [INFO] state in case it is a notice or no thresholds are defined