diff options
author | Karl DeBisschop <kdebisschop@users.sourceforge.net> | 2004-02-28 07:27:17 (GMT) |
---|---|---|
committer | Karl DeBisschop <kdebisschop@users.sourceforge.net> | 2004-02-28 07:27:17 (GMT) |
commit | 5316da0b8d35823ce52bed41487292bcfff1a0b2 (patch) | |
tree | 5e5baee63e40f67b46b7cc85e4258c522695538a | |
parent | aa868284a50d31c37c17052e9f3a5383465143e3 (diff) | |
download | monitoring-plugins-5316da0b8d35823ce52bed41487292bcfff1a0b2.tar.gz |
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
-rw-r--r-- | plugins/check_snmp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/check_snmp.c b/plugins/check_snmp.c index b17a417..907c180 100644 --- a/plugins/check_snmp.c +++ b/plugins/check_snmp.c | |||
@@ -111,7 +111,7 @@ unsigned long upper_crit_lim[MAX_OIDS]; | |||
111 | unsigned long response_value[MAX_OIDS]; | 111 | unsigned long response_value[MAX_OIDS]; |
112 | int check_warning_value = FALSE; | 112 | int check_warning_value = FALSE; |
113 | int check_critical_value = FALSE; | 113 | int check_critical_value = FALSE; |
114 | int eval_method[MAX_OIDS]; | 114 | unsigned long eval_method[MAX_OIDS]; |
115 | char *delimiter; | 115 | char *delimiter; |
116 | char *output_delim; | 116 | char *output_delim; |
117 | char *miblist; | 117 | char *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; |