summaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'plugins')
-rw-r--r--plugins/check_snmp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/check_snmp.c b/plugins/check_snmp.c
index b17a4177..907c1809 100644
--- a/plugins/check_snmp.c
+++ b/plugins/check_snmp.c
@@ -111,7 +111,7 @@ unsigned long upper_crit_lim[MAX_OIDS];
111unsigned long response_value[MAX_OIDS]; 111unsigned long response_value[MAX_OIDS];
112int check_warning_value = FALSE; 112int check_warning_value = FALSE;
113int check_critical_value = FALSE; 113int check_critical_value = FALSE;
114int eval_method[MAX_OIDS]; 114unsigned long eval_method[MAX_OIDS];
115char *delimiter; 115char *delimiter;
116char *output_delim; 116char *output_delim;
117char *miblist; 117char *miblist;
@@ -745,7 +745,7 @@ check_num (int i)
745 } 745 }
746 746
747 if (eval_method[i] & CRIT_GT && eval_method[i] & CRIT_LT && 747 if (eval_method[i] & CRIT_GT && eval_method[i] & CRIT_LT &&
748 lower_warn_lim[i] > upper_warn_lim[i]) { 748 lower_crit_lim[i] > upper_crit_lim[i]) {
749 if (response_value[i] <= lower_crit_lim[i] && 749 if (response_value[i] <= lower_crit_lim[i] &&
750 response_value[i] >= upper_crit_lim[i]) { 750 response_value[i] >= upper_crit_lim[i]) {
751 result = STATE_CRITICAL; 751 result = STATE_CRITICAL;