Do not count kernel threads as processes for hrSystemProcesses OID.

PR:		bin/160494
Submitted by:	Jeremy Chadwick <freebsd jdc.parodius.com>
This commit is contained in:
Gleb Smirnoff 2012-09-11 08:33:16 +00:00
parent 5739f2975d
commit 6a9e7628f8

View File

@ -238,7 +238,7 @@ OS_getSystemProcesses(uint32_t *proc_count)
if (hr_kd == NULL)
return (SNMP_ERR_GENERR);
if (kvm_getprocs(hr_kd, KERN_PROC_ALL, 0, &pc) == NULL) {
if (kvm_getprocs(hr_kd, KERN_PROC_PROC, 0, &pc) == NULL) {
syslog(LOG_ERR, "kvm_getprocs failed: %m");
return (SNMP_ERR_GENERR);
}