Package: mrtg Version: 2.12.2-1 Severity: wishlist File: /usr/bin/cfgmaker Tags: patch
Please include this patch so that cfgmaker is able to add interface names to headers with --ifdesc=alias on Hewlett Packards Procurve switches. The name will be what HP calls "Friendly port name" which is set in the cli with the command "interface IFNAME name NAME. I have tested it on the following models: 2626, 2650 and 2824 - but it should work on most other Procurve network equipment. -- System Information: Debian Release: testing/unstable APT prefers unstable APT policy: (990, 'unstable'), (1, 'experimental') Architecture: i386 (i686) Shell: /bin/sh linked to /bin/bash Kernel: Linux 2.6.13-kriller-workstation Locale: LANG=en_DK, LC_CTYPE=en_DK (charmap=ISO-8859-1) Versions of packages mrtg depends on: ii debconf [debconf-2.0] 1.4.69 Debian configuration management sy ii libc6 2.3.5-12 GNU C Library: Shared libraries an ii libgd2-xpm 2.0.33-3 GD Graphics Library version 2 ii libpng12-0 1.2.8rel-5 PNG library - runtime ii libsnmp-session-perl 1.08-1 Perl support for accessing SNMP-aw ii perl 5.8.7-10 Larry Wall's Practical Extraction ii perl-modules 5.8.7-10 Core Perl modules ii zlib1g 1:1.2.3-9 compression library - runtime mrtg recommends no packages. -- debconf information excluded
--- cfgmaker.orig 2006-01-28 14:59:03.045558750 +0100 +++ cfgmaker 2006-01-28 17:19:54.817761500 +0100 @@ -130,6 +130,8 @@ if ($1 > 11.2) {push @Variables, "vmVlan";}; } elsif ( $routers->{$router}{deviceinfo}{Vendor} =~ /(?:juniper|foundry|dellLan|force10|extremenetworks)/) { push @Variables, "ifAlias"; + } elsif ($routers->{$router}{deviceinfo}{Vendor} eq 'hp' ) { + push @Variables, "ifAlias"; } my $descr = $routers->{$router}{deviceinfo}{sysDescr}; @@ -887,6 +889,7 @@ '1.3.6.1.4.1.1916.' => 'extremenetworks', '1.3.6.1.4.1.1991.' => 'foundry', '1.3.6.1.4.1.6027.' => 'force10', + '1.3.6.1.4.1.11.' => 'hp', '1.3.6.1.4.1.2636.' => 'juniper', '1.3.6.1.4.1.94.' => 'nokiaipsofw', '1.3.6.1.4.1.307.' => 'portmaster'