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
Graphing Temperature....
Moderators: Developers, Moderators
Who is online
Users browsing this forum: No registered users and 6 guests