diff --git a/lib/icinga/plugin/New-IcingaCheck.psm1 b/lib/icinga/plugin/New-IcingaCheck.psm1 index 14702afa..1b71aa8d 100644 --- a/lib/icinga/plugin/New-IcingaCheck.psm1 +++ b/lib/icinga/plugin/New-IcingaCheck.psm1 @@ -529,10 +529,11 @@ function New-IcingaCheck() param ($ThresholdObject, $State); if ($ThresholdObject.HasError) { - $this.SetUnknown() | Out-Null; - $this.__ThresholdObject = $ThresholdObject; - $this.__FixedState = $TRUE; - $this.__SetCheckOutput($this.__ThresholdObject.Message); + $this.__HandleAsNoticeObject = $FALSE; + $this.__ThresholdObject = $ThresholdObject; + $this.__CheckState = $IcingaEnums.IcingaExitCode.Unknown; + $this.__FixedState = $TRUE; + $this.__SetCheckOutput($this.__ThresholdObject.Message); $this.__LockState(); return; }