[mrtg] [nick at linicks.net: mrtg bug? Interface e.g. eth0.2]

Nick Warne nick at linicks.net
Thu Oct 24 16:33:24 CEST 2013


On Thu, Oct 24, 2013 at 02:22:48PM +0000, Mike Mitchell wrote:
> What version of MRTG are you running?  It might be time for an upgrade.
> I looked through my archive of SNMP_util.pm versions over the last 6 years and not one had a concatenation or string on line 755.  I have older versions archived, but they aren't as easy to get to.

cfgmaker for mrtg-2.17.4

The latest stable, that was the first thing I checked this morning.


> Mike Mitchell
> ________________________________________
> From: mrtg-bounces+mike.mitchell=sas.com at lists.oetiker.ch [mrtg-bounces+mike.mitchell=sas.com at lists.oetiker.ch] on behalf of Nick Warne [nick at linicks.net]
> Sent: Thursday, October 24, 2013 8:18 AM
> To: mrtg at lists.oetiker.ch
> Subject: [mrtg] [nick at linicks.net: mrtg bug? Interface e.g. eth0.2]
> 
> Date: Thu, 24 Oct 2013 13:15:27 +0100
> From: Nick Warne <nick at linicks.net>
> To: mrtg at lists.oetiker.ch
> Subject: mrtg bug? Interface e.g. eth0.2
> User-Agent: Mutt/1.5.21 (2010-09-15)
> 
> Hi all,
> 
> I have been running mrtg for years on various routers etc. all without a problem.
> 
> Today, I finally got fibre DSL.  So I reconfigure my adsl router to just use ppp0e WAN connection - all works great.
> 
> Now before the changes, router reported 3 interfaces:
> 
> eth0 (vlan)
> br0
> ra0
> 
> and mrtg all worked great.
> 
> But now when I run configmaker on new setup something strange happens.
> 
> I get parsing errors in the output thus:
> 
> Use of uninitialized value in substitution (s///) at ./cfgmaker line 1375.
> Use of uninitialized value in substitution (s///) at ./cfgmaker line 1376.
> Use of uninitialized value in substitution (s///) at ./cfgmaker line 1377.
> Use of uninitialized value in pattern match (m//) at ./cfgmaker line 1382.
> Use of uninitialized value in hash element at ./cfgmaker line 1383.
> {repeats x3}
> 
> and one single line:
> 
> Use of uninitialized value in concatenation (.) or string at /opt/mrtg/bin/../lib/mrtg2/SNMP_util.pm line 755.
> 
> The interfaces now reported are:
> eth0
> eth0.2
> eth0.3
> eth0.4
> eth0.5
> br0
> ra0
> 
> which makes me think the extra '.' in the interface names etc. fubars it.
> 
> The logs get updated, and some do the images correctly.  But cfgmaker doesn't produce interface *.html files.
> 
> I have tried various ifref/ifdesc types, all to no avail.
> 
> Any ideas?
> 
> Thanks,
> 
> Nick
> --
> FSF Associate Member 5508
> http://linicks.net/
> 
> _______________________________________________
> mrtg mailing list
> mrtg at lists.oetiker.ch
> https://lists.oetiker.ch/cgi-bin/listinfo/mrtg
> 
> 

-- 
FSF Associate Member 5508
http://linicks.net/



More information about the mrtg mailing list