mirror of
https://github.com/monitoring-plugins/monitoring-plugins.git
synced 2026-06-10 17:20:05 -04:00
checks for warn in check_num() mistakenly referred to crit limits
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@830 f882894a-f735-0410-b71e-b25c423dba1c
This commit is contained in:
parent
aa868284a5
commit
5316da0b8d
1 changed files with 2 additions and 2 deletions
|
|
@ -111,7 +111,7 @@ unsigned long upper_crit_lim[MAX_OIDS];
|
|||
unsigned long response_value[MAX_OIDS];
|
||||
int check_warning_value = FALSE;
|
||||
int check_critical_value = FALSE;
|
||||
int eval_method[MAX_OIDS];
|
||||
unsigned long eval_method[MAX_OIDS];
|
||||
char *delimiter;
|
||||
char *output_delim;
|
||||
char *miblist;
|
||||
|
|
@ -745,7 +745,7 @@ check_num (int i)
|
|||
}
|
||||
|
||||
if (eval_method[i] & CRIT_GT && eval_method[i] & CRIT_LT &&
|
||||
lower_warn_lim[i] > upper_warn_lim[i]) {
|
||||
lower_crit_lim[i] > upper_crit_lim[i]) {
|
||||
if (response_value[i] <= lower_crit_lim[i] &&
|
||||
response_value[i] >= upper_crit_lim[i]) {
|
||||
result = STATE_CRITICAL;
|
||||
|
|
|
|||
Loading…
Reference in a new issue