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

Nick Warne nick at linicks.net
Fri Oct 25 19:07:44 CEST 2013


OK, I think I resolved this.

When I reconfigured my router, I didn't reboot it.  I think then the monitoring got screwed and the router was sending out garbage.

I cleared out everything this morning from my old mrtg set up, and reapplied, and all works as expected... then I remebered I rebooted router early.

So all works oK.

Sorry for the noise.

Nick

On Thu, Oct 24, 2013 at 04:39:12PM +0100, Nick Warne wrote:
> Sorry, forgot to send to list.
> 
> ----- Forwarded message from Nick Warne <nick at linicks.net> -----
> 
> Date: Thu, 24 Oct 2013 16:34:14 +0100
> From: Nick Warne <nick at linicks.net>
> To: Mike Mitchell <Mike.Mitchell at sas.com>
> Subject: Re: [mrtg] [nick at linicks.net: mrtg bug? Interface e.g. eth0.2]
> User-Agent: Mutt/1.5.21 (2010-09-15)
> 
> On Thu, Oct 24, 2013 at 03:13:39PM +0000, Mike Mitchell wrote:
> > Do you have any '--global' options on your cfgmaker command line?
> > The cfgmaker errors stem from these three lines, starting at line #1372:
> >                 $g =~ /^options\[([_^\$])\]:\s*(.*)$/i;
> >                 $t = $1;
> >                 $fs = $2;
> > The first line is a pattern match.  If the pattern matches, $1 and $2 are filled in with the matching parts in parenthesis.  In this case they are both undefined, meaning neither one matched.
> > A work-around would be to change these three lines to be
> >                 $g =~ /^options\[([_^\$])\]:\s*(.*)$/i;
> >                 $t = $1;
> >                 $t = "" if (!defined($t));
> >                 $fs = $2;
> >                 $fs = "" if (!defined($fs));
> > 
> > The error from SNMP_util.pm comes from a badly-formed SNMP response from your router.
> > It would help if I could see what is in $BER::errmsg and $SNMP_Session::errmsg.  I'd put print them out in cfgmaker, but I'll need additional traceback information.  cfgmaker calls snmpwalk in several different places and I'd like to know which one generated the error.
> 
> OK, that sorts the cfgmaker errors, but I still get:
> 
> --base: Get Device Info on nick at 192.168.1.1:
> --base: Vendor Id: Unknown Vendor - 1.3.6.1.4.1.16972
> --base: Populating confcache
> Use of uninitialized value in concatenation (.) or string at /opt/mrtg/bin/../lib/mrtg2/SNMP_util.pm line 755.
> --base: Get Interface Info
> 
> and no interface *.htmls file get produced.
> 
> I still think this is due to the interfaces now having a '.' appended.  On other routers, it is alway an underscore.
> 
> Thanks for your help.
> 
> 
> > From: Nick Warne [nick at linicks.net]
> > Sent: Thursday, October 24, 2013 10:33 AM
> > To: Mike Mitchell
> > Cc: mrtg at lists.oetiker.ch
> > Subject: Re: [mrtg] [nick at linicks.net: mrtg bug? Interface e.g. eth0.2]
> > 
> > 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/
> > 
> > 
> 
> -- 
> FSF Associate Member 5508
> http://linicks.net/
> 
> ----- End forwarded message -----
> 
> -- 
> 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