Graphing Temperature....

Post support questions that directly relate to Linux/Unix operating systems.

Moderators: Developers, Moderators

Post Reply
Helios
Posts: 1
Joined: Thu Apr 29, 2004 8:46 am

Graphing Temperature....

Post by Helios »

Hi All,

I have spent this week trying to get Cacti and RRDtool to graph the Case and CPU temperature on my servers.

Several mentions of this appear on the board, however, they all seem to use extension scripts to NET-SNMP, or local scripts - something I want to avoid!

Anyway, I have discovered that the version of NET-SNMP I using does return data from LM_SENSORS under the hrSensors part of the MIB:

HOST-RESOURCES-MIB::hrSensorMapping.107 = INTEGER: -1
HOST-RESOURCES-MIB::hrSensorNumber.107 = INTEGER: 51
HOST-RESOURCES-MIB::hrSensorName.107 = STRING: temp1
HOST-RESOURCES-MIB::hrSensorLabel.107 = STRING: temp1
HOST-RESOURCES-MIB::hrSensorValue.107 = STRING: 43.000000

Anyway - I have added these to a graph in cacti, but unfortuantly, it returns 'NaN' - I am presuming because the hrSensorValue (The temp in degrees C) is of a string value.

So - the question is, how do I go about converting from a string to a float, and getting this info onto my graphs???

Cheers,

Richie
yhan_m

Post by yhan_m »

Hi

Did you tried to query the oid with snmpget to check if it is working ?

If not try to run manually lmsensor to debug it.

Good luck

Yhan
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests