summaryrefslogtreecommitdiffstats
path: root/lib/Nagios/Plugin/Threshold.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Nagios/Plugin/Threshold.pm')
-rw-r--r--lib/Nagios/Plugin/Threshold.pm3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/Nagios/Plugin/Threshold.pm b/lib/Nagios/Plugin/Threshold.pm
index 145b89f..73fce53 100644
--- a/lib/Nagios/Plugin/Threshold.pm
+++ b/lib/Nagios/Plugin/Threshold.pm
@@ -39,6 +39,9 @@ sub _inflate
39 return $value; 39 return $value;
40 } 40 }
41 41
42 # Another quick exit if $value is an empty string
43 return Nagios::Plugin::Range->new if $value eq "";
44
42 # Otherwise parse $value 45 # Otherwise parse $value
43 my $range = Nagios::Plugin::Range->parse_range_string($value); 46 my $range = Nagios::Plugin::Range->parse_range_string($value);
44 nagios_die("Cannot parse $key range: '$value'") unless(defined($range)); 47 nagios_die("Cannot parse $key range: '$value'") unless(defined($range));