diff options
author | Tobi Oetiker <tobi@oetiker.ch> | 2011-09-12 21:41:55 +0200 |
---|---|---|
committer | Tobi Oetiker <tobi@oetiker.ch> | 2011-09-12 21:41:55 +0200 |
commit | 11d1224adf4208f5122c2e87bb18007e95443490 (patch) | |
tree | a69022b08a05dab4078ecbf377d379923f1efc1c | |
parent | 28c1837b9b13debd296cfee32426584505b28e66 (diff) | |
download | smokeping-11d1224adf4208f5122c2e87bb18007e95443490.tar.gz smokeping-11d1224adf4208f5122c2e87bb18007e95443490.tar.xz |
fixed alert pattern parser for range alerts
-rw-r--r-- | lib/Smokeping.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Smokeping.pm b/lib/Smokeping.pm index 6828430..c725005 100644 --- a/lib/Smokeping.pm +++ b/lib/Smokeping.pm @@ -340,7 +340,7 @@ FOR for(1..$multis){ $extra .= "-\$i$_"; }; - /^(==|!=|<|>|<=|>=|\*)(\d+(?:\.\d*)?|U|S|\d*\*)(%?)(?:(<|>|<=|>=)(\d+(?:\.\d*)?)(%?))$/ + /^(==|!=|<|>|<=|>=|\*)(\d+(?:\.\d*)?|U|S|\d*\*)(%?)(?:(<|>|<=|>=)(\d+(?:\.\d*)?)(%?))?$/ or die "ERROR: Alert $al pattern entry '$_' is invalid\n"; my $op = $1; my $value = $2; |