forced ppp reconnect creates multiple entries for ppp0 interface

[email protected]
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
I'm using net-snmp 5.2.1.2 on Debian Sarge, to get traffic statistics into
the current version of Cacti.

The Linux box handles my ppp connection (pppoe, ADSL). My ISP reconnects me
every 24 h and rppppoe reconnects immediately, but Cacti stops recording
data.

After some searching I found that every reconnect creates an additional
entry for ppp0 in the snmp table:

# snmpwalk -v 2c -c public localhost 1.3.6.1.2.1.31.1.1.1.1
IF-MIB::ifName.1 = STRING: lo
IF-MIB::ifName.2 = STRING: eth0
IF-MIB::ifName.3 = STRING: eth1
IF-MIB::ifName.4 = STRING: sit0
IF-MIB::ifName.8 = STRING: ppp0
IF-MIB::ifName.11 = STRING: ppp0

The interfaces are correctly marked up and down:

# snmpwalk -v 2c -c public localhost 1.3.6.1.2.1.2.2.1.8.8
IF-MIB::ifOperStatus.8 = INTEGER: down(2)
# snmpwalk -v 2c -c public localhost 1.3.6.1.2.1.2.2.1.8.11
IF-MIB::ifOperStatus.11 = INTEGER: up(1)

As I have to reconnect every day, the table fills up. As a workaround I
restart snmpd after the reconnect. This cleans the table and cacti finds the
correct ppp0 device to record data from.

I wonder, is this bug or a feature? 

-- 
Highspeed-Freiheit. Bei GMX supergünstig, z.B. GMX DSL_Cityflat,
DSL-Flatrate für nur 4,99 Euro/Monat*  http://www.gmx.net/de/go/dsl


-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.