LM Sensors always returning same (invalid) value for one temp sensor
- by pkaeding
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:
Why is the second sensor that is returned by SNMP giving a value of 100 C (when it should be 32 C)
Why are my CPU core sensors not being returned by SNMP?