diff options
author | Thomas Guyot-Sionnest <dermoth@users.sourceforge.net> | 2007-02-02 09:10:22 +0000 |
---|---|---|
committer | Thomas Guyot-Sionnest <dermoth@users.sourceforge.net> | 2007-02-02 09:10:22 +0000 |
commit | 0dbab53464230a2121bb92cee33fe9c81f8aa071 (patch) | |
tree | bee727dbd30d55a97418ef812ee6fa75f5eac0e5 /plugins | |
parent | b0307d7a99c56b2d77bc80f7f931e7016b9d4e39 (diff) | |
download | monitoring-plugins-0dbab53464230a2121bb92cee33fe9c81f8aa071.tar.gz |
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
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/check_snmp.c | 8 |
1 files changed, 4 insertions, 4 deletions
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) | |||
527 | retries = atoi(optarg); | 527 | retries = atoi(optarg); |
528 | break; | 528 | break; |
529 | case 'o': /* object identifier */ | 529 | case 'o': /* object identifier */ |
530 | if ( strspn( optarg, "0123456789." ) != strlen( optarg ) ) { | 530 | if ( strspn( optarg, "0123456789.," ) != strlen( optarg ) ) { |
531 | /* | 531 | /* |
532 | * we have something other than digits and periods, so we | 532 | * we have something other than digits, periods and comas, |
533 | * have a mib variable, rather than just an SNMP OID, so | 533 | * so we have a mib variable, rather than just an SNMP OID, |
534 | * we have to actually read the mib files | 534 | * so we have to actually read the mib files |
535 | */ | 535 | */ |
536 | needmibs = TRUE; | 536 | needmibs = TRUE; |
537 | } | 537 | } |