Skip to content

Commit

Permalink
Fixes ThresholdInterval key detection on newer systems
Browse files Browse the repository at this point in the history
  • Loading branch information
LordHepipud committed May 12, 2023
1 parent ada2b4c commit f40a688
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/icinga/plugin/New-IcingaCheck.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ function New-IcingaCheck()
$this.__TimeInterval = $SetArg;
break;
}
if ($SetArg -eq '-ThresholdInterval') {
if ($SetArg -eq '-ThresholdInterval' -Or $SetArg -eq '-ThresholdInterval:') {
$FoundInterval = $TRUE;
continue;
}
Expand Down

0 comments on commit f40a688

Please sign in to comment.