[Pkg-net-snmp-devel] Bug#382361: snmpd 5.1.2-6.2 bug

James Lamb admin at oranged.to
Thu Aug 10 14:59:56 UTC 2006


Package: snmpd
Version: 5.1.2-6.2


When I query a debian 3.1 server using snmp for idle ticks which should 
indicate that the server is loaded or not. After a large amount of 
uptime (circa 270days) the servers all report the idle ticks not 
increasing even though the server has been idle for some time. If I run 
the following command  awk '/^cpu / {print $5}' /proc/stat I can see 
that the counter is still incrementing but snmpd reports

UCD-SNMP-MIB::ssCpuRawIdle.0 = Counter32: 4294967295

When I query with the following OID enterprises.ucdavis.systemStats

No matter how long the system is up it will always report the variable 
4294967295, even if the system is 100% idle.

I have done some extensive research and it looks as though the problem 
is resolved with the following patch from the net-snmp cvs.
 
http://net-snmp.cvs.sourceforge.net/net-snmp/net-snmp/agent/mibgroup/ucd-snmp/vmstat.c?r1=5.7&r2=5.8


I am using Debian GNU/Linux 3.1, kernel 2.6.8-2-686-smp and 
2.3.2.ds1-22sarge3





More information about the Pkg-net-snmp-devel mailing list