mirror of
https://github.com/monitoring-plugins/monitoring-plugins.git
synced 2026-03-22 02:20:08 -04:00
Fixed error message, added comment
This commit is contained in:
parent
37f9b45266
commit
6a8564fb44
1 changed files with 2 additions and 1 deletions
|
|
@ -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'};
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue