[Nagiosplug-checkins] nagiosplug/plugins check_snmp.c,1.68,1.69

Thomas Guyot dermoth at users.sourceforge.net
Fri Feb 2 10:10:25 CET 2007


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

Modified Files:
	check_snmp.c 
Log Message:
Fix parsing of multiple OIDs sets needmibs = TRUE


Index: check_snmp.c
===================================================================
RCS file: /cvsroot/nagiosplug/nagiosplug/plugins/check_snmp.c,v
retrieving revision 1.68
retrieving revision 1.69
diff -u -d -r1.68 -r1.69
--- check_snmp.c	28 Jan 2007 21:46:40 -0000	1.68
+++ check_snmp.c	2 Feb 2007 09:10:22 -0000	1.69
@@ -527,11 +527,11 @@
 				retries = atoi(optarg);
 			break;
 		case 'o':									/* object identifier */
-			if ( strspn( optarg, "0123456789." ) != strlen( optarg ) ) {
+			if ( strspn( optarg, "0123456789.," ) != strlen( optarg ) ) {
 					/*
-					 * we have something other than digits and periods, so we
-					 * have a mib variable, rather than just an SNMP OID, so
-					 * we have to actually read the mib files
+					 * we have something other than digits, periods and comas,
+					 * so we have a mib variable, rather than just an SNMP OID,
+					 * so we have to actually read the mib files
 					 */
 					needmibs = TRUE;
 			}





More information about the Commits mailing list