[mrtg-developers] Re: MRTG parsing OID's with dashes in - Bug or Feature?

Tobias Oetiker oetiker at ee.ethz.ch
Thu Jul 6 22:39:16 MEST 2006


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:mrtg-developers-request at list.ee.ethz.ch?subject=unsubscribe
Help        mailto:mrtg-developers-request at list.ee.ethz.ch?subject=help
Archive     http://lists.ee.ethz.ch/mrtg-developers



More information about the mrtg-developers mailing list