1.
Cacti 0.8.7 Running on Leopard Server 10.5.2, with defaults (Apache2.2 + PHP 5.2.5 + Mysql5.0.45)
2.
snmpwalk works:
Code: Select all
octagon:~ user$ snmpwalk -v 2c -c public 192.168.1.8 lmsensors
LM-SENSORS-MIB::lmTempSensorsIndex.1 = INTEGER: 1
LM-SENSORS-MIB::lmTempSensorsIndex.2 = INTEGER: 2
LM-SENSORS-MIB::lmTempSensorsIndex.3 = INTEGER: 3
LM-SENSORS-MIB::lmTempSensorsIndex.4 = INTEGER: 4
LM-SENSORS-MIB::lmTempSensorsIndex.5 = INTEGER: 5
LM-SENSORS-MIB::lmTempSensorsIndex.6 = INTEGER: 6
LM-SENSORS-MIB::lmTempSensorsIndex.7 = INTEGER: 7
LM-SENSORS-MIB::lmTempSensorsIndex.8 = INTEGER: 8
LM-SENSORS-MIB::lmTempSensorsIndex.9 = INTEGER: 9
LM-SENSORS-MIB::lmTempSensorsIndex.10 = INTEGER: 10
LM-SENSORS-MIB::lmTempSensorsIndex.11 = INTEGER: 11
LM-SENSORS-MIB::lmTempSensorsIndex.12 = INTEGER: 12
LM-SENSORS-MIB::lmTempSensorsIndex.13 = INTEGER: 13
LM-SENSORS-MIB::lmTempSensorsIndex.14 = INTEGER: 14
LM-SENSORS-MIB::lmTempSensorsDevice.1 = STRING: PSU1 Secondary Component
LM-SENSORS-MIB::lmTempSensorsDevice.2 = STRING: CPU B Core 0
LM-SENSORS-MIB::lmTempSensorsDevice.3 = STRING: Ambient temp
LM-SENSORS-MIB::lmTempSensorsDevice.4 = STRING: CPU A Core 0
LM-SENSORS-MIB::lmTempSensorsDevice.5 = STRING: MCH HeatSink
LM-SENSORS-MIB::lmTempSensorsDevice.6 = STRING: Drive Bay 1
LM-SENSORS-MIB::lmTempSensorsDevice.7 = STRING: PSU1 Inlet Ambient
LM-SENSORS-MIB::lmTempSensorsDevice.8 = STRING: CPU B Core 1
LM-SENSORS-MIB::lmTempSensorsDevice.9 = STRING: CPU A HeatSink
LM-SENSORS-MIB::lmTempSensorsDevice.10 = STRING: Drive Bay 0
LM-SENSORS-MIB::lmTempSensorsDevice.11 = STRING: CPU B HeatSink
LM-SENSORS-MIB::lmTempSensorsDevice.12 = STRING: CPU A Core 1
LM-SENSORS-MIB::lmTempSensorsDevice.13 = STRING: Drive Bay 3
LM-SENSORS-MIB::lmTempSensorsDevice.14 = STRING: Drive Bay 2
LM-SENSORS-MIB::lmTempSensorsValue.1 = Gauge32: 60000
LM-SENSORS-MIB::lmTempSensorsValue.2 = Gauge32: 38000
LM-SENSORS-MIB::lmTempSensorsValue.3 = Gauge32: 26500
LM-SENSORS-MIB::lmTempSensorsValue.4 = Gauge32: 35000
LM-SENSORS-MIB::lmTempSensorsValue.5 = Gauge32: 84000
LM-SENSORS-MIB::lmTempSensorsValue.6 = Gauge32: 33625
LM-SENSORS-MIB::lmTempSensorsValue.7 = Gauge32: 57000
LM-SENSORS-MIB::lmTempSensorsValue.8 = Gauge32: 0
LM-SENSORS-MIB::lmTempSensorsValue.9 = Gauge32: 49000
LM-SENSORS-MIB::lmTempSensorsValue.10 = Gauge32: 35125
LM-SENSORS-MIB::lmTempSensorsValue.11 = Gauge32: 48500
LM-SENSORS-MIB::lmTempSensorsValue.12 = Gauge32: 0
LM-SENSORS-MIB::lmTempSensorsValue.13 = Gauge32: 34500
LM-SENSORS-MIB::lmTempSensorsValue.14 = Gauge32: 35625
LM-SENSORS-MIB::lmFanSensorsIndex.15 = INTEGER: 15
LM-SENSORS-MIB::lmFanSensorsDevice.15 = STRING: ????
LM-SENSORS-MIB::lmFanSensorsValue.15 = Gauge32: 1998
LM-SENSORS-MIB::lmVoltSensorsIndex.16 = INTEGER: 16
LM-SENSORS-MIB::lmVoltSensorsIndex.17 = INTEGER: 17
LM-SENSORS-MIB::lmVoltSensorsIndex.18 = INTEGER: 18
LM-SENSORS-MIB::lmVoltSensorsIndex.19 = INTEGER: 19
LM-SENSORS-MIB::lmVoltSensorsIndex.20 = INTEGER: 20
LM-SENSORS-MIB::lmVoltSensorsDevice.16 = STRING: MCH voltage cooked
LM-SENSORS-MIB::lmVoltSensorsDevice.17 = STRING: CPU B core voltage
LM-SENSORS-MIB::lmVoltSensorsDevice.18 = STRING: DIMM Riser A cooked voltage
LM-SENSORS-MIB::lmVoltSensorsDevice.19 = STRING: DIMM Riser B cooked voltage
LM-SENSORS-MIB::lmVoltSensorsDevice.20 = STRING: CPU A core voltage
LM-SENSORS-MIB::lmVoltSensorsValue.16 = Gauge32: 1484
LM-SENSORS-MIB::lmVoltSensorsValue.17 = Gauge32: 1234
LM-SENSORS-MIB::lmVoltSensorsValue.18 = Gauge32: 11925
LM-SENSORS-MIB::lmVoltSensorsValue.19 = Gauge32: 11863
3.
Data Query Debug Information
Code: Select all
+ Running data query [11].
+ Found type = '4 '[script query].
+ Found data query XML file at '/Library/WebServer/Documents/cacti-0.8.7b/resource/script_queries/lmsensors_temp.xml'
+ XML file parsed ok.
+ Executing script for list of indexes '/usr/bin/php -q /Library/WebServer/Documents/cacti-0.8.7b/scripts/netsnmp_lmsensors.php temperature 127.0.0.1, foobar, 3, foobar, pass***, MD5, pass***, DES, , 161, 5000 index'
+ Executing script query '/usr/bin/php -q /Library/WebServer/Documents/cacti-0.8.7b/scripts/netsnmp_lmsensors.php temperature 127.0.0.1, foobar, 3, foobar, pass***, MD5, pass***, DES, , 161, 5000 query sensorDevice'
+ Found item [sensorDevice='1'] index: 1
+ Found item [sensorDevice='2'] index: 2
+ Found item [sensorDevice='3'] index: 3
+ Found item [sensorDevice='4'] index: 4
+ Found item [sensorDevice='5'] index: 5
+ Found item [sensorDevice='6'] index: 6
+ Found item [sensorDevice='7'] index: 7
+ Found item [sensorDevice='8'] index: 8
+ Found item [sensorDevice='9'] index: 9
+ Found item [sensorDevice='10'] index: 10
+ Found item [sensorDevice='11'] index: 11
+ Found item [sensorDevice='12'] index: 12
+ Found item [sensorDevice='13'] index: 13
+ Found item [sensorDevice='14'] index: 14
+ Executing script query '/usr/bin/php -q /Library/WebServer/Documents/cacti-0.8.7b/scripts/netsnmp_lmsensors.php temperature 127.0.0.1, foobar, 3, foobar, pass***, MD5, pass***, DES, , 161, 5000 query sensorName'
+ Found item [sensorName='PSU1'] index: 1
+ Found item [sensorName='CPU B'] index: 2
+ Found item [sensorName='Ambient'] index: 3
+ Found item [sensorName='CPU A'] index: 4
+ Found item [sensorName='MCH'] index: 5
+ Found item [sensorName='Drive Bay'] index: 6
+ Found item [sensorName='PSU1'] index: 7
+ Found item [sensorName='CPU B'] index: 8
+ Found item [sensorName='CPU A'] index: 9
+ Found item [sensorName='Drive Bay'] index: 10
+ Found item [sensorName='CPU B'] index: 11
+ Found item [sensorName='CPU A'] index: 12
+ Found item [sensorName='Drive Bay'] index: 13
+ Found item [sensorName='Drive Bay'] index: 14
+ Found data query XML file at '/Library/WebServer/Documents/cacti-0.8.7b/resource/script_queries/lmsensors_temp.xml'
+ Found data query XML file at '/Library/WebServer/Documents/cacti-0.8.7b/resource/script_queries/lmsensors_temp.xml'
+ Found data query XML file at '/Library/WebServer/Documents/cacti-0.8.7b/resource/script_queries/lmsensors_temp.xml'
+ Found data query XML file at '/Library/WebServer/Documents/cacti-0.8.7b/resource/script_queries/lmsensors_temp.xml'
4.
Error:
Code: Select all
/usr/bin/php -q /Library/WebServer/Documents/cacti-0.8.7b/scripts/netsnmp_lmsensors.php temperature 127.0.0.1, foobar, 3, foobar, pass***, MD5, pass***, DES, , 161, 5000 get sensorReading 1
FAILED -- no matching sensors were found
5. I am using tiger.tw's latest scripts:
Posted: Mon Jan 28, 2008 8:31 am Post subject: lmsensors via smpt and cacti 0.8.7a
So, data queries work, graphs are created, but "get sensorReading #" fails in netsnmp_lmsensors.php. what am I doing wrong? Can I please haz help, I am pulling my hairs here