snmpd: Missing CPU info entry in /var/log/messages

Solution Verified - Updated -

Environment

  • Red Hat Enterprise Linux 5
  • net-snmp 5.3

Issue

  • While using the hot-add feature of VMWare (or other hardware that supports hot-adding CPUs) the following messages observed in /var/log/messages:
Jul 17 06:23:05 hostname snmpd[3616]: Missing CPU info entry: No such file or directory
Jul 17 06:23:40 hostname last message repeated 7 times
Jul 17 06:24:45 hostname last message repeated 13 times
Jul 17 06:25:50 hostname last message repeated 13 times

Resolution

  • These messages are harmless, and can be stopped by simply restarting the snmp daemon.
  • The issue exists only in netsnmp-5.3 version not in netsnmp-5.4.

Root Cause

  • When the net-snmp daemon starts up, it builds a list of CPUs, to refer to later.
  • When CPUs are added, the file /proc/stat contains info about CPUs that are not present in that list.
  • The implementations of netsnmp_5.3 netsnmp_5.4 is diffrent . In the version 5.3 to load the CPU netsnmp_cpu_get_byIdx( i, 0) is used however in 5.4 netsnmp_cpu_get_byIdx( i, 1). Passing flag 0 does not support dynamic adding of CPU and throws out the log messages.

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.

Comments