LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 11-07-2005, 05:01 AM   #1
vimico
Member
 
Registered: Jan 2004
Distribution: Debian, Ubuntu
Posts: 118

Rep: Reputation: 15
forced reconnect creates multiple ppp0 entries in snmp table


I'm using net-snmp 5.2.1.2 on Debian Sarge, to get traffic statistics into the current version of Cacti. See also:
http://www.linuxquestions.org/questi...hreadid=378983

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 research I found that every reconnect creates an additional entry for ppp0 in the snmp table:

Code:
# 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:

Code:
# 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. Apparently Cacti doesn't like multiple instances of the same device in the interface table and records the offline status of the "old" one.

As a workaround I restart snmpd after the reconnect (via ppp/ip-up.d). This cleans the table and cacti finds the correct ppp0 device to record data from.

I wonder, is this bug or a feature?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to save routing table entries? drgowans Linux - Networking 7 02-26-2019 06:16 PM
Adding entries to route table in C? kuronai Programming 2 04-04-2005 02:42 PM
Multiple same entries in volume controls or1onas Linux - Newbie 4 02-07-2005 12:21 PM
filter /etc/messages for certain IP table entries don_wombat Linux - Software 0 12-14-2004 03:45 PM
Route table loses entries filth Linux - Networking 3 05-05-2003 05:27 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 06:19 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration