[Nagiosplug-checkins] CVS: nagiosplug/plugins check_snmp.c,1.37,1.38
Karl DeBisschop
kdebisschop at users.sourceforge.net
Fri Feb 27 23:37:08 CET 2004
Update of /cvsroot/nagiosplug/nagiosplug/plugins
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv16250
Modified Files:
check_snmp.c
Log Message:
checks for warn in check_num() mistakenly referred to crit limits
Index: check_snmp.c
===================================================================
RCS file: /cvsroot/nagiosplug/nagiosplug/plugins/check_snmp.c,v
retrieving revision 1.37
retrieving revision 1.38
diff -C2 -r1.37 -r1.38
*** check_snmp.c 20 Feb 2004 05:22:05 -0000 1.37
--- check_snmp.c 28 Feb 2004 07:27:17 -0000 1.38
***************
*** 112,116 ****
int check_warning_value = FALSE;
int check_critical_value = FALSE;
! int eval_method[MAX_OIDS];
char *delimiter;
char *output_delim;
--- 112,116 ----
int check_warning_value = FALSE;
int check_critical_value = FALSE;
! unsigned long eval_method[MAX_OIDS];
char *delimiter;
char *output_delim;
***************
*** 746,750 ****
if (eval_method[i] & CRIT_GT && eval_method[i] & CRIT_LT &&
! lower_warn_lim[i] > upper_warn_lim[i]) {
if (response_value[i] <= lower_crit_lim[i] &&
response_value[i] >= upper_crit_lim[i]) {
--- 746,750 ----
if (eval_method[i] & CRIT_GT && eval_method[i] & CRIT_LT &&
! lower_crit_lim[i] > upper_crit_lim[i]) {
if (response_value[i] <= lower_crit_lim[i] &&
response_value[i] >= upper_crit_lim[i]) {
More information about the Commits
mailing list