I'm using net-snmp 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

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

# snmpwalk -v 2c -c public localhost
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
IF-MIB::ifOperStatus.8 = INTEGER: down(2)
# snmpwalk -v 2c -c public localhost
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
Please see the following page to unsubscribe or change other options:

Reply via email to