From 0dbab53464230a2121bb92cee33fe9c81f8aa071 Mon Sep 17 00:00:00 2001 From: Thomas Guyot-Sionnest Date: Fri, 2 Feb 2007 09:10:22 +0000 Subject: Fix parsing of multiple OIDs sets needmibs = TRUE git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1605 f882894a-f735-0410-b71e-b25c423dba1c --- plugins/check_snmp.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'plugins') diff --git a/plugins/check_snmp.c b/plugins/check_snmp.c index d9e00782..c43f1efb 100644 --- a/plugins/check_snmp.c +++ b/plugins/check_snmp.c @@ -527,11 +527,11 @@ process_arguments (int argc, char **argv) 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; } -- cgit v1.2.3-74-g34f1