Package: mrtg
Version: 2.17.7-3
Severity: important
Tags: upstream patch

In bin/cfgmaker (source code), there is a typo. The following patch will fix it.

--- mrtg-2.17.8+dfsg1.orig/bin/cfgmaker
+++ mrtg-2.17.8+dfsg1/bin/cfgmaker
@@ -956,7 +956,7 @@ sub DeviceInfo ($$$) {
     my @variables = snmpwalk(v4onlyifnecessary($router, 
$ipv4only),$v3opt,'1.3.6.1.2.1.1'); # walk system
     if (!(defined $variables[0])) {
         # Do we need to fall back to IPv4?
-        my ($commmunity, $host) = ($1, $2) if ($router =~ /^(.*)@([^@]+)$/);
+        my ($community, $host) = ($1, $2) if ($router =~ /^(.*)@([^@]+)$/);
         if ( ( ! $ipv4only ) && ( $host !~ /^\[(.*)\]/) ) {
             # Not using IPv4, not an IPv6 address, so a hostname
             debug ('base',"No response using IPv6 for $router, trying again 
using IPv4");

Regards,

Eriberto

Reply via email to