summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorTobi Oetiker <tobi@oetiker.ch>2011-09-12 21:41:55 +0200
committerTobi Oetiker <tobi@oetiker.ch>2011-09-12 21:41:55 +0200
commit11d1224adf4208f5122c2e87bb18007e95443490 (patch)
treea69022b08a05dab4078ecbf377d379923f1efc1c /lib
parent28c1837b9b13debd296cfee32426584505b28e66 (diff)
downloadsmokeping-11d1224adf4208f5122c2e87bb18007e95443490.tar.gz
smokeping-11d1224adf4208f5122c2e87bb18007e95443490.tar.xz
fixed alert pattern parser for range alerts
Diffstat (limited to 'lib')
-rw-r--r--lib/Smokeping.pm2
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;