aboutsummaryrefslogtreecommitdiff
path: root/plugins-scripts/check_uptime.pl
diff options
context:
space:
mode:
authorGravatar Bernd Arnold <wopfel@gmail.com> 2018-06-17 09:42:25 +0200
committerGravatar Bernd Arnold <wopfel@gmail.com> 2018-06-17 09:42:25 +0200
commit6a8564fb44ab6914dcc8ec63e8af6477803da080 (patch)
tree326dc798e9c9b6dc60f5862e1e6fee34e7603875 /plugins-scripts/check_uptime.pl
parent37f9b45266acfeb45157d3c27a65979b33c57df7 (diff)
downloadmonitoring-plugins-6a8564fb44ab6914dcc8ec63e8af6477803da080.tar.gz
Fixed error message, added comment
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 ed859ab3..4c9f22da 100755
--- a/plugins-scripts/check_uptime.pl
+++ b/plugins-scripts/check_uptime.pl
@@ -236,8 +236,9 @@ sub process_arguments(){
print "Upper Warning (-w) cannot be greater than Critical (-c)!\n";
exit $ERRORS{'UNKNOWN'};
}
+ # No "<=" since both values are zero if no range (only upper threshold values) is given
if ( $lower_warn_threshold < $lower_crit_threshold ) {
- print "Lower Warning (-w) cannot be greater than Critical (-c)!\n";
+ print "Lower Warning (-w) cannot be less than Critical (-c)!\n";
exit $ERRORS{'UNKNOWN'};
}