mirror of
https://github.com/Icinga/icinga-powershell-framework.git
synced 2026-02-03 04:09:29 -05:00
Fixes notice object handling for checks using only critical status and being chained with warning thresholds
This commit is contained in:
parent
7661054f63
commit
009e88fd9b
1 changed files with 2 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue