Bug 967871
Summary: | net-snmp does not display correct lm_sensors sensor data / missing CPU cores | |||
---|---|---|---|---|
Product: | Red Hat Enterprise Linux 6 | Reporter: | tunderhay | |
Component: | net-snmp | Assignee: | Jan Safranek <jsafrane> | |
Status: | CLOSED ERRATA | QA Contact: | Dalibor Pospíšil <dapospis> | |
Severity: | high | Docs Contact: | ||
Priority: | unspecified | |||
Version: | 6.4 | CC: | dapospis, mxxcon | |
Target Milestone: | rc | |||
Target Release: | --- | |||
Hardware: | x86_64 | |||
OS: | Linux | |||
Whiteboard: | ||||
Fixed In Version: | Doc Type: | Bug Fix | ||
Doc Text: |
Cause:
snmpd expected, that sensor names reported by lm_sensors library are unique. However, on systems with multiple sockets with Xeon family CPUs, the thermal sensors on all CPUs have the same name.
Consequence:
snmpd reported temperature only of one CPU.
Fix:
snmpd adds prefix to all sensors, that have the same name.
Result:
snmpd reports temperature of all CPUs.
For example, on 2-socket machine with two-core CPUs, the old snmpd reported just two thermal sensors (from the first CPU) in LM-SENSORS-MIB::lmTempSensorsTable:
lmTempSensorsDevice.2 = STRING: Core 0
lmTempSensorsDevice.3 = STRING: Core 1
With this update, all four thermal sensors are reported. Notice the prefix of second set of sensor names:
lmTempSensorsDevice.2 = STRING: Core 0
lmTempSensorsDevice.3 = STRING: Core 1
lmTempSensorsDevice.6 = STRING: coretemp-isa-0004:Core 0
lmTempSensorsDevice.7 = STRING: coretemp-isa-0004:Core 1
The first set of sensors is kept without prefix to keep compatibility with old applications, which may expect sensor named 'Core 0'.
|
Story Points: | --- | |
Clone Of: | ||||
: | 1252053 (view as bug list) | Environment: | ||
Last Closed: | 2015-07-22 07:22:08 UTC | Type: | Bug | |
Regression: | --- | Mount Type: | --- | |
Documentation: | --- | CRM: | ||
Verified Versions: | Category: | --- | ||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | ||
Cloudforms Team: | --- | Target Upstream Version: | ||
Embargoed: |
Description
tunderhay
2013-05-28 12:58:11 UTC
I see similar problem on Dell R720 server with dual Xeon E5-2667 CPU (6 cores+HT) running latest stable Oracle Enterprise Linux 6.4(based on RHEL) [root@host log]$ rpm -qa|grep snmp net-snmp-utils-5.5-44.0.1.el6_4.2.x86_64 net-snmp-libs-5.5-44.0.1.el6_4.2.x86_64 net-snmp-5.5-44.0.1.el6_4.2.x86_64 [root@host log]$ rpm -qa|grep sensors lm_sensors-libs-3.1.1-17.el6.x86_64 lm_sensors-3.1.1-17.el6.x86_64 [root@host log]$ sensors coretemp-isa-0000 Adapter: ISA adapter Physical id 0: +56.0°C (high = +96.0°C, crit = +102.0°C) Core 0: +55.0°C (high = +96.0°C, crit = +102.0°C) Core 1: +50.0°C (high = +96.0°C, crit = +102.0°C) Core 2: +52.0°C (high = +96.0°C, crit = +102.0°C) Core 3: +55.0°C (high = +96.0°C, crit = +102.0°C) Core 4: +52.0°C (high = +96.0°C, crit = +102.0°C) Core 5: +56.0°C (high = +96.0°C, crit = +102.0°C) coretemp-isa-0001 Adapter: ISA adapter Physical id 1: +43.0°C (high = +96.0°C, crit = +102.0°C) Core 0: +43.0°C (high = +96.0°C, crit = +102.0°C) Core 1: +41.0°C (high = +96.0°C, crit = +102.0°C) Core 2: +42.0°C (high = +96.0°C, crit = +102.0°C) Core 3: +41.0°C (high = +96.0°C, crit = +102.0°C) Core 4: +40.0°C (high = +96.0°C, crit = +102.0°C) Core 5: +41.0°C (high = +96.0°C, crit = +102.0°C) my /etc/snmp/snmpd.conf has the following line to allow full access: view all included .1 80 [root@host log]# snmpwalk -c public -v 2c localhost sensor LM-SENSORS-MIB::lmTempSensorsIndex.1 = INTEGER: 1 LM-SENSORS-MIB::lmTempSensorsIndex.2 = INTEGER: 2 LM-SENSORS-MIB::lmTempSensorsIndex.3 = INTEGER: 3 LM-SENSORS-MIB::lmTempSensorsIndex.4 = INTEGER: 4 LM-SENSORS-MIB::lmTempSensorsIndex.5 = INTEGER: 5 LM-SENSORS-MIB::lmTempSensorsIndex.6 = INTEGER: 6 LM-SENSORS-MIB::lmTempSensorsIndex.7 = INTEGER: 7 LM-SENSORS-MIB::lmTempSensorsIndex.8 = INTEGER: 8 LM-SENSORS-MIB::lmTempSensorsDevice.1 = STRING: Physical id 0 LM-SENSORS-MIB::lmTempSensorsDevice.2 = STRING: Core 0 LM-SENSORS-MIB::lmTempSensorsDevice.3 = STRING: Core 1 LM-SENSORS-MIB::lmTempSensorsDevice.4 = STRING: Core 2 LM-SENSORS-MIB::lmTempSensorsDevice.5 = STRING: Core 3 LM-SENSORS-MIB::lmTempSensorsDevice.6 = STRING: Core 4 LM-SENSORS-MIB::lmTempSensorsDevice.7 = STRING: Core 5 LM-SENSORS-MIB::lmTempSensorsDevice.8 = STRING: Physical id 1 LM-SENSORS-MIB::lmTempSensorsValue.1 = Gauge32: 60000 LM-SENSORS-MIB::lmTempSensorsValue.2 = Gauge32: 44000 LM-SENSORS-MIB::lmTempSensorsValue.3 = Gauge32: 42000 LM-SENSORS-MIB::lmTempSensorsValue.4 = Gauge32: 42000 LM-SENSORS-MIB::lmTempSensorsValue.5 = Gauge32: 42000 LM-SENSORS-MIB::lmTempSensorsValue.6 = Gauge32: 41000 LM-SENSORS-MIB::lmTempSensorsValue.7 = Gauge32: 41000 LM-SENSORS-MIB::lmTempSensorsValue.8 = Gauge32: 44000 This request was not resolved in time for the current release. Red Hat invites you to ask your support representative to propose this request, if still desired, for consideration in the next release of Red Hat Enterprise Linux. (In reply to RHEL Product and Program Management from comment #3) > This request was not resolved in time for the current release. > Red Hat invites you to ask your support representative to > propose this request, if still desired, for consideration in > the next release of Red Hat Enterprise Linux. I don't have support representatives. Yes, I still desire to have this bug fixed. This bug was submitted 5 month ago... It should've been plenty of time to make it into the current release cycle. :( I'm having the same issue with snmp not displaying all the lm_sensors data. I have dual Intel(R) Xeon(R) CPU E5-2650 0 @ 2.00GHz cpus on RHEL 6.4. The "sensors" command displays: $ sensors coretemp-isa-0000 Adapter: ISA adapter Physical id 0: +56.0°C (high = +80.0°C, crit = +90.0°C) Core 0: +54.0°C (high = +80.0°C, crit = +90.0°C) Core 1: +56.0°C (high = +80.0°C, crit = +90.0°C) Core 2: +50.0°C (high = +80.0°C, crit = +90.0°C) Core 3: +50.0°C (high = +80.0°C, crit = +90.0°C) Core 4: +51.0°C (high = +80.0°C, crit = +90.0°C) Core 5: +55.0°C (high = +80.0°C, crit = +90.0°C) Core 6: +52.0°C (high = +80.0°C, crit = +90.0°C) Core 7: +56.0°C (high = +80.0°C, crit = +90.0°C) coretemp-isa-0008 Adapter: ISA adapter Physical id 1: +62.0°C (high = +80.0°C, crit = +90.0°C) Core 0: +58.0°C (high = +80.0°C, crit = +90.0°C) Core 1: +62.0°C (high = +80.0°C, crit = +90.0°C) Core 2: +60.0°C (high = +80.0°C, crit = +90.0°C) Core 3: +58.0°C (high = +80.0°C, crit = +90.0°C) Core 4: +59.0°C (high = +80.0°C, crit = +90.0°C) Core 5: +59.0°C (high = +80.0°C, crit = +90.0°C) Core 6: +60.0°C (high = +80.0°C, crit = +90.0°C) Core 7: +59.0°C (high = +80.0°C, crit = +90.0°C) However when using snmpwalk the output is truncated: $snmpwalk -v2c -c the_community localhost lmSensors LM-SENSORS-MIB::lmTempSensorsIndex.1 = INTEGER: 1 LM-SENSORS-MIB::lmTempSensorsIndex.2 = INTEGER: 2 LM-SENSORS-MIB::lmTempSensorsIndex.3 = INTEGER: 3 LM-SENSORS-MIB::lmTempSensorsIndex.4 = INTEGER: 4 LM-SENSORS-MIB::lmTempSensorsIndex.5 = INTEGER: 5 LM-SENSORS-MIB::lmTempSensorsIndex.6 = INTEGER: 6 LM-SENSORS-MIB::lmTempSensorsIndex.7 = INTEGER: 7 LM-SENSORS-MIB::lmTempSensorsIndex.8 = INTEGER: 8 LM-SENSORS-MIB::lmTempSensorsIndex.9 = INTEGER: 9 LM-SENSORS-MIB::lmTempSensorsIndex.10 = INTEGER: 10 LM-SENSORS-MIB::lmTempSensorsDevice.1 = STRING: Physical id 0 LM-SENSORS-MIB::lmTempSensorsDevice.2 = STRING: Core 0 LM-SENSORS-MIB::lmTempSensorsDevice.3 = STRING: Core 1 LM-SENSORS-MIB::lmTempSensorsDevice.4 = STRING: Core 2 LM-SENSORS-MIB::lmTempSensorsDevice.5 = STRING: Core 3 LM-SENSORS-MIB::lmTempSensorsDevice.6 = STRING: Core 4 LM-SENSORS-MIB::lmTempSensorsDevice.7 = STRING: Core 5 LM-SENSORS-MIB::lmTempSensorsDevice.8 = STRING: Core 6 LM-SENSORS-MIB::lmTempSensorsDevice.9 = STRING: Core 7 LM-SENSORS-MIB::lmTempSensorsDevice.10 = STRING: Physical id 1 LM-SENSORS-MIB::lmTempSensorsValue.1 = Gauge32: 56000 LM-SENSORS-MIB::lmTempSensorsValue.2 = Gauge32: 57000 LM-SENSORS-MIB::lmTempSensorsValue.3 = Gauge32: 62000 LM-SENSORS-MIB::lmTempSensorsValue.4 = Gauge32: 60000 LM-SENSORS-MIB::lmTempSensorsValue.5 = Gauge32: 57000 LM-SENSORS-MIB::lmTempSensorsValue.6 = Gauge32: 58000 LM-SENSORS-MIB::lmTempSensorsValue.7 = Gauge32: 59000 LM-SENSORS-MIB::lmTempSensorsValue.8 = Gauge32: 60000 LM-SENSORS-MIB::lmTempSensorsValue.9 = Gauge32: 58000 LM-SENSORS-MIB::lmTempSensorsValue.10 = Gauge32: 62000 It seems the bug has been reported on the net-snmp sourceforge page: http://sourceforge.net/p/net-snmp/bugs/2561/ Perhaps if this is resolved it would be good to pull that into the next release. No response from upstream, pushed to their git: https://sourceforge.net/p/net-snmp/code/ci/e886f5eb9701851ad6948583156bfd59fcb6110f/ Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://rhn.redhat.com/errata/RHSA-2015-1385.html |