Cacti (home)ForumsDocumentation
Cacti: offical forums and support
It is currently Mon May 22, 2017 10:40 am

All times are UTC - 5 hours




Post new topic Reply to topic  [ 155 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: 3
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 40 times
lmtempsensors.zip [8.33 KiB]
Downloaded 38 times
Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 155 posts ]  Go to page Previous  1 ... 7, 8, 9, 10, 11

All times are UTC - 5 hours


Who is online

Users browsing this forum: Bing [Bot] and 6 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:  
cron

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