Package: mrtg

---------- Forwarded message ----------
From: Paweł Gołaszewski <bl...@pld-linux.org>
Date: Wed, Dec 3, 2014 at 8:40 AM
Subject: [MRTG] Digital China Networks identity patch
To: mo...@debian.org, ad...@zombino.com



The attached patch was sent to MRTG maintainer and is accepted for future
releases.
Please, think about adding it to debian distribution.

--
pozdr.  Paweł Gołaszewski          jid:blues<at>jabber<dot>gda<dot>pl
--------------------------------------------------------------------------
If you think of MS-DOS as mono, and Windows as stereo, then Linux is Dolby
Pro-Logic Surround Sound with Bass Boost and all the music is free.

---------- Forwarded message ----------
Date: Mon, 1 Dec 2014 16:55:42
From: Paweł Gołaszewski <bl...@pld-linux.org>
To: Tobias Oetiker <t...@oetiker.ch>
Subject: [MRTG] Digital China Networks identity patch


Hi,

I would like to send you patch for MRTG.
It adds identification of "Digital China Networks" devices. It's simple
low-end devices, very cisco-compatible.
With that patch you can have device descriptions in stats.

I hope you find it useful and it will be merged into mainstream.

--
pozdr.  Paweł Gołaszewski          jid:blues<at>jabber<dot>gda<dot>pl
--------------------------------------------------------------------------
If you think of MS-DOS as mono, and Windows as stereo, then Linux is Dolby
Pro-Logic Surround Sound with Bass Boost and all the music is free.


-- 
Sandro Tosi (aka morph, morpheus, matrixhasu)
My website: http://matrixhasu.altervista.org/
Me at Debian: http://wiki.debian.org/SandroTosi
--- cfgmaker.org	2014-12-01 16:48:55.559327159 +0100
+++ cfgmaker	2014-12-01 16:48:38.069327374 +0100
@@ -170,7 +170,7 @@
         push @Variables,  ($1 > 11.0 or $1 < 10.0 ) ? "ifAlias" : "CiscolocIfDescr";
         if ($1 > 11.2) {push @Variables, "vmVlan";};
        if ($1 > 11.3) {push @Variables, "vlanTrunkPortDynamicStatus";};
-    } elsif ( $routers->{$router}{deviceinfo}{Vendor} =~ /(?:hp|juniper|foundry|dellLan|force10|3com|extremenetworks)/) {
+    } elsif ( $routers->{$router}{deviceinfo}{Vendor} =~ /(?:hp|juniper|foundry|dellLan|force10|3com|extremenetworks|DCN)/) {
         push @Variables, "ifAlias";
     }
 
@@ -997,7 +997,8 @@
             '1.3.6.1.4.1.2636.' =>      'juniper',
             '1.3.6.1.4.1.94.' =>        'nokiaipsofw',
             '1.3.6.1.4.1.307.' =>       'portmaster',
-	    '1.3.6.1.4.1.2272.30' =>    'nortel'
+	    '1.3.6.1.4.1.2272.30' =>    'nortel',
+	    '1.3.6.1.4.1.6339' =>	'DCN'
             );
         foreach (keys %vendorIDs) {
             $DevInfo{Vendor} = $vendorIDs{$_} if ($DevInfo{sysObjectID} =~ /\Q$_\E/);

Reply via email to