[Nagiosplug-checkins] nagiosplug/plugins check_snmp.c,1.48,1.49

Matthew Kent mattkent at users.sourceforge.net
Sun Dec 5 14:08:03 CET 2004


Update of /cvsroot/nagiosplug/nagiosplug/plugins
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21271

Modified Files:
	check_snmp.c 
Log Message:
Fix for -s string matching (#756567, Tony Missana)


Index: check_snmp.c
===================================================================
RCS file: /cvsroot/nagiosplug/nagiosplug/plugins/check_snmp.c,v
retrieving revision 1.48
retrieving revision 1.49
diff -u -d -r1.48 -r1.49
--- check_snmp.c	3 Dec 2004 23:55:29 -0000	1.48
+++ check_snmp.c	5 Dec 2004 22:07:30 -0000	1.49
@@ -259,7 +259,7 @@
 
 		/* Process this block for string matching */
 		else if (eval_method[i] & CRIT_STRING) {
-			if (strcmp (response, string_value))
+			if (strcmp (show, string_value))
 				iresult = STATE_CRITICAL;
 			else
 				iresult = STATE_OK;





More information about the Commits mailing list