[XML] Newbie IBM xSeries Temperature Script **HELP**

Templates, scripts for templates, scripts and requests for templates.

Moderators: Moderators, Developers

Author
Message
User avatar
pshankland
Cacti User
Posts: 247
Joined: Fri Dec 31, 2004 7:07 am
Location: UK

[XML] Newbie IBM xSeries Temperature Script **HELP**

#1 Post by pshankland » Thu Jan 06, 2005 9:44 am

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
ibm_temp.xml
IBM SNMP Query
(1021 Bytes) Downloaded 1458 times
Last edited by pshankland on Thu Jan 06, 2005 3:56 pm, edited 1 time in total.

User avatar
pshankland
Cacti User
Posts: 247
Joined: Fri Dec 31, 2004 7:07 am
Location: UK

#2 Post by pshankland » Thu Jan 06, 2005 10:49 am

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
ibm_temp.xml
My original script
(1023 Bytes) Downloaded 1069 times
cacti_data_template_ibm_temperature.xml
(6.5 KiB) Downloaded 1017 times
cacti_data_template_ibm_temperature_threshold.xml
(6.53 KiB) Downloaded 1061 times

User avatar
pshankland
Cacti User
Posts: 247
Joined: Fri Dec 31, 2004 7:07 am
Location: UK

#3 Post by pshankland » Thu Jan 06, 2005 10:50 am

Other couple of exported templates...
Attachments
cacti_data_query_ibm_health_temperatures.xml
(17.77 KiB) Downloaded 1269 times
cacti_graph_template_ibm_temperature.xml
(15.52 KiB) Downloaded 1050 times

User avatar
pshankland
Cacti User
Posts: 247
Joined: Fri Dec 31, 2004 7:07 am
Location: UK

#4 Post by pshankland » Thu Jan 06, 2005 11:43 am

Screenshot
Attachments
IBM Problem.jpg
IBM Problem.jpg (171.3 KiB) Viewed 24681 times

User avatar
pshankland
Cacti User
Posts: 247
Joined: Fri Dec 31, 2004 7:07 am
Location: UK

#5 Post by pshankland » Thu Jan 06, 2005 12:20 pm

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 24675 times

User avatar
pshankland
Cacti User
Posts: 247
Joined: Fri Dec 31, 2004 7:07 am
Location: UK

#6 Post by pshankland » Thu Jan 06, 2005 2:48 pm

This is turning into a blog :lol:

Have just stmbled across the Cacti Log File and have noticed I keep getting the following:
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:
<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.

User avatar
pshankland
Cacti User
Posts: 247
Joined: Fri Dec 31, 2004 7:07 am
Location: UK

#7 Post by pshankland » Fri Jan 07, 2005 4:51 pm

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 24626 times

User avatar
TheWitness
Developer
Posts: 14817
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

#8 Post by TheWitness » Fri Jan 07, 2005 5:05 pm

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.

User avatar
pshankland
Cacti User
Posts: 247
Joined: Fri Dec 31, 2004 7:07 am
Location: UK

#9 Post by pshankland » Fri Jan 07, 2005 5:44 pm

Thanks so much for the reply. I think I have done this correct:
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:
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?

User avatar
pshankland
Cacti User
Posts: 247
Joined: Fri Dec 31, 2004 7:07 am
Location: UK

#10 Post by pshankland » Fri Jan 07, 2005 5:45 pm

This may be of some use as well - I got it from the Cacti Log:
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

User avatar
TheWitness
Developer
Posts: 14817
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

#11 Post by TheWitness » Fri Jan 07, 2005 8:13 pm

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.

User avatar
TheWitness
Developer
Posts: 14817
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

#12 Post by TheWitness » Fri Jan 07, 2005 8:28 pm

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:
<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.

User avatar
pshankland
Cacti User
Posts: 247
Joined: Fri Dec 31, 2004 7:07 am
Location: UK

#13 Post by pshankland » Sat Jan 08, 2005 6:12 am

As requested:

Verbose Query:
+ 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 24602 times

User avatar
pshankland
Cacti User
Posts: 247
Joined: Fri Dec 31, 2004 7:07 am
Location: UK

#14 Post by pshankland » Sat Jan 08, 2005 6:23 am

Let me see if I have got this correct - I have the following field:
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:
<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.

User avatar
pshankland
Cacti User
Posts: 247
Joined: Fri Dec 31, 2004 7:07 am
Location: UK

#15 Post by pshankland » Sat Jan 08, 2005 6:40 am

: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 24593 times

Post Reply