Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
snmp not reporting interface statistics
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
Akhouk
Guru
Guru


Joined: 23 May 2003
Posts: 476
Location: The Two Niles, Africa

PostPosted: Tue Aug 23, 2005 12:14 am    Post subject: snmp not reporting interface statistics Reply with quote

I have a problem where my network statistics are only showing when I read them from localhost.
Testing with snmpwalk does not return an error just zero'd counters.

Code:
 # snmpwalk  -c public -v 2c localhost IF-MIB::ifOutOctets
IF-MIB::ifOutOctets.1 = Counter32: 11922028288
IF-MIB::ifOutOctets.2 = Counter32: 23086216247
IF-MIB::ifOutOctets.3 = Counter32: 0
IF-MIB::ifOutOctets.4 = Counter32: 0
IF-MIB::ifOutOctets.5 = Counter32: 210


that is from localhost...but from across the ethernet shows....

Code:
# snmpwalk  -c public -v 2c 192.168.1.10 IF-MIB::ifOutOctets
IF-MIB::ifOutOctets.1 = Counter32: 0
IF-MIB::ifOutOctets.2 = Counter32: 0
IF-MIB::ifOutOctets.3 = Counter32: 0
IF-MIB::ifOutOctets.4 = Counter32: 0
IF-MIB::ifOutOctets.5 = Counter32: 210


I have no idea why the 5th interface has the correct byte count on both (verified against ifconfig) but the other counters are zero. Is there something I am missing?


I am using net-snmp-5.2.1.2 on AMD64. Here is my snmpd.conf


Code:
com2sec local     127.0.0.1/32          public
com2sec local     192.168.1.0/24          public

group MyROGroup v1         local
group MyROGroup v2c        local
group MyROGroup usm        local

view all    included  .1                               80

access MyROGroup ""      any       noauth    exact  all    none   none

syslocation Some Location
syscontact Me <me@somedomain.com>

_________________
AMD 64 3500+, 2Gb RAM DDR400, 2 x 180Gb SATA, 256Mb Nvidia
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum