summaryrefslogtreecommitdiffstats
path: root/plugins-scripts/check_uptime.pl
diff options
context:
space:
mode:
Diffstat (limited to 'plugins-scripts/check_uptime.pl')
-rwxr-xr-xplugins-scripts/check_uptime.pl3
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins-scripts/check_uptime.pl b/plugins-scripts/check_uptime.pl
index ed859ab..4c9f22d 100755
--- a/plugins-scripts/check_uptime.pl
+++ b/plugins-scripts/check_uptime.pl
@@ -236,8 +236,9 @@ sub process_arguments(){
236 print "Upper Warning (-w) cannot be greater than Critical (-c)!\n"; 236 print "Upper Warning (-w) cannot be greater than Critical (-c)!\n";
237 exit $ERRORS{'UNKNOWN'}; 237 exit $ERRORS{'UNKNOWN'};
238 } 238 }
239 # No "<=" since both values are zero if no range (only upper threshold values) is given
239 if ( $lower_warn_threshold < $lower_crit_threshold ) { 240 if ( $lower_warn_threshold < $lower_crit_threshold ) {
240 print "Lower Warning (-w) cannot be greater than Critical (-c)!\n"; 241 print "Lower Warning (-w) cannot be less than Critical (-c)!\n";
241 exit $ERRORS{'UNKNOWN'}; 242 exit $ERRORS{'UNKNOWN'};
242 } 243 }
243 244