|
|
| Author |
Message |
jay Cacti User
Joined: 31 Aug 2005 Posts: 252 Location: Bristol, England
|
Posted: Wed Aug 22, 2007 4:22 am Post subject: Extreme Networks XOS CPU & Memory Templates |
|
|
Hi
EDIT: I realised that I forgot to add the xml data query template to the ZIP files. I have now added these.
I have attached templates to allow you to monitor CPU and Memory usage on Extreme Networks XOS based switches. I have used a data query so that Cacti can pick up the correct index as this changes depending on what device you are monitoring.
Put the 2 data querys in C:\Apache2\htdocs\cacti\resource\snmp_queries or wherever your resource\snmp_queries folder is located. Import the data and graph templates and away you go.
This has been tested on BD8810 and X4540's running XOS 12.0.1.11, 11.6.2.9, 11.4.4.7 and also 11.4.3.4.
Thanks to tl1997 for help in using the correct OID's. (http://forums.cacti.net/viewtopic.php?t=22644)
Any questions let me know.
Regards
Jay
| Description: |
|
 Download |
| Filename: |
XOS_MEMORY.zip |
| Filesize: |
9.24 KB |
| Downloaded: |
360 Time(s) |
| Description: |
|
 Download |
| Filename: |
XOS_CPU.zip |
| Filesize: |
7.43 KB |
| Downloaded: |
350 Time(s) |
Last edited by jay on Thu Nov 15, 2007 11:31 am; edited 1 time in total |
|
| Back to top |
|
 |
jay Cacti User
Joined: 31 Aug 2005 Posts: 252 Location: Bristol, England
|
Posted: Wed Aug 22, 2007 4:29 am Post subject: |
|
|
See screenshot of memory usage
| Description: |
|
| Filesize: |
32.45 KB |
| Viewed: |
6453 Time(s) |

|
|
|
| Back to top |
|
 |
srossen
Joined: 13 Jun 2005 Posts: 12
|
Posted: Mon Sep 24, 2007 4:27 pm Post subject: |
|
|
| Do I have to add OID or anything to make these works? The querys don't work for me. Tried on 12.0.1.11.
|
|
| Back to top |
|
 |
jay Cacti User
Joined: 31 Aug 2005 Posts: 252 Location: Bristol, England
|
Posted: Thu Sep 27, 2007 6:19 am Post subject: |
|
|
Hi
Sorry for the late reply but I have been on holiday. Give me a few days to settle back and I will reply back to you.
Jay
|
|
| Back to top |
|
 |
jay Cacti User
Joined: 31 Aug 2005 Posts: 252 Location: Bristol, England
|
Posted: Tue Oct 09, 2007 8:02 am Post subject: |
|
|
Hi
Are you still having problems with this??
What do you get when you do an snmpwalk??
C:\net-snmp\bin>snmpwalk.exe -v2c -c public <ip add> .1.3.6.1.4.1.1916.1.3
2.2.2.1
SNMPv2-SMI::enterprises.1916.1.32.2.2.1.1.1 = Gauge32: 1
SNMPv2-SMI::enterprises.1916.1.32.2.2.1.2.1 = STRING: "262144"
SNMPv2-SMI::enterprises.1916.1.32.2.2.1.3.1 = STRING: "116856"
SNMPv2-SMI::enterprises.1916.1.32.2.2.1.4.1 = STRING: "25464"
SNMPv2-SMI::enterprises.1916.1.32.2.2.1.5.1 = STRING: "119824"
Jay
|
|
| Back to top |
|
 |
Arrow2005
Joined: 03 Nov 2005 Posts: 29
|
Posted: Fri Oct 19, 2007 8:56 am Post subject: |
|
|
hi there !
Same problem here....
Error in data query
tryed to fetch from a x450 switch.
totaly clean cacti just the templates installed and 2 switches.
x450 - ExtremeWare XOS version 11.5.2.8
x450 - ExtremeXOS version 12.0.1.11
=================
SNMP Walk Results for x.x.x.x
.1.3.6.1.4.1.1916.1.32.2.2.1.1.1 1
.1.3.6.1.4.1.1916.1.32.2.2.1.2.1 262144
.1.3.6.1.4.1.1916.1.32.2.2.1.3.1 142384
.1.3.6.1.4.1.1916.1.32.2.2.1.4.1 25408
.1.3.6.1.4.1.1916.1.32.2.2.1.5.1 94352
|
|
| Back to top |
|
 |
