The following reply was made to PR bin/160494; it has been noted by GNATS. From: Jeremy Chadwick <free...@jdc.parodius.com> To: freebsd-gnats-sub...@freebsd.org, freebsd-bugs@FreeBSD.org Cc: Sylvio C?sar Teixeira Amorim <scjamo...@bsd.com.br> Subject: Re: bin/160494: bsnmpd returns inaccurate data for hrSystemProcesses OID Date: Tue, 6 Sep 2011 08:55:52 -0700
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 | _______________________________________________ freebsd-bugs@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-bugs To unsubscribe, send any mail to "freebsd-bugs-unsubscr...@freebsd.org"