Cacti (home)ForumsDocumentation
Cacti: offical forums and support
It is currently Mon Jun 24, 2019 5:25 pm

All times are UTC - 5 hours




Post new topic Reply to topic  [ 19 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: [XML] Newbie IBM xSeries Temperature Script **HELP**
PostPosted: Thu Jan 06, 2005 9:44 am 
Offline
Cacti User
User avatar

Joined: Fri Dec 31, 2004 7:07 am
Posts: 247
Location: UK
Hi,

This is the first XML SNMP Query I have written as I couldn't find it to download from anywhere. This is as much as I have done so I am going to read on through the manual to see how to finally get this into a graph - any help / guidence would be appreciated.

I would also appreciate anyone taking a look at the XML file and telling me if it looks ok and should work - it basically gets the current temp and max threshold of the sensors in an xSeries IBM server.

Will post back here with my progress.

Pete.


Attachments:
File comment: IBM SNMP Query
ibm_temp.xml [1021 Bytes]
Downloaded 1441 times


Last edited by pshankland on Thu Jan 06, 2005 3:56 pm, edited 1 time in total.
Top
 Profile  
 
 Post subject:
PostPosted: Thu Jan 06, 2005 10:49 am 
Offline
Cacti User
User avatar

Joined: Fri Dec 31, 2004 7:07 am
Posts: 247
Location: UK
A bit of help....

I have managed to create 2 Data Templates (threshold & current temp), a Graph Template, the Data Query and edited the original XML file that I placed here (no outputs :oops: ).

Everything seems to work apart from no data gets put onto the graph!! I can't understand why as I have double checked everything and it all seems correct. I have attached the files I exported from Cacti.

Could someone please take a look for me or point me in the right location??

Thanks.

Pete.


Attachments:
cacti_data_template_ibm_temperature_threshold.xml [6.53 KiB]
Downloaded 1044 times
cacti_data_template_ibm_temperature.xml [6.5 KiB]
Downloaded 1000 times
File comment: My original script
ibm_temp.xml [1023 Bytes]
Downloaded 1019 times
Top
 Profile  
 
 Post subject:
PostPosted: Thu Jan 06, 2005 10:50 am 
Offline
Cacti User
User avatar

Joined: Fri Dec 31, 2004 7:07 am
Posts: 247
Location: UK
Other couple of exported templates...


Attachments:
cacti_graph_template_ibm_temperature.xml [15.52 KiB]
Downloaded 1008 times
cacti_data_query_ibm_health_temperatures.xml [17.77 KiB]
Downloaded 1252 times
Top
 Profile  
 
 Post subject:
PostPosted: Thu Jan 06, 2005 11:43 am 
Offline
Cacti User
User avatar

Joined: Fri Dec 31, 2004 7:07 am
Posts: 247
Location: UK
Screenshot


Attachments:
IBM Problem.jpg
IBM Problem.jpg [ 171.3 KiB | Viewed 24427 times ]
Top
 Profile  
 
 Post subject:
PostPosted: Thu Jan 06, 2005 12:20 pm 
Offline
Cacti User
User avatar

Joined: Fri Dec 31, 2004 7:07 am
Posts: 247
Location: UK
Results from GetIF:

These seems a bit strange, but then again I am new to this :-?


Attachments:
GetIF Results.jpg
GetIF Results.jpg [ 128.12 KiB | Viewed 24421 times ]
Top
 Profile  
 
 Post subject:
PostPosted: Thu Jan 06, 2005 2:48 pm 
Offline
Cacti User
User avatar

Joined: Fri Dec 31, 2004 7:07 am
Posts: 247
Location: UK
This is turning into a blog :lol:

Have just stmbled across the Cacti Log File and have noticed I keep getting the following:

Quote:
01/06/2005 06:53:08 PM - CMDPHP: Poller[0] Host[12] WARNING: Result from SNMP not valid. Partial Result:
01/06/2005 06:53:08 PM - CMDPHP: Poller[0] Host[11] WARNING: Result from SNMP not valid. Partial Result:
01/06/2005 06:53:08 PM - CMDPHP: Poller[0] Host[11] WARNING: Result from SNMP not valid. Partial Result:
01/06/2005 06:53:08 PM - CMDPHP: Poller[0] Host[11] WARNING: Result from SNMP not valid. Partial Result:
01/06/2005 06:53:08 PM - CMDPHP: Poller[0] Host[11] WARNING: Result from SNMP not valid. Partial Result:
01/06/2005 06:53:08 PM - CMDPHP: Poller[0] Host[11] WARNING: Result from SNMP not valid. Partial Result:
01/06/2005 06:53:08 PM - CMDPHP: Poller[0] Host[11] WARNING: Result from SNMP not valid. Partial Result:
01/06/2005 06:53:08 PM - CMDPHP: Poller[0] Host[11] WARNING: Result from SNMP not valid. Partial Result:
01/06/2005 06:53:08 PM - CMDPHP: Poller[0] Host[11] WARNING: Result from SNMP not valid. Partial Result:
01/06/2005 06:53:08 PM - CMDPHP: Poller[0] Host[11] WARNING: Result from SNMP not valid. Partial Result:
01/06/2005 06:53:08 PM - CMDPHP: Poller[0] Host[11] WARNING: Result from SNMP not valid. Partial Result:
01/06/2005 06:53:08 PM - CMDPHP: Poller[0] Host[11] WARNING: Result from SNMP not valid. Partial Result:
01/06/2005 06:53:07 PM - CMDPHP: Poller[0] Host[11] WARNING: Result from SNMP not valid. Partial Result:
01/06/2005 06:53:07 PM - CMDPHP: Poller[0] Host[11] WARNING: Result from SNMP not valid. Partial Result:
01/06/2005 06:53:07 PM - CMDPHP: Poller[0] Host[11] WARNING: Result from SNMP not valid. Partial Result:


Obviously, cacti dosn't understand the SMNP data that it is getting but looking at the script I created everything looks ok:

Quote:
<interface>
<name>Get Temp from IBM Server</name>
<description>Retrieves the temp of IBM Server via SNMP</description>
<oid_index>.1.3.6.1.4.1.2.6.159.1.1.80.1.1.1</oid_index>
<index_order_type>numeric</index_order_type>
<fields>
<iBMPSGTemperatureSensorKeyIndex>
<name>Index</name>
<method>walk</method>
<source>value</source>
<direction>input</direction>
<oid>.1.3.6.1.4.1.2.6.159.1.1.80.1.1.1</oid>
</iBMPSGTemperatureSensorKeyIndex>
<iBMPSGTemperatureSensorCurrentReading>
<name>Temperature</name>
<method>walk</method>
<source>value</source>
<direction>output</direction>
<oid>.1.3.6.1.4.1.2.6.159.1.1.80.1.1.2</oid>
</iBMPSGTemperatureSensorCurrentReading>
<iBMPSGTemperatureSensorUpperThresholdCritical>
<name>Threshold</name>
<method>walk</method>
<source>value</source>
<direction>output</direction>
<oid>.1.3.6.1.4.1.2.6.159.1.1.80.1.1.14</oid>
</iBMPSGTemperatureSensorUpperThresholdCritical>
</fields>
</interface>


Any suggestions??

Ta.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jan 07, 2005 4:51 pm 
Offline
Cacti User
User avatar

Joined: Fri Dec 31, 2004 7:07 am
Posts: 247
Location: UK
Still really, really, really stuck with this one and would appreciate any help so much!

Just to confirm that I have got the OID correct and there isn't something wrong with the server I am monitoring I used GetIF again and put the values into the Graph function. I successfully managed to get output from all of the temp sensors :-? Why isn't Cacti picking this information up??


Attachments:
GetIF Graph IBM Temp.jpg
GetIF Graph IBM Temp.jpg [ 80.51 KiB | Viewed 24372 times ]
Top
 Profile  
 
 Post subject:
PostPosted: Fri Jan 07, 2005 5:05 pm 
Offline
Developer
User avatar

Joined: Tue May 14, 2002 5:08 pm
Posts: 14804
Location: MI, USA
Please walk the OID from the vendor using net-snmp and post the results. The command will be something like the following:

snmpwalk -c mycommunity -v myversion myipaddress .1.3.6.1.4.1.2.6.159.1.1.80.1.1

I am concerned about your graphic in an earlier post that showed the MIB plus additional information starting with "...iBMPSGTemperatureSensorCurrentReading.14.116.101...". It appears that you will have to use the new OID Parse Data Query method released in 0.8.6c to correct this issue. But, before you do that, let's see the output from the SNMPWALK.

TheWitness

_________________
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of MacTrack, Boost, CLog, SpikeKill, Platform RTM, DSStats, maintainer of Spine, lot's of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Central Plugin Repository
Central Templates Repository


I'm still out there people. Getting excited for Cacti 1.2. I think it will be a great release.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jan 07, 2005 5:44 pm 
Offline
Cacti User
User avatar

Joined: Fri Dec 31, 2004 7:07 am
Posts: 247
Location: UK
Thanks so much for the reply. I think I have done this correct:

Quote:
snmpwalk -c public -v 1 <machine_ip> .1.3.6.1.4.1.2.6.159.1.1.80.1.1


That gave me the following:

Quote:
SNMPv2-SMI::enterprises.2.6.159.1.1.80.1.1.1.14.116.101.109.112.101.114.97.116.117.114.101.32.32.49 = STRING: "temperature 1"
SNMPv2-SMI::enterprises.2.6.159.1.1.80.1.1.1.14.116.101.109.112.101.114.97.116.117.114.101.32.32.50 = STRING: "temperature 2"
SNMPv2-SMI::enterprises.2.6.159.1.1.80.1.1.1.14.116.101.109.112.101.114.97.116.117.114.101.32.32.51 = STRING: "temperature 3"
SNMPv2-SMI::enterprises.2.6.159.1.1.80.1.1.1.14.116.101.109.112.101.114.97.116.117.114.101.32.32.52 = STRING: "temperature 4"
SNMPv2-SMI::enterprises.2.6.159.1.1.80.1.1.1.14.116.101.109.112.101.114.97.116.117.114.101.32.32.53 = STRING: "temperature 5"
SNMPv2-SMI::enterprises.2.6.159.1.1.80.1.1.1.14.116.101.109.112.101.114.97.116.117.114.101.32.32.56 = STRING: "temperature 8"
SNMPv2-SMI::enterprises.2.6.159.1.1.80.1.1.1.14.116.101.109.112.101.114.97.116.117.114.101.32.32.57 = STRING: "temperature 9"
SNMPv2-SMI::enterprises.2.6.159.1.1.80.1.1.2.14.116.101.109.112.101.114.97.116.117.114.101.32.32.49 = INTEGER: 17
SNMPv2-SMI::enterprises.2.6.159.1.1.80.1.1.2.14.116.101.109.112.101.114.97.116.117.114.101.32.32.50 = INTEGER: 35
SNMPv2-SMI::enterprises.2.6.159.1.1.80.1.1.2.14.116.101.109.112.101.114.97.116.117.114.101.32.32.51 = INTEGER: 34
SNMPv2-SMI::enterprises.2.6.159.1.1.80.1.1.2.14.116.101.109.112.101.114.97.116.117.114.101.32.32.52 = INTEGER: 41
SNMPv2-SMI::enterprises.2.6.159.1.1.80.1.1.2.14.116.101.109.112.101.114.97.116.117.114.101.32.32.53 = INTEGER: 35
SNMPv2-SMI::enterprises.2.6.159.1.1.80.1.1.2.14.116.101.109.112.101.114.97.116.117.114.101.32.32.56 = INTEGER: 24
SNMPv2-SMI::enterprises.2.6.159.1.1.80.1.1.2.14.116.101.109.112.101.114.97.116.117.114.101.32.32.57 = INTEGER: 27
SNMPv2-SMI::enterprises.2.6.159.1.1.80.1.1.3.14.116.101.109.112.101.114.97.116.117.114.101.32.32.49 = INTEGER: 0
SNMPv2-SMI::enterprises.2.6.159.1.1.80.1.1.3.14.116.101.109.112.101.114.97.116.117.114.101.32.32.50 = INTEGER: 0
SNMPv2-SMI::enterprises.2.6.159.1.1.80.1.1.3.14.116.101.109.112.101.114.97.116.117.114.101.32.32.51 = INTEGER: 0
SNMPv2-SMI::enterprises.2.6.159.1.1.80.1.1.3.14.116.101.109.112.101.114.97.116.117.114.101.32.32.52 = INTEGER: 0
SNMPv2-SMI::enterprises.2.6.159.1.1.80.1.1.3.14.116.101.109.112.101.114.97.116.117.114.101.32.32.53 = INTEGER: 0
SNMPv2-SMI::enterprises.2.6.159.1.1.80.1.1.3.14.116.101.109.112.101.114.97.116.117.114.101.32.32.56 = INTEGER: 0
SNMPv2-SMI::enterprises.2.6.159.1.1.80.1.1.3.14.116.101.109.112.101.114.97.116.117.114.101.32.32.57 = INTEGER: 0
SNMPv2-SMI::enterprises.2.6.159.1.1.80.1.1.4.14.116.101.109.112.101.114.97.116.117.114.101.32.32.49 = INTEGER: 0
SNMPv2-SMI::enterprises.2.6.159.1.1.80.1.1.4.14.116.101.109.112.101.114.97.116.117.114.101.32.32.50 = INTEGER: 0
SNMPv2-SMI::enterprises.2.6.159.1.1.80.1.1.4.14.116.101.109.112.101.114.97.116.117.114.101.32.32.51 = INTEGER: 0
SNMPv2-SMI::enterprises.2.6.159.1.1.80.1.1.4.14.116.101.109.112.101.114.97.116.117.114.101.32.32.52 = INTEGER: 0
SNMPv2-SMI::enterprises.2.6.159.1.1.80.1.1.4.14.116.101.109.112.101.114.97.116.117.114.101.32.32.53 = INTEGER: 0
SNMPv2-SMI::enterprises.2.6.159.1.1.80.1.1.4.14.116.101.109.112.101.114.97.116.117.114.101.32.32.56 = INTEGER: 0
SNMPv2-SMI::enterprises.2.6.159.1.1.80.1.1.4.14.116.101.109.112.101.114.97.116.117.114.101.32.32.57 = INTEGER: 0
SNMPv2-SMI::enterprises.2.6.159.1.1.80.1.1.5.14.116.101.109.112.101.114.97.116.117.114.101.32.32.49 = INTEGER: 0
SNMPv2-SMI::enterprises.2.6.159.1.1.80.1.1.5.14.116.101.109.112.101.114.97.116.117.114.101.32.32.50 = INTEGER: 0
SNMPv2-SMI::enterprises.2.6.159.1.1.80.1.1.5.14.116.101.109.112.101.114.97.116.117.114.101.32.32.51 = INTEGER: 0
SNMPv2-SMI::enterprises.2.6.159.1.1.80.1.1.5.14.116.101.109.112.101.114.97.116.117.114.101.32.32.52 = INTEGER: 0
SNMPv2-SMI::enterprises.2.6.159.1.1.80.1.1.5.14.116.101.109.112.101.114.97.116.117.114.101.32.32.53 = INTEGER: 0
SNMPv2-SMI::enterprises.2.6.159.1.1.80.1.1.5.14.116.101.109.112.101.114.97.116.117.114.101.32.32.56 = INTEGER: 0
SNMPv2-SMI::enterprises.2.6.159.1.1.80.1.1.5.14.116.101.109.112.101.114.97.116.117.114.101.32.32.57 = INTEGER: 0
SNMPv2-SMI::enterprises.2.6.159.1.1.80.1.1.6.14.116.101.109.112.101.114.97.116.117.114.101.32.32.49 = INTEGER: 0
SNMPv2-SMI::enterprises.2.6.159.1.1.80.1.1.6.14.116.101.109.112.101.114.97.116.117.114.101.32.32.50 = INTEGER: 0
SNMPv2-SMI::enterprises.2.6.159.1.1.80.1.1.6.14.116.101.109.112.101.114.97.116.117.114.101.32.32.51 = INTEGER: 0
SNMPv2-SMI::enterprises.2.6.159.1.1.80.1.1.6.14.116.101.109.112.101.114.97.116.117.114.101.32.32.52 = INTEGER: 0
SNMPv2-SMI::enterprises.2.6.159.1.1.80.1.1.6.14.116.101.109.112.101.114.97.116.117.114.101.32.32.53 = INTEGER: 0
SNMPv2-SMI::enterprises.2.6.159.1.1.80.1.1.6.14.116.101.109.112.101.114.97.116.117.114.101.32.32.56 = INTEGER: 0
SNMPv2-SMI::enterprises.2.6.159.1.1.80.1.1.6.14.116.101.109.112.101.114.97.116.117.114.101.32.32.57 = INTEGER: 0
SNMPv2-SMI::enterprises.2.6.159.1.1.80.1.1.7.14.116.101.109.112.101.114.97.116.117.114.101.32.32.49 = INTEGER: 0
SNMPv2-SMI::enterprises.2.6.159.1.1.80.1.1.7.14.116.101.109.112.101.114.97.116.117.114.101.32.32.50 = INTEGER: 0
SNMPv2-SMI::enterprises.2.6.159.1.1.80.1.1.7.14.116.101.109.112.101.114.97.116.117.114.101.32.32.51 = INTEGER: 0
SNMPv2-SMI::enterprises.2.6.159.1.1.80.1.1.7.14.116.101.109.112.101.114.97.116.117.114.101.32.32.52 = INTEGER: 0
SNMPv2-SMI::enterprises.2.6.159.1.1.80.1.1.7.14.116.101.109.112.101.114.97.116.117.114.101.32.32.53 = INTEGER: 0
SNMPv2-SMI::enterprises.2.6.159.1.1.80.1.1.7.14.116.101.109.112.101.114.97.116.117.114.101.32.32.56 = INTEGER: 0
SNMPv2-SMI::enterprises.2.6.159.1.1.80.1.1.7.14.116.101.109.112.101.114.97.116.117.114.101.32.32.57 = INTEGER: 0
SNMPv2-SMI::enterprises.2.6.159.1.1.80.1.1.8.14.116.101.109.112.101.114.97.116.117.114.101.32.32.49 = INTEGER: 0
SNMPv2-SMI::enterprises.2.6.159.1.1.80.1.1.8.14.116.101.109.112.101.114.97.116.117.114.101.32.32.50 = INTEGER: 0
SNMPv2-SMI::enterprises.2.6.159.1.1.80.1.1.8.14.116.101.109.112.101.114.97.116.117.114.101.32.32.51 = INTEGER: 0
SNMPv2-SMI::enterprises.2.6.159.1.1.80.1.1.8.14.116.101.109.112.101.114.97.116.117.114.101.32.32.52 = INTEGER: 0
SNMPv2-SMI::enterprises.2.6.159.1.1.80.1.1.8.14.116.101.109.112.101.114.97.116.117.114.101.32.32.53 = INTEGER: 0
SNMPv2-SMI::enterprises.2.6.159.1.1.80.1.1.8.14.116.101.109.112.101.114.97.116.117.114.101.32.32.56 = INTEGER: 0
SNMPv2-SMI::enterprises.2.6.159.1.1.80.1.1.8.14.116.101.109.112.101.114.97.116.117.114.101.32.32.57 = INTEGER: 0
SNMPv2-SMI::enterprises.2.6.159.1.1.80.1.1.9.14.116.101.109.112.101.114.97.116.117.114.101.32.32.49 = INTEGER: 0
SNMPv2-SMI::enterprises.2.6.159.1.1.80.1.1.9.14.116.101.109.112.101.114.97.116.117.114.101.32.32.50 = INTEGER: 0
SNMPv2-SMI::enterprises.2.6.159.1.1.80.1.1.9.14.116.101.109.112.101.114.97.116.117.114.101.32.32.51 = INTEGER: 0
SNMPv2-SMI::enterprises.2.6.159.1.1.80.1.1.9.14.116.101.109.112.101.114.97.116.117.114.101.32.32.52 = INTEGER: 0
SNMPv2-SMI::enterprises.2.6.159.1.1.80.1.1.9.14.116.101.109.112.101.114.97.116.117.114.101.32.32.53 = INTEGER: 0
SNMPv2-SMI::enterprises.2.6.159.1.1.80.1.1.9.14.116.101.109.112.101.114.97.116.117.114.101.32.32.56 = INTEGER: 0
SNMPv2-SMI::enterprises.2.6.159.1.1.80.1.1.9.14.116.101.109.112.101.114.97.116.117.114.101.32.32.57 = INTEGER: 0
SNMPv2-SMI::enterprises.2.6.159.1.1.80.1.1.10.14.116.101.109.112.101.114.97.116.117.114.101.32.32.49 = INTEGER: 0
SNMPv2-SMI::enterprises.2.6.159.1.1.80.1.1.10.14.116.101.109.112.101.114.97.116.117.114.101.32.32.50 = INTEGER: 0
SNMPv2-SMI::enterprises.2.6.159.1.1.80.1.1.10.14.116.101.109.112.101.114.97.116.117.114.101.32.32.51 = INTEGER: 0
SNMPv2-SMI::enterprises.2.6.159.1.1.80.1.1.10.14.116.101.109.112.101.114.97.116.117.114.101.32.32.52 = INTEGER: 0
SNMPv2-SMI::enterprises.2.6.159.1.1.80.1.1.10.14.116.101.109.112.101.114.97.116.117.114.101.32.32.53 = INTEGER: 0
SNMPv2-SMI::enterprises.2.6.159.1.1.80.1.1.10.14.116.101.109.112.101.114.97.116.117.114.101.32.32.56 = INTEGER: 0
SNMPv2-SMI::enterprises.2.6.159.1.1.80.1.1.10.14.116.101.109.112.101.114.97.116.117.114.101.32.32.57 = INTEGER: 0
SNMPv2-SMI::enterprises.2.6.159.1.1.80.1.1.11.14.116.101.109.112.101.114.97.116.117.114.101.32.32.49 = INTEGER: 54
SNMPv2-SMI::enterprises.2.6.159.1.1.80.1.1.11.14.116.101.109.112.101.114.97.116.117.114.101.32.32.50 = INTEGER: 54
SNMPv2-SMI::enterprises.2.6.159.1.1.80.1.1.11.14.116.101.109.112.101.114.97.116.117.114.101.32.32.51 = INTEGER: 50
SNMPv2-SMI::enterprises.2.6.159.1.1.80.1.1.11.14.116.101.109.112.101.114.97.116.117.114.101.32.32.52 = INTEGER: 77
SNMPv2-SMI::enterprises.2.6.159.1.1.80.1.1.11.14.116.101.109.112.101.114.97.116.117.114.101.32.32.53 = INTEGER: 77
SNMPv2-SMI::enterprises.2.6.159.1.1.80.1.1.11.14.116.101.109.112.101.114.97.116.117.114.101.32.32.56 = INTEGER: 48
SNMPv2-SMI::enterprises.2.6.159.1.1.80.1.1.11.14.116.101.109.112.101.114.97.116.117.114.101.32.32.57 = INTEGER: 48
SNMPv2-SMI::enterprises.2.6.159.1.1.80.1.1.12.14.116.101.109.112.101.114.97.116.117.114.101.32.32.49 = INTEGER: 55
SNMPv2-SMI::enterprises.2.6.159.1.1.80.1.1.12.14.116.101.109.112.101.114.97.116.117.114.101.32.32.50 = INTEGER: 55
SNMPv2-SMI::enterprises.2.6.159.1.1.80.1.1.12.14.116.101.109.112.101.114.97.116.117.114.101.32.32.51 = INTEGER: 51
SNMPv2-SMI::enterprises.2.6.159.1.1.80.1.1.12.14.116.101.109.112.101.114.97.116.117.114.101.32.32.52 = INTEGER: 78
SNMPv2-SMI::enterprises.2.6.159.1.1.80.1.1.12.14.116.101.109.112.101.114.97.116.117.114.101.32.32.53 = INTEGER: 78
SNMPv2-SMI::enterprises.2.6.159.1.1.80.1.1.12.14.116.101.109.112.101.114.97.116.117.114.101.32.32.56 = INTEGER: 49
SNMPv2-SMI::enterprises.2.6.159.1.1.80.1.1.12.14.116.101.109.112.101.114.97.116.117.114.101.32.32.57 = INTEGER: 49
SNMPv2-SMI::enterprises.2.6.159.1.1.80.1.1.13.14.116.101.109.112.101.114.97.116.117.114.101.32.32.49 = INTEGER: 56
SNMPv2-SMI::enterprises.2.6.159.1.1.80.1.1.13.14.116.101.109.112.101.114.97.116.117.114.101.32.32.50 = INTEGER: 56
SNMPv2-SMI::enterprises.2.6.159.1.1.80.1.1.13.14.116.101.109.112.101.114.97.116.117.114.101.32.32.51 = INTEGER: 52
SNMPv2-SMI::enterprises.2.6.159.1.1.80.1.1.13.14.116.101.109.112.101.114.97.116.117.114.101.32.32.52 = INTEGER: 79
SNMPv2-SMI::enterprises.2.6.159.1.1.80.1.1.13.14.116.101.109.112.101.114.97.116.117.114.101.32.32.53 = INTEGER: 79
SNMPv2-SMI::enterprises.2.6.159.1.1.80.1.1.13.14.116.101.109.112.101.114.97.116.117.114.101.32.32.56 = INTEGER: 50
SNMPv2-SMI::enterprises.2.6.159.1.1.80.1.1.13.14.116.101.109.112.101.114.97.116.117.114.101.32.32.57 = INTEGER: 50
SNMPv2-SMI::enterprises.2.6.159.1.1.80.1.1.14.14.116.101.109.112.101.114.97.116.117.114.101.32.32.49 = INTEGER: 56
SNMPv2-SMI::enterprises.2.6.159.1.1.80.1.1.14.14.116.101.109.112.101.114.97.116.117.114.101.32.32.50 = INTEGER: 56
SNMPv2-SMI::enterprises.2.6.159.1.1.80.1.1.14.14.116.101.109.112.101.114.97.116.117.114.101.32.32.51 = INTEGER: 52
SNMPv2-SMI::enterprises.2.6.159.1.1.80.1.1.14.14.116.101.109.112.101.114.97.116.117.114.101.32.32.52 = INTEGER: 85
SNMPv2-SMI::enterprises.2.6.159.1.1.80.1.1.14.14.116.101.109.112.101.114.97.116.117.114.101.32.32.53 = INTEGER: 85
SNMPv2-SMI::enterprises.2.6.159.1.1.80.1.1.14.14.116.101.109.112.101.114.97.116.117.114.101.32.32.56 = INTEGER: 56
SNMPv2-SMI::enterprises.2.6.159.1.1.80.1.1.14.14.116.101.109.112.101.114.97.116.117.114.101.32.32.57 = INTEGER: 56
SNMPv2-SMI::enterprises.2.6.159.1.1.80.1.1.15.14.116.101.109.112.101.114.97.116.117.114.101.32.32.49 = INTEGER: 0
SNMPv2-SMI::enterprises.2.6.159.1.1.80.1.1.15.14.116.101.109.112.101.114.97.116.117.114.101.32.32.50 = INTEGER: 0
SNMPv2-SMI::enterprises.2.6.159.1.1.80.1.1.15.14.116.101.109.112.101.114.97.116.117.114.101.32.32.51 = INTEGER: 0
SNMPv2-SMI::enterprises.2.6.159.1.1.80.1.1.15.14.116.101.109.112.101.114.97.116.117.114.101.32.32.52 = INTEGER: 0
SNMPv2-SMI::enterprises.2.6.159.1.1.80.1.1.15.14.116.101.109.112.101.114.97.116.117.114.101.32.32.53 = INTEGER: 0
SNMPv2-SMI::enterprises.2.6.159.1.1.80.1.1.15.14.116.101.109.112.101.114.97.116.117.114.101.32.32.56 = INTEGER: 0
SNMPv2-SMI::enterprises.2.6.159.1.1.80.1.1.15.14.116.101.109.112.101.114.97.116.117.114.101.32.32.57 = INTEGER: 0
SNMPv2-SMI::enterprises.2.6.159.1.1.80.1.1.16.14.116.101.109.112.101.114.97.116.117.114.101.32.32.49 = INTEGER: 0
SNMPv2-SMI::enterprises.2.6.159.1.1.80.1.1.16.14.116.101.109.112.101.114.97.116.117.114.101.32.32.50 = INTEGER: 0
SNMPv2-SMI::enterprises.2.6.159.1.1.80.1.1.16.14.116.101.109.112.101.114.97.116.117.114.101.32.32.51 = INTEGER: 0
SNMPv2-SMI::enterprises.2.6.159.1.1.80.1.1.16.14.116.101.109.112.101.114.97.116.117.114.101.32.32.52 = INTEGER: 0
SNMPv2-SMI::enterprises.2.6.159.1.1.80.1.1.16.14.116.101.109.112.101.114.97.116.117.114.101.32.32.53 = INTEGER: 0
SNMPv2-SMI::enterprises.2.6.159.1.1.80.1.1.16.14.116.101.109.112.101.114.97.116.117.114.101.32.32.56 = INTEGER: 0
SNMPv2-SMI::enterprises.2.6.159.1.1.80.1.1.16.14.116.101.109.112.101.114.97.116.117.114.101.32.32.57 = INTEGER: 0
SNMPv2-SMI::enterprises.2.6.159.1.1.80.1.1.17.14.116.101.109.112.101.114.97.116.117.114.101.32.32.49 = INTEGER: 1
SNMPv2-SMI::enterprises.2.6.159.1.1.80.1.1.17.14.116.101.109.112.101.114.97.116.117.114.101.32.32.50 = INTEGER: 1
SNMPv2-SMI::enterprises.2.6.159.1.1.80.1.1.17.14.116.101.109.112.101.114.97.116.117.114.101.32.32.51 = INTEGER: 1
SNMPv2-SMI::enterprises.2.6.159.1.1.80.1.1.17.14.116.101.109.112.101.114.97.116.117.114.101.32.32.52 = INTEGER: 2
SNMPv2-SMI::enterprises.2.6.159.1.1.80.1.1.17.14.116.101.109.112.101.114.97.116.117.114.101.32.32.53 = INTEGER: 2
SNMPv2-SMI::enterprises.2.6.159.1.1.80.1.1.17.14.116.101.109.112.101.114.97.116.117.114.101.32.32.56 = INTEGER: 4
SNMPv2-SMI::enterprises.2.6.159.1.1.80.1.1.17.14.116.101.109.112.101.114.97.116.117.114.101.32.32.57 = INTEGER: 4
SNMPv2-SMI::enterprises.2.6.159.1.1.80.1.1.18.14.116.101.109.112.101.114.97.116.117.114.101.32.32.49 = INTEGER: 1
SNMPv2-SMI::enterprises.2.6.159.1.1.80.1.1.18.14.116.101.109.112.101.114.97.116.117.114.101.32.32.50 = INTEGER: 1
SNMPv2-SMI::enterprises.2.6.159.1.1.80.1.1.18.14.116.101.109.112.101.114.97.116.117.114.101.32.32.51 = INTEGER: 1
SNMPv2-SMI::enterprises.2.6.159.1.1.80.1.1.18.14.116.101.109.112.101.114.97.116.117.114.101.32.32.52 = INTEGER: 1
SNMPv2-SMI::enterprises.2.6.159.1.1.80.1.1.18.14.116.101.109.112.101.114.97.116.117.114.101.32.32.53 = INTEGER: 1
SNMPv2-SMI::enterprises.2.6.159.1.1.80.1.1.18.14.116.101.109.112.101.114.97.116.117.114.101.32.32.56 = INTEGER: 1
SNMPv2-SMI::enterprises.2.6.159.1.1.80.1.1.18.14.116.101.109.112.101.114.97.116.117.114.101.32.32.57 = INTEGER: 1
SNMPv2-SMI::enterprises.2.6.159.1.1.80.1.1.19.14.116.101.109.112.101.114.97.116.117.114.101.32.32.49 = STRING: "30000"
SNMPv2-SMI::enterprises.2.6.159.1.1.80.1.1.19.14.116.101.109.112.101.114.97.116.117.114.101.32.32.50 = STRING: "30000"
SNMPv2-SMI::enterprises.2.6.159.1.1.80.1.1.19.14.116.101.109.112.101.114.97.116.117.114.101.32.32.51 = STRING: "30000"
SNMPv2-SMI::enterprises.2.6.159.1.1.80.1.1.19.14.116.101.109.112.101.114.97.116.117.114.101.32.32.52 = STRING: "30000"
SNMPv2-SMI::enterprises.2.6.159.1.1.80.1.1.19.14.116.101.109.112.101.114.97.116.117.114.101.32.32.53 = STRING: "30000"
SNMPv2-SMI::enterprises.2.6.159.1.1.80.1.1.19.14.116.101.109.112.101.114.97.116.117.114.101.32.32.56 = STRING: "30000"
SNMPv2-SMI::enterprises.2.6.159.1.1.80.1.1.19.14.116.101.109.112.101.114.97.116.117.114.101.32.32.57 = STRING: "30000"
SNMPv2-SMI::enterprises.2.6.159.1.1.80.1.1.20.14.116.101.109.112.101.114.97.116.117.114.101.32.32.49 = INTEGER: 0
SNMPv2-SMI::enterprises.2.6.159.1.1.80.1.1.20.14.116.101.109.112.101.114.97.116.117.114.101.32.32.50 = INTEGER: 0
SNMPv2-SMI::enterprises.2.6.159.1.1.80.1.1.20.14.116.101.109.112.101.114.97.116.117.114.101.32.32.51 = INTEGER: 0
SNMPv2-SMI::enterprises.2.6.159.1.1.80.1.1.20.14.116.101.109.112.101.114.97.116.117.114.101.32.32.52 = INTEGER: 0
SNMPv2-SMI::enterprises.2.6.159.1.1.80.1.1.20.14.116.101.109.112.101.114.97.116.117.114.101.32.32.53 = INTEGER: 0
SNMPv2-SMI::enterprises.2.6.159.1.1.80.1.1.20.14.116.101.109.112.101.114.97.116.117.114.101.32.32.56 = INTEGER: 0
SNMPv2-SMI::enterprises.2.6.159.1.1.80.1.1.20.14.116.101.109.112.101.114.97.116.117.114.101.32.32.57 = INTEGER: 0
SNMPv2-SMI::enterprises.2.6.159.1.1.80.1.1.21.14.116.101.109.112.101.114.97.116.117.114.101.32.32.49 = ""
SNMPv2-SMI::enterprises.2.6.159.1.1.80.1.1.21.14.116.101.109.112.101.114.97.116.117.114.101.32.32.50 = ""
SNMPv2-SMI::enterprises.2.6.159.1.1.80.1.1.21.14.116.101.109.112.101.114.97.116.117.114.101.32.32.51 = ""
SNMPv2-SMI::enterprises.2.6.159.1.1.80.1.1.21.14.116.101.109.112.101.114.97.116.117.114.101.32.32.52 = ""
SNMPv2-SMI::enterprises.2.6.159.1.1.80.1.1.21.14.116.101.109.112.101.114.97.116.117.114.101.32.32.53 = ""
SNMPv2-SMI::enterprises.2.6.159.1.1.80.1.1.21.14.116.101.109.112.101.114.97.116.117.114.101.32.32.56 = ""
SNMPv2-SMI::enterprises.2.6.159.1.1.80.1.1.21.14.116.101.109.112.101.114.97.116.117.114.101.32.32.57 = ""


Any use?


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jan 07, 2005 5:45 pm 
Offline
Cacti User
User avatar

Joined: Fri Dec 31, 2004 7:07 am
Posts: 247
Location: UK
This may be of some use as well - I got it from the Cacti Log:

Quote:
Host: SRV - RPL-VOLVO, SNMP Query: IBM - Health Temperatures
Index: 49, Field Name: iBMPSGTemperatureSensorKeyIndex, Field Value: temperature 1
OID: .1.3.6.1.4.1.2.6.159.1.1.80.1.1.1.49
Host: SRV - RPL-VOLVO, SNMP Query: IBM - Health Temperatures
Index: 50, Field Name: iBMPSGTemperatureSensorKeyIndex, Field Value: temperature 2
OID: .1.3.6.1.4.1.2.6.159.1.1.80.1.1.1.50
Host: SRV - RPL-VOLVO, SNMP Query: IBM - Health Temperatures
Index: 51, Field Name: iBMPSGTemperatureSensorKeyIndex, Field Value: temperature 3
OID: .1.3.6.1.4.1.2.6.159.1.1.80.1.1.1.51
Host: SRV - RPL-VOLVO, SNMP Query: IBM - Health Temperatures
Index: 52, Field Name: iBMPSGTemperatureSensorKeyIndex, Field Value: temperature 4
OID: .1.3.6.1.4.1.2.6.159.1.1.80.1.1.1.52
Host: SRV - RPL-VOLVO, SNMP Query: IBM - Health Temperatures
Index: 53, Field Name: iBMPSGTemperatureSensorKeyIndex, Field Value: temperature 5
OID: .1.3.6.1.4.1.2.6.159.1.1.80.1.1.1.53
Host: SRV - RPL-VOLVO, SNMP Query: IBM - Health Temperatures
Index: 56, Field Name: iBMPSGTemperatureSensorKeyIndex, Field Value: temperature 8
OID: .1.3.6.1.4.1.2.6.159.1.1.80.1.1.1.56
Host: SRV - RPL-VOLVO, SNMP Query: IBM - Health Temperatures
Index: 57, Field Name: iBMPSGTemperatureSensorKeyIndex, Field Value: temperature 9
OID: .1.3.6.1.4.1.2.6.159.1.1.80.1.1.1.57


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jan 07, 2005 8:13 pm 
Offline
Developer
User avatar

Joined: Tue May 14, 2002 5:08 pm
Posts: 14804
Location: MI, USA
Ok, now, run the Data Query in verbose mode from the host and post the output of that and a screen shot of the "Create Graphs" page for the Host Data Query.

TheWitness

_________________
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of MacTrack, Boost, CLog, SpikeKill, Platform RTM, DSStats, maintainer of Spine, lot's of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Central Plugin Repository
Central Templates Repository


I'm still out there people. Getting excited for Cacti 1.2. I think it will be a great release.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jan 07, 2005 8:28 pm 
Offline
Developer
User avatar

Joined: Tue May 14, 2002 5:08 pm
Posts: 14804
Location: MI, USA
Once you have done that, please review the following page:

http://www.cacti.net/downloads/docs/htm ... y_xml.html

What I would like you to focus on is the following:
Quote:
<oid_index_parse>OID/REGEXP:.*\.([0-9]{1,3}\.[0-9]{1,3})$</oid_index_parse>


You will require this parameter. In this case, you need to have a the "\.[0-9]{1,3}" a few times. There will be 1 required for each extra piece of information in the index that is not required. In your case, you need to make sure that the entire section beyond the "Index" is condensed into a single index.

TheWitness

_________________
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of MacTrack, Boost, CLog, SpikeKill, Platform RTM, DSStats, maintainer of Spine, lot's of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Central Plugin Repository
Central Templates Repository


I'm still out there people. Getting excited for Cacti 1.2. I think it will be a great release.


Top
 Profile  
 
 Post subject:
PostPosted: Sat Jan 08, 2005 6:12 am 
Offline
Cacti User
User avatar

Joined: Fri Dec 31, 2004 7:07 am
Posts: 247
Location: UK
As requested:

Verbose Query:

Quote:
+ Running data query [13].
+ Found type = '3' [snmp query].
+ Found data query XML file at 'D:\Cacti/resource/snmp_queries/ibm_temp.xml'
+ XML file parsed ok.
+ Executing SNMP walk for list of indexes @ '.1.3.6.1.4.1.2.6.159.1.1.80.1.1'
+ Located input field 'iBMPSGTemperatureSensorKeyIndex' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.4.1.2.6.159.1.1.80.1.1.1'
+ Found item [iBMPSGTemperatureSensorKeyIndex='temperature 1'] index: 49 [from value]
+ Found item [iBMPSGTemperatureSensorKeyIndex='temperature 2'] index: 50 [from value]
+ Found item [iBMPSGTemperatureSensorKeyIndex='temperature 3'] index: 51 [from value]
+ Found item [iBMPSGTemperatureSensorKeyIndex='temperature 4'] index: 52 [from value]
+ Found item [iBMPSGTemperatureSensorKeyIndex='temperature 5'] index: 53 [from value]
+ Found item [iBMPSGTemperatureSensorKeyIndex='temperature 8'] index: 56 [from value]
+ Found item [iBMPSGTemperatureSensorKeyIndex='temperature 9'] index: 57 [from value]
+ Found data query XML file at 'D:\Cacti/resource/snmp_queries/ibm_temp.xml'
+ Found data query XML file at 'D:\Cacti/resource/snmp_queries/ibm_temp.xml'
+ Found data query XML file at 'D:\Cacti/resource/snmp_queries/ibm_temp.xml'
+ Found data query XML file at 'D:\Cacti/resource/snmp_queries/ibm_temp.xml'
+ Found data query XML file at 'D:\Cacti/resource/snmp_queries/ibm_temp.xml'
+ Found data query XML file at 'D:\Cacti/resource/snmp_queries/ibm_temp.xml'
+ Found data query XML file at 'D:\Cacti/resource/snmp_queries/ibm_temp.xml'
+ Found data query XML file at 'D:\Cacti/resource/snmp_queries/ibm_temp.xml'
+ Found data query XML file at 'D:\Cacti/resource/snmp_queries/ibm_temp.xml'
+ Found data query XML file at 'D:\Cacti/resource/snmp_queries/ibm_temp.xml'
+ Found data query XML file at 'D:\Cacti/resource/snmp_queries/ibm_temp.xml'
+ Found data query XML file at 'D:\Cacti/resource/snmp_queries/ibm_temp.xml'
+ Found data query XML file at 'D:\Cacti/resource/snmp_queries/ibm_temp.xml'
+ Found data query XML file at 'D:\Cacti/resource/snmp_queries/ibm_temp.xml'
+ Found data query XML file at 'D:\Cacti/resource/snmp_queries/ibm_temp.xml'
+ Found data query XML file at 'D:\Cacti/resource/snmp_queries/ibm_temp.xml'
+ Found data query XML file at 'D:\Cacti/resource/snmp_queries/ibm_temp.xml'


Thanks.

Pete.


Attachments:
Create Graphs Page.jpg
Create Graphs Page.jpg [ 181.21 KiB | Viewed 24348 times ]
Top
 Profile  
 
 Post subject:
PostPosted: Sat Jan 08, 2005 6:23 am 
Offline
Cacti User
User avatar

Joined: Fri Dec 31, 2004 7:07 am
Posts: 247
Location: UK
Let me see if I have got this correct - I have the following field:

Quote:
enterprises.ibm.ibmProd.director.cimv2.ibmpsg.ibmpsgLMSensor.iBMPSGTemperatureSensorTable.iBMPSGTemperatureSensorEntry.iBMPSGTemperatureSensorKeyIndex.14.116.101.109.112.101.114.97.116.117.114.101.32.32.57


After this is 'temperature 9'. Would I have to do something like:

Quote:
<oid_index_parse>OID/REGEXP:.*\.([0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3})$</oid_index_parse>


If I have got this TOTALLY wrong - let me know.

Thanks.


Top
 Profile  
 
 Post subject:
PostPosted: Sat Jan 08, 2005 6:40 am 
Offline
Cacti User
User avatar

Joined: Fri Dec 31, 2004 7:07 am
Posts: 247
Location: UK
:D :D :D :D :D :D :D :D :D :D :D :D :D :D :D :D :D :D

It worked!!!!!

:D :D :D :D :D :D :D :D :D :D :D :D :D :D :D :D :D :D

The <oid_index_parse> bit that I put in the previous post worked perfectly - a big thanks has to go out to TheWitness for this!!


Attachments:
IBM Temp.jpg
IBM Temp.jpg [ 52.12 KiB | Viewed 24339 times ]
Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 19 posts ]  Go to page 1, 2  Next

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users 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:  

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