jay Cacti User
Joined: 31 Aug 2005 Posts: 252 Location: Bristol, England
|
Posted: Fri Oct 19, 2007 9:13 am Post subject: |
|
|
Hi
Can you confirm that you have the following
graph templates:-
Extreme Networks - XOS CPU Utilization
Extreme Networks - XOS Memory
data templates:-
Extreme Networks - XOS CPU Utilization
Extreme Networks - XOS Memory
data queries
Extreme Networks - XOS CPU
Extreme Networks - XOS Memory
Have you put the extreme_xos_cpu.xml and extreme_xos_memory.xml into your resource/snmp_queries folder?
Have you added the 2 data queries to the device in question?? Can you do a verbose query on both the data queries for that device and post the output.
Jay
|
|
| Back to top |
|
 |
Arrow2005
Joined: 03 Nov 2005 Posts: 29
|
Posted: Sat Oct 20, 2007 11:06 am Post subject: |
|
|
tested some of the hints, and allsow saw that I had to rename the files etc.
now most works but when trying to link a graph to the data query I get this error:
Warning: Variable passed to each() is not an array or object in /var/www/cacti/data_queries.php on line 356
so it the poller is seems to be working now, but now the graph wierd
|
|
| Back to top |
|
 |
jay Cacti User
Joined: 31 Aug 2005 Posts: 252 Location: Bristol, England
|
Posted: Mon Oct 29, 2007 6:33 am Post subject: |
|
|
Can you do a verbose query on both the data queries for that device and post the output.
You should see something like this
Running data query [32].
+ Found type = '3' [snmp query].
+ Found data query XML file at 'C:/Apache2/htdocs/cacti/resource/snmp_queries/extreme_xos_cpu.xml'
+ XML file parsed ok.
+ Executing SNMP walk for list of indexes @ '.1.3.6.1.4.1.1916.1.32.1.4.1.1'
+ Located input field 'SlotID' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.4.1.1916.1.32.1.4.1.1'
+ Found item [SlotID='1'] index: 1 [from value]
+ Found data query XML file at 'C:/Apache2/htdocs/cacti/resource/snmp_queries/extreme_xos_cpu.xml'
+ Found data query XML file at 'C:/Apache2/htdocs/cacti/resource/snmp_queries/extreme_xos_cpu.xml'
+ Found data query XML file at 'C:/Apache2/htdocs/cacti/resource/snmp_queries/extreme_xos_cpu.xml'
+ Found data query XML file at 'C:/Apache2/htdocs/cacti/resource/snmp_queries/extreme_xos_cpu.xml'
|
|
| Back to top |
|
 |
ErocNet
Joined: 13 Nov 2007 Posts: 5
|
Posted: Thu Nov 15, 2007 8:14 am Post subject: problems... |
|
|
Hi,
I also have trouble with this.
I have only tested the "cpu templates"
First of all I couldn't import the templates. But that’s no problem
I have created them manually by viewing your xmlfiles.
So now I have both Data & Graph templates and they seems to
be right.
But when I’m going to create a I Data Queries Iget an error.
"Could not locate XML file".
Must I create a new extreme_xos_cpu.xml?
If so how do I know the OIDs I must use?
Or do I something completely wrong here...
/Roger
|
|
| Back to top |
|
 |
jay Cacti User
Joined: 31 Aug 2005 Posts: 252 Location: Bristol, England
|
Posted: Thu Nov 15, 2007 8:17 am Post subject: |
|
|
Hi Roger
Did you put the extreme_xos_cpu.xml into your snmp_queries folder??
Your XML path will look something like this
<path_cacti>/resource/snmp_queries/extreme_xos_cpu.xml
Jay
|
|
| Back to top |
|
 |
