Akhouk Guru
Joined: 23 May 2003 Posts: 476 Location: The Two Niles, Africa
|
Posted: Tue Aug 23, 2005 12:14 am Post subject: snmp not reporting interface statistics |
|
|
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 |
|