ehall wrote:I uploaded a new version that should work with 0.8.6 and 0.8.7 including the SNMPv3 stuff in 0.8.7
Just installed your latest sensors stuff
The machine with sensors to be monitored has installed
fedora 10
net-snmp 5.4.2.1
lm_sensors 3.0.2
I can run
# sensors
and get sensible results locally
w83627dhg-isa-0290
Adapter: ISA adapter
VCore: +1.12 V (min = +0.00 V, max = +1.74 V)
in1: +11.46 V (min = +7.02 V, max = +11.88 V)
AVCC: +3.30 V (min = +0.45 V, max = +2.24 V) ALARM
3VCC: +3.30 V (min = +0.37 V, max = +0.67 V) ALARM
in4: +1.14 V (min = +0.12 V, max = +0.64 V) ALARM
in5: +1.68 V (min = +0.02 V, max = +0.01 V) ALARM
in6: +3.79 V (min = +0.67 V, max = +6.35 V)
VSB: +3.30 V (min = +3.23 V, max = +1.10 V) ALARM
VBAT: +3.30 V (min = +0.53 V, max = +0.62 V) ALARM
Case Fan: 0 RPM (min = 10546 RPM, div = 128) ALARM
CPU Fan: 1562 RPM (min = 10546 RPM, div = 4) ALARM
Aux Fan: 2445 RPM (min = 3443 RPM, div = 4) ALARM
fan5: 0 RPM (min = 10546 RPM, div = 128) ALARM
Sys Temp: +46.0°C (high = +13.0°C, hyst = +85.0°C) sensor = thermistor
CPU Temp: +49.0°C (high = +80.0°C, hyst = +75.0°C) sensor = diode
AUX Temp: +127.0°C (high = +80.0°C, hyst = +75.0°C) ALARM sensor = thermistor
cpu0_vid: +1.550 V
coretemp-isa-0000
Adapter: ISA adapter
Core 0: +48.0°C (high = +78.0°C, crit = +100.0°C)
coretemp-isa-0001
Adapter: ISA adapter
Core 1: +48.0°C (high = +78.0°C, crit = +100.0°C)
The cacti machine has installed
centos 5.3
cacti 0.8.7d
php 5.1.6
net-snmp 5.3.2.2
I can run
# snmpwalk -v 2c -c public 192.168.1.232 sensors
and get sensible results remotely
LM-SENSORS-MIB::lmTempSensorsIndex.14 = INTEGER: 14
LM-SENSORS-MIB::lmTempSensorsIndex.15 = INTEGER: 15
LM-SENSORS-MIB::lmTempSensorsIndex.16 = INTEGER: 16
LM-SENSORS-MIB::lmTempSensorsIndex.18 = INTEGER: 18
LM-SENSORS-MIB::lmTempSensorsIndex.19 = INTEGER: 19
LM-SENSORS-MIB::lmTempSensorsDevice.14 = STRING: Sys Temp
LM-SENSORS-MIB::lmTempSensorsDevice.15 = STRING: CPU Temp
LM-SENSORS-MIB::lmTempSensorsDevice.16 = STRING: AUX Temp
LM-SENSORS-MIB::lmTempSensorsDevice.18 = STRING: Core 0
LM-SENSORS-MIB::lmTempSensorsDevice.19 = STRING: Core 1
LM-SENSORS-MIB::lmTempSensorsValue.14 = Gauge32: 46000
LM-SENSORS-MIB::lmTempSensorsValue.15 = Gauge32: 49000
LM-SENSORS-MIB::lmTempSensorsValue.16 = Gauge32: 127000
LM-SENSORS-MIB::lmTempSensorsValue.18 = Gauge32: 48000
LM-SENSORS-MIB::lmTempSensorsValue.19 = Gauge32: 48000
LM-SENSORS-MIB::lmFanSensorsIndex.10 = INTEGER: 10
LM-SENSORS-MIB::lmFanSensorsIndex.11 = INTEGER: 11
LM-SENSORS-MIB::lmFanSensorsIndex.12 = INTEGER: 12
LM-SENSORS-MIB::lmFanSensorsIndex.13 = INTEGER: 13
LM-SENSORS-MIB::lmFanSensorsDevice.10 = STRING: Case Fan
LM-SENSORS-MIB::lmFanSensorsDevice.11 = STRING: CPU Fan
LM-SENSORS-MIB::lmFanSensorsDevice.12 = STRING: Aux Fan
LM-SENSORS-MIB::lmFanSensorsDevice.13 = STRING: fan5
LM-SENSORS-MIB::lmFanSensorsValue.10 = Gauge32: 0
LM-SENSORS-MIB::lmFanSensorsValue.11 = Gauge32: 1679
LM-SENSORS-MIB::lmFanSensorsValue.12 = Gauge32: 2445
LM-SENSORS-MIB::lmFanSensorsValue.13 = Gauge32: 0
LM-SENSORS-MIB::lmVoltSensorsIndex.1 = INTEGER: 1
LM-SENSORS-MIB::lmVoltSensorsIndex.2 = INTEGER: 2
LM-SENSORS-MIB::lmVoltSensorsIndex.3 = INTEGER: 3
LM-SENSORS-MIB::lmVoltSensorsIndex.4 = INTEGER: 4
LM-SENSORS-MIB::lmVoltSensorsIndex.5 = INTEGER: 5
LM-SENSORS-MIB::lmVoltSensorsIndex.6 = INTEGER: 6
LM-SENSORS-MIB::lmVoltSensorsIndex.7 = INTEGER: 7
LM-SENSORS-MIB::lmVoltSensorsIndex.8 = INTEGER: 8
LM-SENSORS-MIB::lmVoltSensorsIndex.9 = INTEGER: 9
LM-SENSORS-MIB::lmVoltSensorsIndex.17 = INTEGER: 17
LM-SENSORS-MIB::lmVoltSensorsDevice.1 = STRING: VCore
LM-SENSORS-MIB::lmVoltSensorsDevice.2 = STRING: in1
LM-SENSORS-MIB::lmVoltSensorsDevice.3 = STRING: AVCC
LM-SENSORS-MIB::lmVoltSensorsDevice.4 = STRING: 3VCC
LM-SENSORS-MIB::lmVoltSensorsDevice.5 = STRING: in4
LM-SENSORS-MIB::lmVoltSensorsDevice.6 = STRING: in5
LM-SENSORS-MIB::lmVoltSensorsDevice.7 = STRING: in6
LM-SENSORS-MIB::lmVoltSensorsDevice.8 = STRING: VSB
LM-SENSORS-MIB::lmVoltSensorsDevice.9 = STRING: VBAT
LM-SENSORS-MIB::lmVoltSensorsDevice.17 = STRING: cpu0_vid
LM-SENSORS-MIB::lmVoltSensorsValue.1 = Gauge32: 1120
LM-SENSORS-MIB::lmVoltSensorsValue.2 = Gauge32: 11457
LM-SENSORS-MIB::lmVoltSensorsValue.3 = Gauge32: 3296
LM-SENSORS-MIB::lmVoltSensorsValue.4 = Gauge32: 3296
LM-SENSORS-MIB::lmVoltSensorsValue.5 = Gauge32: 1144
LM-SENSORS-MIB::lmVoltSensorsValue.6 = Gauge32: 1680
LM-SENSORS-MIB::lmVoltSensorsValue.7 = Gauge32: 3788
LM-SENSORS-MIB::lmVoltSensorsValue.8 = Gauge32: 3296
LM-SENSORS-MIB::lmVoltSensorsValue.9 = Gauge32: 3296
LM-SENSORS-MIB::lmVoltSensorsValue.17 = Gauge32: 1550
Within cacti the imported data queries look fine, and can see their corresponding XML files, I added the three sensors queries to the device, and created data sources and graphs OK, but the poller is complaining for each sensor value e.g.
04/15/2009 02:55:03 PM - CMDPHP: Poller[0] Host[6] DS[54] CMD: /usr/bin/php -q /usr/share/cacti/scripts/netsnmp_lmsensors.php voltage 192.168.1.232, public, 2, admin, *****, MD5, , DES, , 161, 500 get sensorReading 1, output: FAILED -- no matching sensors were found
04/15/2009 02:55:03 PM - CMDPHP: Poller[0] Host[6] DS[53] CMD: /usr/bin/php -q /usr/share/cacti/scripts/netsnmp_lmsensors.php temperature 192.168.1.232, public, 2, admin, *****, MD5, , DES, , 161, 500 get sensorReading 19, output: FAILED -- no matching sensors were found
Running the php script manually gets the same result, how can I trace more of what's going on inside the script?