Code: Select all
http://forums.cacti.net/viewtopic.php?f=2&t=49948&sid=aba0671b9c51169f2bd75f88b57c5a27&p=241144#p241144
Moderators: Developers, Moderators
Code: Select all
http://forums.cacti.net/viewtopic.php?f=2&t=49948&sid=aba0671b9c51169f2bd75f88b57c5a27&p=241144#p241144
Code: Select all
$ snmpwalk -c ######## -v 2c 127.0.0.1 .1.3.6.1.4.1.2021.13.16
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.6 = INTEGER: 6
LM-SENSORS-MIB::lmTempSensorsIndex.15 = INTEGER: 15
LM-SENSORS-MIB::lmTempSensorsIndex.16 = INTEGER: 16
LM-SENSORS-MIB::lmTempSensorsDevice.1 = STRING: Core 0
LM-SENSORS-MIB::lmTempSensorsDevice.2 = STRING: Core 1
LM-SENSORS-MIB::lmTempSensorsDevice.3 = STRING: Core 2
LM-SENSORS-MIB::lmTempSensorsDevice.4 = STRING: Core 3
LM-SENSORS-MIB::lmTempSensorsDevice.6 = STRING: temp1
LM-SENSORS-MIB::lmTempSensorsDevice.15 = STRING: CPU Temperature
LM-SENSORS-MIB::lmTempSensorsDevice.16 = STRING: MB Temperature
LM-SENSORS-MIB::lmTempSensorsValue.1 = Gauge32: 25000
LM-SENSORS-MIB::lmTempSensorsValue.2 = Gauge32: 32000
LM-SENSORS-MIB::lmTempSensorsValue.3 = Gauge32: 22000
LM-SENSORS-MIB::lmTempSensorsValue.4 = Gauge32: 21000
LM-SENSORS-MIB::lmTempSensorsValue.6 = Gauge32: 30000
LM-SENSORS-MIB::lmTempSensorsValue.15 = Gauge32: 22000
LM-SENSORS-MIB::lmTempSensorsValue.16 = Gauge32: 32000
LM-SENSORS-MIB::lmFanSensorsIndex.11 = INTEGER: 11
LM-SENSORS-MIB::lmFanSensorsIndex.12 = INTEGER: 12
LM-SENSORS-MIB::lmFanSensorsIndex.13 = INTEGER: 13
LM-SENSORS-MIB::lmFanSensorsIndex.14 = INTEGER: 14
LM-SENSORS-MIB::lmFanSensorsDevice.11 = STRING: CPU FAN Speed
LM-SENSORS-MIB::lmFanSensorsDevice.12 = STRING: CHASSIS1 FAN Speed
LM-SENSORS-MIB::lmFanSensorsDevice.13 = STRING: CHASSIS2 FAN Speed
LM-SENSORS-MIB::lmFanSensorsDevice.14 = STRING: POWER FAN Speed
LM-SENSORS-MIB::lmFanSensorsValue.11 = Gauge32: 1614
LM-SENSORS-MIB::lmFanSensorsValue.12 = Gauge32: 2343
LM-SENSORS-MIB::lmFanSensorsValue.13 = Gauge32: 2220
LM-SENSORS-MIB::lmFanSensorsValue.14 = Gauge32: 1394
LM-SENSORS-MIB::lmVoltSensorsIndex.5 = INTEGER: 5
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.10 = INTEGER: 10
LM-SENSORS-MIB::lmVoltSensorsDevice.5 = STRING: GPU core
LM-SENSORS-MIB::lmVoltSensorsDevice.7 = STRING: Vcore Voltage
LM-SENSORS-MIB::lmVoltSensorsDevice.8 = STRING: +3.3 Voltage
LM-SENSORS-MIB::lmVoltSensorsDevice.9 = STRING: +5 Voltage
LM-SENSORS-MIB::lmVoltSensorsDevice.10 = STRING: +12 Voltage
LM-SENSORS-MIB::lmVoltSensorsValue.5 = Gauge32: 900
LM-SENSORS-MIB::lmVoltSensorsValue.7 = Gauge32: 1128
LM-SENSORS-MIB::lmVoltSensorsValue.8 = Gauge32: 3312
LM-SENSORS-MIB::lmVoltSensorsValue.9 = Gauge32: 4992
LM-SENSORS-MIB::lmVoltSensorsValue.10 = Gauge32: 11760
Code: Select all
root@server:~# snmpwalk -c ##### -v 2c 127.0.0.1 .1.3.6.1.4.1.2021.13.16
iso.3.6.1.4.1.2021.13.16.2.1.1.1 = INTEGER: 1
iso.3.6.1.4.1.2021.13.16.2.1.1.2 = INTEGER: 2
iso.3.6.1.4.1.2021.13.16.2.1.1.3 = INTEGER: 3
iso.3.6.1.4.1.2021.13.16.2.1.1.4 = INTEGER: 4
iso.3.6.1.4.1.2021.13.16.2.1.1.5 = INTEGER: 5
iso.3.6.1.4.1.2021.13.16.2.1.1.20 = INTEGER: 20
iso.3.6.1.4.1.2021.13.16.2.1.1.21 = INTEGER: 21
iso.3.6.1.4.1.2021.13.16.2.1.1.22 = INTEGER: 22
iso.3.6.1.4.1.2021.13.16.2.1.2.1 = STRING: "Physical id 0"
iso.3.6.1.4.1.2021.13.16.2.1.2.2 = STRING: "Core 0"
iso.3.6.1.4.1.2021.13.16.2.1.2.3 = STRING: "Core 1"
iso.3.6.1.4.1.2021.13.16.2.1.2.4 = STRING: "Core 2"
iso.3.6.1.4.1.2021.13.16.2.1.2.5 = STRING: "Core 3"
iso.3.6.1.4.1.2021.13.16.2.1.2.20 = STRING: "temp1"
iso.3.6.1.4.1.2021.13.16.2.1.2.21 = STRING: "temp2"
iso.3.6.1.4.1.2021.13.16.2.1.2.22 = STRING: "temp3"
iso.3.6.1.4.1.2021.13.16.2.1.3.1 = Gauge32: 36000
iso.3.6.1.4.1.2021.13.16.2.1.3.2 = Gauge32: 32000
iso.3.6.1.4.1.2021.13.16.2.1.3.3 = Gauge32: 35000
iso.3.6.1.4.1.2021.13.16.2.1.3.4 = Gauge32: 30000
iso.3.6.1.4.1.2021.13.16.2.1.3.5 = Gauge32: 36000
iso.3.6.1.4.1.2021.13.16.2.1.3.20 = Gauge32: 31000
iso.3.6.1.4.1.2021.13.16.2.1.3.21 = Gauge32: 42000
iso.3.6.1.4.1.2021.13.16.2.1.3.22 = Gauge32: 23000
iso.3.6.1.4.1.2021.13.16.3.1.1.15 = INTEGER: 15
iso.3.6.1.4.1.2021.13.16.3.1.1.16 = INTEGER: 16
iso.3.6.1.4.1.2021.13.16.3.1.1.17 = INTEGER: 17
iso.3.6.1.4.1.2021.13.16.3.1.1.18 = INTEGER: 18
iso.3.6.1.4.1.2021.13.16.3.1.1.19 = INTEGER: 19
iso.3.6.1.4.1.2021.13.16.3.1.2.15 = STRING: "fan1"
iso.3.6.1.4.1.2021.13.16.3.1.2.16 = STRING: "fan2"
iso.3.6.1.4.1.2021.13.16.3.1.2.17 = STRING: "fan3"
iso.3.6.1.4.1.2021.13.16.3.1.2.18 = STRING: "fan4"
iso.3.6.1.4.1.2021.13.16.3.1.2.19 = STRING: "fan5"
iso.3.6.1.4.1.2021.13.16.3.1.3.15 = Gauge32: 1523
iso.3.6.1.4.1.2021.13.16.3.1.3.16 = Gauge32: 1520
iso.3.6.1.4.1.2021.13.16.3.1.3.17 = Gauge32: 1080
iso.3.6.1.4.1.2021.13.16.3.1.3.18 = Gauge32: 1068
iso.3.6.1.4.1.2021.13.16.3.1.3.19 = Gauge32: 1369
iso.3.6.1.4.1.2021.13.16.4.1.1.6 = INTEGER: 6
iso.3.6.1.4.1.2021.13.16.4.1.1.7 = INTEGER: 7
iso.3.6.1.4.1.2021.13.16.4.1.1.8 = INTEGER: 8
iso.3.6.1.4.1.2021.13.16.4.1.1.9 = INTEGER: 9
iso.3.6.1.4.1.2021.13.16.4.1.1.10 = INTEGER: 10
iso.3.6.1.4.1.2021.13.16.4.1.1.11 = INTEGER: 11
iso.3.6.1.4.1.2021.13.16.4.1.1.12 = INTEGER: 12
iso.3.6.1.4.1.2021.13.16.4.1.1.13 = INTEGER: 13
iso.3.6.1.4.1.2021.13.16.4.1.1.14 = INTEGER: 14
iso.3.6.1.4.1.2021.13.16.4.1.2.6 = STRING: "in0"
iso.3.6.1.4.1.2021.13.16.4.1.2.7 = STRING: "in1"
iso.3.6.1.4.1.2021.13.16.4.1.2.8 = STRING: "in2"
iso.3.6.1.4.1.2021.13.16.4.1.2.9 = STRING: "in3"
iso.3.6.1.4.1.2021.13.16.4.1.2.10 = STRING: "in4"
iso.3.6.1.4.1.2021.13.16.4.1.2.11 = STRING: "in5"
iso.3.6.1.4.1.2021.13.16.4.1.2.12 = STRING: "in6"
iso.3.6.1.4.1.2021.13.16.4.1.2.13 = STRING: "3VSB"
iso.3.6.1.4.1.2021.13.16.4.1.2.14 = STRING: "Vbat"
iso.3.6.1.4.1.2021.13.16.4.1.3.6 = Gauge32: 1056
iso.3.6.1.4.1.2021.13.16.4.1.3.7 = Gauge32: 1500
iso.3.6.1.4.1.2021.13.16.4.1.3.8 = Gauge32: 1980
iso.3.6.1.4.1.2021.13.16.4.1.3.9 = Gauge32: 2016
iso.3.6.1.4.1.2021.13.16.4.1.3.10 = Gauge32: 2220
iso.3.6.1.4.1.2021.13.16.4.1.3.11 = Gauge32: 1320
iso.3.6.1.4.1.2021.13.16.4.1.3.12 = Gauge32: 1500
iso.3.6.1.4.1.2021.13.16.4.1.3.13 = Gauge32: 3360
iso.3.6.1.4.1.2021.13.16.4.1.3.14 = Gauge32: 3216
Code: Select all
Total: 0, Delta: 0, Running data query [15].
Total: 0, Delta: 0, Found type = '6' [Script Query - Script Server].
Total: 0, Delta: 0, Found data query XML file at '/usr/share/cacti/resource/script_server/netsnmp_lmsensors_thermal.xml'
Total: 0, Delta: 0, XML file parsed ok.
Total: 0.04, Delta: 0.04, Executing script for num of indexes '"/usr/bin/php" -q /usr/share/cacti/scripts/ss_netsnmp_lmsensors.php 'localhost:2:#####:::::::161:500' 'temperature' 'index''
Total: 0.08, Delta: 0.04, Executing script for list of indexes '"/usr/bin/php" -q /usr/share/cacti/scripts/ss_netsnmp_lmsensors.php 'localhost:2:#####:::::::161:500' 'temperature' ''' Index Count: 0
Code: Select all
root@server:~# "/usr/bin/php" -q /usr/share/cacti/scripts/ss_netsnmp_lmsensors.php 'localhost:2:#####:::::::161:500' 'temperature' 'index'
root@server:~#
Code: Select all
root@server:~# "/usr/bin/php" -q /usr/share/cacti_old/scripts/ss_netsnmp_lmsensors.php 'localhost:2:#####:::::::161:500' 'temperature' 'index'
1
2
3
4
5
20
21
22
No ideas? Is anyone running the script using the current cacti versions?xfls wrote:Since I update my OS to Ubuntu 14.04 and cacti to 1.x.x this script stopped working partially and I am not able to figure out what is wrong. All already created graphs work fine but I am not able to create new ones.
My snmpd seems to work fine:Debug query:Code: Select all
root@server:~# snmpwalk -c ##### -v 2c 127.0.0.1 .1.3.6.1.4.1.2021.13.16 iso.3.6.1.4.1.2021.13.16.2.1.1.1 = INTEGER: 1 iso.3.6.1.4.1.2021.13.16.2.1.1.2 = INTEGER: 2 iso.3.6.1.4.1.2021.13.16.2.1.1.3 = INTEGER: 3 iso.3.6.1.4.1.2021.13.16.2.1.1.4 = INTEGER: 4 iso.3.6.1.4.1.2021.13.16.2.1.1.5 = INTEGER: 5 iso.3.6.1.4.1.2021.13.16.2.1.1.20 = INTEGER: 20 iso.3.6.1.4.1.2021.13.16.2.1.1.21 = INTEGER: 21 iso.3.6.1.4.1.2021.13.16.2.1.1.22 = INTEGER: 22 iso.3.6.1.4.1.2021.13.16.2.1.2.1 = STRING: "Physical id 0" iso.3.6.1.4.1.2021.13.16.2.1.2.2 = STRING: "Core 0" iso.3.6.1.4.1.2021.13.16.2.1.2.3 = STRING: "Core 1" iso.3.6.1.4.1.2021.13.16.2.1.2.4 = STRING: "Core 2" iso.3.6.1.4.1.2021.13.16.2.1.2.5 = STRING: "Core 3" iso.3.6.1.4.1.2021.13.16.2.1.2.20 = STRING: "temp1" iso.3.6.1.4.1.2021.13.16.2.1.2.21 = STRING: "temp2" iso.3.6.1.4.1.2021.13.16.2.1.2.22 = STRING: "temp3" iso.3.6.1.4.1.2021.13.16.2.1.3.1 = Gauge32: 36000 iso.3.6.1.4.1.2021.13.16.2.1.3.2 = Gauge32: 32000 iso.3.6.1.4.1.2021.13.16.2.1.3.3 = Gauge32: 35000 iso.3.6.1.4.1.2021.13.16.2.1.3.4 = Gauge32: 30000 iso.3.6.1.4.1.2021.13.16.2.1.3.5 = Gauge32: 36000 iso.3.6.1.4.1.2021.13.16.2.1.3.20 = Gauge32: 31000 iso.3.6.1.4.1.2021.13.16.2.1.3.21 = Gauge32: 42000 iso.3.6.1.4.1.2021.13.16.2.1.3.22 = Gauge32: 23000 iso.3.6.1.4.1.2021.13.16.3.1.1.15 = INTEGER: 15 iso.3.6.1.4.1.2021.13.16.3.1.1.16 = INTEGER: 16 iso.3.6.1.4.1.2021.13.16.3.1.1.17 = INTEGER: 17 iso.3.6.1.4.1.2021.13.16.3.1.1.18 = INTEGER: 18 iso.3.6.1.4.1.2021.13.16.3.1.1.19 = INTEGER: 19 iso.3.6.1.4.1.2021.13.16.3.1.2.15 = STRING: "fan1" iso.3.6.1.4.1.2021.13.16.3.1.2.16 = STRING: "fan2" iso.3.6.1.4.1.2021.13.16.3.1.2.17 = STRING: "fan3" iso.3.6.1.4.1.2021.13.16.3.1.2.18 = STRING: "fan4" iso.3.6.1.4.1.2021.13.16.3.1.2.19 = STRING: "fan5" iso.3.6.1.4.1.2021.13.16.3.1.3.15 = Gauge32: 1523 iso.3.6.1.4.1.2021.13.16.3.1.3.16 = Gauge32: 1520 iso.3.6.1.4.1.2021.13.16.3.1.3.17 = Gauge32: 1080 iso.3.6.1.4.1.2021.13.16.3.1.3.18 = Gauge32: 1068 iso.3.6.1.4.1.2021.13.16.3.1.3.19 = Gauge32: 1369 iso.3.6.1.4.1.2021.13.16.4.1.1.6 = INTEGER: 6 iso.3.6.1.4.1.2021.13.16.4.1.1.7 = INTEGER: 7 iso.3.6.1.4.1.2021.13.16.4.1.1.8 = INTEGER: 8 iso.3.6.1.4.1.2021.13.16.4.1.1.9 = INTEGER: 9 iso.3.6.1.4.1.2021.13.16.4.1.1.10 = INTEGER: 10 iso.3.6.1.4.1.2021.13.16.4.1.1.11 = INTEGER: 11 iso.3.6.1.4.1.2021.13.16.4.1.1.12 = INTEGER: 12 iso.3.6.1.4.1.2021.13.16.4.1.1.13 = INTEGER: 13 iso.3.6.1.4.1.2021.13.16.4.1.1.14 = INTEGER: 14 iso.3.6.1.4.1.2021.13.16.4.1.2.6 = STRING: "in0" iso.3.6.1.4.1.2021.13.16.4.1.2.7 = STRING: "in1" iso.3.6.1.4.1.2021.13.16.4.1.2.8 = STRING: "in2" iso.3.6.1.4.1.2021.13.16.4.1.2.9 = STRING: "in3" iso.3.6.1.4.1.2021.13.16.4.1.2.10 = STRING: "in4" iso.3.6.1.4.1.2021.13.16.4.1.2.11 = STRING: "in5" iso.3.6.1.4.1.2021.13.16.4.1.2.12 = STRING: "in6" iso.3.6.1.4.1.2021.13.16.4.1.2.13 = STRING: "3VSB" iso.3.6.1.4.1.2021.13.16.4.1.2.14 = STRING: "Vbat" iso.3.6.1.4.1.2021.13.16.4.1.3.6 = Gauge32: 1056 iso.3.6.1.4.1.2021.13.16.4.1.3.7 = Gauge32: 1500 iso.3.6.1.4.1.2021.13.16.4.1.3.8 = Gauge32: 1980 iso.3.6.1.4.1.2021.13.16.4.1.3.9 = Gauge32: 2016 iso.3.6.1.4.1.2021.13.16.4.1.3.10 = Gauge32: 2220 iso.3.6.1.4.1.2021.13.16.4.1.3.11 = Gauge32: 1320 iso.3.6.1.4.1.2021.13.16.4.1.3.12 = Gauge32: 1500 iso.3.6.1.4.1.2021.13.16.4.1.3.13 = Gauge32: 3360 iso.3.6.1.4.1.2021.13.16.4.1.3.14 = Gauge32: 3216
If I try to run the script manually I still get no answer:Code: Select all
Total: 0, Delta: 0, Running data query [15]. Total: 0, Delta: 0, Found type = '6' [Script Query - Script Server]. Total: 0, Delta: 0, Found data query XML file at '/usr/share/cacti/resource/script_server/netsnmp_lmsensors_thermal.xml' Total: 0, Delta: 0, XML file parsed ok. Total: 0.04, Delta: 0.04, Executing script for num of indexes '"/usr/bin/php" -q /usr/share/cacti/scripts/ss_netsnmp_lmsensors.php 'localhost:2:#####:::::::161:500' 'temperature' 'index'' Total: 0.08, Delta: 0.04, Executing script for list of indexes '"/usr/bin/php" -q /usr/share/cacti/scripts/ss_netsnmp_lmsensors.php 'localhost:2:#####:::::::161:500' 'temperature' ''' Index Count: 0
I still have a backup of cacti 0.8.8a and if I run the same script from it's directory the script works:Code: Select all
root@server:~# "/usr/bin/php" -q /usr/share/cacti/scripts/ss_netsnmp_lmsensors.php 'localhost:2:#####:::::::161:500' 'temperature' 'index' root@server:~#
Code: Select all
root@server:~# "/usr/bin/php" -q /usr/share/cacti_old/scripts/ss_netsnmp_lmsensors.php 'localhost:2:#####:::::::161:500' 'temperature' 'index' 1 2 3 4 5 20 21 22
Please, give export template for new cacti.Corsaire wrote: ↑Thu Mar 16, 2017 1:07 am I succeeded to create the templates to get lmsensors temperature information from net-snmp
I'm running Cacti 1.0.4, I share here since other people should probably have a hard time too getting those graphs
I leave too the other lmsensors OID if someone want to get those other informations
$ snmpwalk -c ###### -On -v 2c 127.0.0.1 LM-SENSORS-MIB::lmFanSensorsTable
.1.3.6.1.4.1.2021.13.16.3.1.1
.1.3.6.1.4.1.2021.13.16.3.1.2
.1.3.6.1.4.1.2021.13.16.3.1.3
$ snmpwalk -c ###### -On -v 2c 127.0.0.1 LM-SENSORS-MIB::lmTempSensorsTable
.1.3.6.1.4.1.2021.13.16.2.1.1
.1.3.6.1.4.1.2021.13.16.2.1.2
.1.3.6.1.4.1.2021.13.16.2.1.3
$ snmpwalk -c ###### -v 2c 127.0.0.1 LM-SENSORS-MIB::lmVoltSensorsTable
.1.3.6.1.4.1.2021.13.16.4.1.1
.1.3.6.1.4.1.2021.13.16.4.1.2
.1.3.6.1.4.1.2021.13.16.4.1.3
Users browsing this forum: No registered users and 1 guest