bin/160494: bsnmpd returns inaccurate data for hrSystemProcesses
OID
Jeremy Chadwick
freebsd at jdc.parodius.com
Tue Sep 6 16:09:10 UTC 2011
On Tue, Sep 06, 2011 at 08:41:39AM -0300, Sylvio C?sar Teixeira Amorim wrote:
> Do a patch and send me.
I had a chance to review the net-snmp code. My previous claim was
incorrect -- net-snmp DOES NOT suffer from the problem documented in
this PR. The code in net-snmp which uses kvm_getprocs(3) is for the
hrSW*Run OIDs, which (properly) uses KERN_PROC_ALL to ensure they count
kernel threads for kernel modules.
The hrSystemProcesses OID with net-snmp returns the correct number of
system processes (not including threads). Verification:
icarus# snmpwalk -v2c -c public localhost hrSystemProcesses
HOST-RESOURCES-MIB::hrSystemProcesses.0 = Gauge32: 60
So this PR/issue is specific to bsnmpd. Sorry to waste your time,
Sylvio!
The PR should remain open as bsnmpd needs to be fixed.
--
| Jeremy Chadwick jdc at parodius.com |
| Parodius Networking http://www.parodius.com/ |
| UNIX Systems Administrator Mountain View, CA, US |
| Making life hard for others since 1977. PGP 4BD6C0CB |
More information about the freebsd-bugs
mailing list