[mrtg] Can not determine ifNumber for public at gw

Brian J. Murrell brian at interlinx.bc.ca
Wed Mar 17 03:50:19 CET 2010

On Wed, 2010-03-17 at 11:02 +1300, Steve Shipway wrote: 
> MRTG is not able to identify a match for this.

This was all working hunky-dory at one time, not too long ago.

> I assume the interface actually exists at the moment?

Yes, most definitely:

# ifconfig ppp0
ppp0      Link encap:Point-to-Point Protocol  
          inet addr:  P-t-P:  Mask:
          RX packets:41506 errors:0 dropped:0 overruns:0 frame:0
          TX packets:44473 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:3 
          RX bytes:6719582 (6.4 MiB)  TX bytes:5437286 (5.1 MiB)

> Some systems will only create the interface in the SNMP when it is actually up.  If this is the case then you don’t need to worry as you'll just get 'unknown's while the interface is down.

But indeed, it's not so this is not the case, unfortunately.

> Can you run MRTG to check while the interface is up?

It runs every 5 minutes, complaining each time: 

2010-03-16 22:15:03: WARNING: Can not determine ifNumber for public at gw:         ref: 'Type'     key: '23'
2010-03-16 22:15:04: ERROR: Target[gw_ppp0][_IN_] ' $target->[10]{$mode} ' did not eval into defined data
2010-03-16 22:15:04: ERROR: Target[gw_ppp0][_OUT_] ' $target->[10]{$mode} ' did not eval into defined data

and the interface has been up for 3 days now. 

> What device is this gw box?

It's an "OpenWRT" router, which basically just means Linux box.  It's
running net-snmp

> It seems to be behaving oddly.

Indeed.  No argument here on that.  :-)

> I've only ever monitored a ppp interface on a Linux box and there it is permanently visible

Until now.  :-)

Any other ideas?  Any other info I can gather/debug given that you know
it's a Linux box now?


-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part
Url : http://lists.oetiker.ch/pipermail/mrtg/attachments/20100316/71e8f0ad/attachment.pgp 

More information about the mrtg mailing list