ErocNet
Joined: 13 Nov 2007 Posts: 5
|
Posted: Thu Nov 15, 2007 10:16 am Post subject: |
|
|
I can't see that file in the zip only
cacti_data_query_extreme_networks_xos_cpu.xml
cacti_data_template_extreme_networks_xos_cpu_utilization.xml
cacti_graph_template_extreme_networks_xos_cpu_utilization.xml
However I created a xml fil with this inside
<interface>
<name>Get Extreme Networks - XOS CPU Information</name>
<description>Get SNMP based Partition Information out of Extreme Networks - XOS CPU</description>
<index_order_type>numeric</index_order_type>
<oid_index>.1.3.6.1.4.1.1916.1.32.1.4.1.1</oid_index>
<fields>
<hrStorageIndex>
<name>Index</name>
<method>walk</method>
<source>value</source>
<direction>input</direction>
<oid>.1.3.6.1.4.1.1916.1.32.1.4.1.1</oid>
</hrStorageIndex>
</fields>
</interface>
but now I get this error in "Graph Management"
ERROR: opening '/var/www/html/rra/elit450_5mincpu_135.rrd': No such file or directory
I have a couples rrd files from other working interfaces in that directory,
but not that file.
"5mincpu" in the filename is from Data Templates [edit: Extreme Networks - XOS CPU Utilization] - Data Source Item [5minCPU] I think.
I´m an unversed in the "Cacti world". My experience is only 2 weeks in this "world" and haven't got the logics behind the process of Templates,Collection methods,device Tracking and management. But I have succeed to create 2 own HP graphs.
/Roger
|
|
| Back to top |
|
 |
jay Cacti User
Joined: 31 Aug 2005 Posts: 252 Location: Bristol, England
|
Posted: Thu Nov 15, 2007 12:27 pm Post subject: |
|
|
HI
Not entirely sure about your rrd error.
I have just realised that I didn't post the xml query's which need to be added to your resource/snmp_query folder. I have now edited the post and added the xml query's into the zip files.
With regards importing the files I normally download the files onto my PC. I then use Architag Xray XML editor to check for any errors within the XML files. The errors that you normally see are a - before the < within the XML files e.g removing the - before <cacti> below will resolve the problem of importing the xml files within your cacti installation. I would then just copy the text within the file and paste it back into the import box within Cacti. This should get rid of any errors.
- <cacti>
<hash_040013890baeaa6120a5f19a6a5414058aa2a1>
<name>Extreme Networks - XOS CPU</name>
Maybe its worth deleting these templates and re - importing them again and add the following xml files into your resource/snmp_query folder
extreme_xos_cpu.xml
extreme_xos_memory.xml
Then click on your device you want to add the graphs too and add the following data query's to the device
Extreme Networks - XOS CPU
Extreme Networks - XOS Memory
You should see a success of Success [1 Item, 1 Row] then click on create graphs and create the graphs for these 2 templates.
Hope this helps.
Jay
|
|
| Back to top |
|
 |
ErocNet
Joined: 13 Nov 2007 Posts: 5
|
Posted: Thu Nov 15, 2007 1:40 pm Post subject: |
|
|
Thanks for your answers,
The trouble with the import are in both ways
this error.
Error: XML: Hash version does not exist.
And I think it can be the version of my Cacti.
My verson are 0.8.6h
/Roger
|
|
| Back to top |
|
 |
jay Cacti User
Joined: 31 Aug 2005 Posts: 252 Location: Bristol, England
|
Posted: Fri Nov 16, 2007 5:07 am Post subject: |
|
|
Roger
I'm running J and the templates were exported in J. Might be worth upgrading to J, its the latest 0.8.6 version. This way you shouldn't get any hash error messages when importing script from the forums. I wouldn't upgrade to 0.8.7 as it looks like there are still a few issues with it.
Did you try what I said by removing the - from the files using the Xray xml editor??
Jay
|
|
| Back to top |
|
 |
|