How to convert lmTempSensorsValue (gauge 32) to celsius ?
-
Hi all,
I run snmpwalk to get lmTemSensorsValue, it return:LM-SENSORS-MIB::lmTempSensorsValue.1 = Gauge32: 43000
LM-SENSORS-MIB::lmTempSensorsValue.2 = Gauge32: 34000
LM-SENSORS-MIB::lmTempSensorsValue.3 = Gauge32: 36000
LM-SENSORS-MIB::lmTempSensorsValue.4 = Gauge32: 32000
LM-SENSORS-MIB::lmTempSensorsValue.5 = Gauge32: 35000
LM-SENSORS-MIB::lmTempSensorsValue.6 = Gauge32: 36000
LM-SENSORS-MIB::lmTempSensorsValue.7 = Gauge32: 37000
LM-SENSORS-MIB::lmTempSensorsValue.8 = Gauge32: 35000
LM-SENSORS-MIB::lmTempSensorsValue.9 = Gauge32: 34000
LM-SENSORS-MIB::lmTempSensorsValue.10 = Gauge32: 37000Then i check with "sensors" command,
coretemp-isa-0000
Adapter: ISA adapter
Physical id 0: +43.0°C (high = +83.0°C, crit = +105.0°C)
Core 0: +38.0°C (high = +83.0°C, crit = +105.0°C)
Core 1: +37.0°C (high = +83.0°C, crit = +105.0°C)
Core 2: +38.0°C (high = +83.0°C, crit = +105.0°C)
Core 3: +36.0°C (high = +83.0°C, crit = +105.0°C)
Core 4: +41.0°C (high = +83.0°C, crit = +105.0°C)
Core 5: +39.0°C (high = +83.0°C, crit = +105.0°C)
Core 6: +38.0°C (high = +83.0°C, crit = +105.0°C)
Core 7: +43.0°C (high = +83.0°C, crit = +105.0°C)coretemp-isa-0008
Adapter: ISA adapter
Physical id 1: +37.0°C (high = +83.0°C, crit = +105.0°C)
Core 0: +34.0°C (high = +83.0°C, crit = +105.0°C)
Core 1: +36.0°C (high = +83.0°C, crit = +105.0°C)
Core 2: +32.0°C (high = +83.0°C, crit = +105.0°C)
Core 3: +35.0°C (high = +83.0°C, crit = +105.0°C)
Core 4: +36.0°C (high = +83.0°C, crit = +105.0°C)
Core 5: +37.0°C (high = +83.0°C, crit = +105.0°C)
Core 6: +36.0°C (high = +83.0°C, crit = +105.0°C)
Core 7: +35.0°C (high = +83.0°C, crit = +105.0°C)So, how to convert snmp value to celsius value?
Thanks.
-
Hi,
it seems that lmTempSensorsValue returns temperaure mesaured in 1/1000th of centigrade. The following simple transformation script on DCI will convert it:
return $1 / 1000;
Best regards,
Victor -
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login