Cacti (home)ForumsDocumentation
Cacti: offical forums and support
It is currently Fri Dec 15, 2017 8:31 pm

All times are UTC - 5 hours




Post new topic Reply to topic  [ 158 posts ]  Go to page Previous  1 ... 7, 8, 9, 10, 11
Author Message
 Post subject: Re: ucd/net-SNMP lmSensors -- update November 11, 2010
PostPosted: Mon Mar 11, 2013 9:02 am 
Offline

Joined: Tue Nov 27, 2012 12:41 pm
Posts: 6
I hate to bring up an old post, but I was searching and couldn't find an answer.

I have this template going on multiple computers with no problems, except now.

The only difference, that I see, is that I am using tcp to monitor this specific host, and when cacti runs, it spits out:

Code:
FATAL: Too many elements in SNMP parameter bundle



I think this is because, in the hostname, I have tcp:localhost (reverse SSH tunneling), which is throwing off the array count (because the hostname is tcp:localhost, the script sees 12 objects in the array).

Running manually:

Code:
"/usr/bin/php" -q /usr/local/cacti-0.8.8a/scripts/ss_netsnmp_lmsensors.php tcp:localhost:2:public:::::::16100:2000 fan index
FATAL: Too many elements in SNMP parameter bundle
Syntax: ss_netsnmp_lmsensors.php <hostname>:<snmp_version>:[<snmp_community>]:\
      [<snmp3_username>]:[<snmp3_password>]:[<snmp3_auth_protocol>]:[<snmp3_priv_password>]:\
      [<snmp3_priv_protocol>]:[<snmp3_context>]:[<snmp_port>}:[<snmp_timeout>] \
      (FAN|TEMPERATURE|VOLTAGE) (index|query <fieldname>|get <fieldname> <sensor>)


Other than this template, everything else is working as far as monitoring this host (interfaces, disk space).

Again, sorry for bringing up an old post, but I'm lost at the moment.

Thanks!


Top
 Profile  
 
 Post subject: Re: ucd/net-SNMP lmSensors -- update November 11, 2010
PostPosted: Mon Apr 29, 2013 1:18 am 
Offline

Joined: Tue Apr 16, 2013 5:39 am
Posts: 10
can somebody please help me with this?

Code:
http://forums.cacti.net/viewtopic.php?f=2&t=49948&sid=aba0671b9c51169f2bd75f88b57c5a27&p=241144#p241144

thank you


Top
 Profile  
 
 Post subject: Re: ucd/net-SNMP lmSensors -- update November 11, 2010
PostPosted: Sun Feb 28, 2016 2:50 am 
Offline

Joined: Wed Jul 03, 2013 10:50 pm
Posts: 12
Hey Guys,

I'm using Cacti 8.8.f

I am using the tarball located at "http://www.eric-a-hall.com/software/cacti-netsnmp-lmsensors/".

I have placed the "netsnmp_lmsensors_thermal.xml" file in "/resource/script_server/netsnmp_lmsensors_thermal.xml".

However when I goto to the data queries area and look at netsnmp_lmsensors I get the error "Could not locate XML file."

I know the file is there I SSH in and double checked.

Please help.


Top
 Profile  
 
 Post subject: Re: ucd/net-SNMP lmSensors -- update November 11, 2010
PostPosted: Wed Mar 15, 2017 10:21 pm 
Offline

Joined: Tue Apr 12, 2016 8:45 pm
Posts: 8
it seems this way with scripts to fetch data is not needed anymore, lmsensors does communicate its results in net-snmp without the need for a script

https://wiki.opennms.org/wiki/Lm_Sensor ... ing_How-To

I confirmed on my own machine
Code:
$ 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


what we need is a template to make good use of the values

something more automatic than this (this example shows that you must know how many data you're going to collect before doing the graphs, this is not what we should expect)
http://www.mad-hacking.net/documentatio ... -query.xml


Top
 Profile  
 
 Post subject: Re: ucd/net-SNMP lmSensors -- update November 11, 2010
PostPosted: Thu Mar 16, 2017 1:07 am 
Offline

Joined: Tue Apr 12, 2016 8:45 pm
Posts: 8
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


Attachments:
lm-sensors_temp.xml [1.19 KiB]
Downloaded 92 times
lmtempsensors.zip [8.33 KiB]
Downloaded 95 times
Top
 Profile  
 
 Post subject: Re: ucd/net-SNMP lmSensors -- update November 11, 2010
PostPosted: Wed Aug 23, 2017 4:45 am 
Offline

Joined: Wed Aug 23, 2017 4:20 am
Posts: 2
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:
Code:
[email protected]:~# 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


Debug query:
Code:
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


If I try to run the script manually I still get no answer:
Code:
[email protected]:~# "/usr/bin/php" -q /usr/share/cacti/scripts/ss_netsnmp_lmsensors.php 'localhost:2:#####:::::::161:500' 'temperature' 'index'
[email protected]:~#


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:
[email protected]:~# "/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


Top
 Profile  
 
 Post subject: Re: ucd/net-SNMP lmSensors -- update November 11, 2010
PostPosted: Wed Aug 23, 2017 9:39 am 
Offline

Joined: Tue Nov 27, 2012 12:41 pm
Posts: 6
Corsaire wrote:
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


Thank you for that. Had I realized you had posted this back in March, it would have saved me some trouble. I, too, made my own snmp_queries for lm_sensors now.


Top
 Profile  
 
 Post subject: Re: ucd/net-SNMP lmSensors -- update November 11, 2010
PostPosted: Wed Oct 04, 2017 8:01 am 
Offline

Joined: Wed Aug 23, 2017 4:20 am
Posts: 2
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:
Code:
[email protected]:~# 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


Debug query:
Code:
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


If I try to run the script manually I still get no answer:
Code:
[email protected]:~# "/usr/bin/php" -q /usr/share/cacti/scripts/ss_netsnmp_lmsensors.php 'localhost:2:#####:::::::161:500' 'temperature' 'index'
[email protected]:~#


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:
[email protected]:~# "/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?


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 158 posts ]  Go to page Previous  1 ... 7, 8, 9, 10, 11

All times are UTC - 5 hours


Who is online

Users browsing this forum: Google [Bot] and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

Protected by Anti-Spam ACP Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group