mirror of
https://github.com/monitoring-plugins/monitoring-plugins.git
synced 2026-04-21 22:29:49 -04:00
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
This commit is contained in:
parent
b0307d7a99
commit
0dbab53464
1 changed files with 4 additions and 4 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue