From 11d1224adf4208f5122c2e87bb18007e95443490 Mon Sep 17 00:00:00 2001 From: Tobi Oetiker Date: Mon, 12 Sep 2011 19:41:55 +0000 Subject: fixed alert pattern parser for range alerts --- lib/Smokeping.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') 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; -- cgit v1.2.3-24-g4f1b