Skip to content

Commit f40a688

Browse files
committed
Fixes ThresholdInterval key detection on newer systems
1 parent ada2b4c commit f40a688

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/icinga/plugin/New-IcingaCheck.psm1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ function New-IcingaCheck()
6666
$this.__TimeInterval = $SetArg;
6767
break;
6868
}
69-
if ($SetArg -eq '-ThresholdInterval') {
69+
if ($SetArg -eq '-ThresholdInterval' -Or $SetArg -eq '-ThresholdInterval:') {
7070
$FoundInterval = $TRUE;
7171
continue;
7272
}

0 commit comments

Comments
 (0)