Re: MRTG parsing OID's with dashes in - Bug or Feature?
Tobias Oetiker <[email protected]> Thu, 6 Jul 2006 22:39:16 +0200 (MEST)
| Newsgroups | gmane.network.mrtg.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi Dan,
try this patch
Index: MRTG_lib.pm
===================================================================
--- MRTG_lib.pm (revision 98)
+++ MRTG_lib.pm (working copy)
@@ -1274,7 +1274,7 @@
# will match. Therefore the match must be postprocessed to check that
# $ifOID and $ifAlt are not both null.
my $ifComplex =
- '([a-zA-Z0-9]*(?:\.\d+)*?)' . # OID possibly starting with a MIB name ($if->{OID})
+ '([-a-zA-Z0-9]*(?:\.\d+)*?)' . # OID possibly starting with a MIB name ($if->{OID})
'(' . # Interface specification alternatives: ($if->{Alt})
'\.' . # separator
$ifSimple . # simple alternatives (6 variables)
cheers
tobi
--
ETH Zurich
Tobias Oetiker, IT Support Group D-ITET (ISG.EE)
ETL F24.2, Physikstrasse 3, 8092 Zurich, Switzerland
Phone +41 44 63 25286, http://people.ee.ethz.ch/oetiker/
--
Unsubscribe mailto:[email protected]?subject=unsubscribe
Help mailto:[email protected]?subject=help
Archive http://lists.ee.ethz.ch/mrtg-developers