LM Sensors always returning same (invalid) value for one temp sensor

Posted by pkaeding on Server Fault See other posts from Server Fault or by pkaeding
Published on 2010-06-14T03:26:31Z Indexed on 2010/06/14 3:33 UTC
Read the original article Hit count: 406

Filed under:
|
|

I am trying to monitor the temp sensors on a server, and plot them using Cacti. I have lm-sensors installed and working correctly. For example, here is the output from sensors:

% sensors                                 
acpitz-virtual-0
Adapter: Virtual device
temp1:       +26.8 C  (crit = +100.0 C)                  
temp2:       +32.0 C  (crit = +60.0 C)                  

coretemp-isa-0000
Adapter: ISA adapter
Core 0:      +36.0 C  (high = +105.0 C, crit = +105.0 C)  

coretemp-isa-0001
Adapter: ISA adapter
Core 1:      +42.0 C  (high = +105.0 C, crit = +105.0 C)  

However, when I try to get this data via SNMP, I get only one sensor's temperature correctly, and another one always returns 100.000 C:

% snmpwalk -Os -c public -v 1 10.8.0.18 -m ALL lmTempSensors     
lmTempSensorsIndex.1 = INTEGER: 0
lmTempSensorsIndex.2 = INTEGER: 1
lmTempSensorsDevice.1 = STRING: temp1
lmTempSensorsDevice.2 = STRING: temp1
lmTempSensorsValue.1 = Gauge32: 26800
lmTempSensorsValue.2 = Gauge32: 100000

So, my question is two-fold:

  1. Why is the second sensor that is returned by SNMP giving a value of 100 C (when it should be 32 C)
  2. Why are my CPU core sensors not being returned by SNMP?

© Server Fault or respective owner

Related posts about snmp

Related posts about temperature