[Pkg-net-snmp-devel] Bug#815580: jessie's snmpd hrSystemProcesses OID reports a wrong number of processes

Juan David Abreo juan.abreo at gameloft.com
Mon Feb 22 17:08:34 UTC 2016

Package: snmpd
Severity: normal

Dear Maintainer,

Fresh install Jessie's snmp's OIDs for hrSystemProcesses are reporting a lower number of processes,
looks like only counting user processes and leaving out kernel ones. Tested on v.3 and v.4 kernels for jessie.

  myserver:~$snmpwalk -v 2c -c mycomunity hrsystemprocesses
HOST-RESOURCES-MIB::hrSystemProcesses.0 = Gauge32: 66

  myserver ~]# ps aux|wc -l

  myserver ~]# ps aux|egrep -v '\[*\]'|wc -l

-- System Information:
Debian Release: 8.3
   APT prefers stable-updates
   APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 4.3.0-0.bpo.1-amd64 (SMP w/32 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: sysvinit (via /sbin/init)

Versions of packages snmpd depends on:
ii  adduser                3.113+nmu3
ii  debconf [debconf-2.0]  1.5.56
ii  libc6                  2.19-18+deb8u2
ii  libsnmp-base 
ii  libsnmp30    
ii  lsb-base               4.1+Debian13+nmu1

snmpd recommends no packages.

Versions of packages snmpd suggests:
pn  snmptrapd  <none>

-- Configuration Files:
/etc/default/snmpd changed:
export MIBDIRS=/usr/share/snmp/mibs
SNMPDOPTS='-LS 3 daemon -Lf /dev/null -u snmp -p /var/run/snmpd.pid '
TRAPDOPTS='-Lsd -p /var/run/snmptrapd.pid'

**Noted that wheezy upgraded  servers don't have this behavior and hrsystemprocesses number includes kernel processes.

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