Cacti (home)ForumsDocumentation
Cacti: offical forums and support
It is currently Wed Jun 26, 2019 5:23 pm

All times are UTC - 5 hours




Post new topic Reply to topic  [ 25 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: [RESOLVED] Does anyone have graphs working for NetApp qtrees
PostPosted: Thu Apr 20, 2006 10:06 am 
Offline

Joined: Fri Apr 14, 2006 4:13 pm
Posts: 12
Hello, I'm a newbie to cacti and am having trouble graphing NetApp qtrees. I've tried a few methods (using SNMP and running commands on the filer to generate an output file) but am unable to get any data onto a graph. In NetApp OnTAP 6.5, my data query finds all the qtrees, but only creates a few graphs and none of the graphs show anything other than 0 for the qtree usage and qtree limit. In NetApp OnTAP 7.0.2, my data query and snmpwalk only find 1 qtree and the graph only shows 0 for the qtree usage and limit. I've searched this forum for help but the only relevant post led to Bug 632 which did not resolve my problem (http://forums.cacti.net/viewtopic.php?t ... ight=qtree). I am able to see other graphs with valid data for both the filers running OnTAP 6.5 and 7.0, si I know I can get some SNMP data out of the filers.

I've attached my xml and templates and the cacti.log in DEBUG mode in the hopes that someone will find that I'm making a basic mistake that I as a newbie have overlooked.

Any help will be appreciated.

Thanks


Last edited by pbratach on Fri Apr 28, 2006 3:10 pm, edited 2 times in total.

Top
 Profile  
 
 Post subject:
PostPosted: Sun Apr 23, 2006 2:28 pm 
Offline
Developer
User avatar

Joined: Thu Dec 02, 2004 2:46 am
Posts: 22376
Location: Muenster, Germany
Please post an snmpwalk against .1.3.6.1.4.1.789.1.4.6.1
And please have a look at the very last link of my signature
Reinhard

_________________
Official Cacti Documentation
Official Debugging Help
Central Plugin Repository
Central Templates Repository


Top
 Profile  
 
 Post subject:
PostPosted: Mon Apr 24, 2006 10:52 am 
Offline

Joined: Fri Apr 14, 2006 4:13 pm
Posts: 12
Thanks for the reply, I did find and fix one 1problem, I had the wrong field name in the Assocaited Data Template entry in the Associated Graph Template screen. This now returns the value for the first qtree it finds on the NetApp filer.
I read through the last link in your signature, but am unable to decipher what entry I need for the HOST-DESCRIPTION-MIB. Here's the screenshot of what I tried:

pbratach @ AgentSmith
[/var/www/html/netapp/cacti]>snmptable -c public -v 1 smeagol SNMPv2-SMI::qrV2Table
SNMPv2-SMI::qrV2Table: Unknown Object Identifier
pbratach @ AgentSmith
[/var/www/html/netapp/cacti]>snmptable -c public -v 1 smeagol SNMPv2-SMI::enterprises.qrV2Table
SNMPv2-SMI::enterprises.qrV2Table: Unknown Object Identifier (Sub-id not found: enterprises -> qrV2Table)
pbratach @ AgentSmith
[/var/www/html/netapp/cacti]>snmptable -c public -v 1 smeagol SNMPv2-SMI::enterprises::qrV2Table
SNMPv2-SMI::enterprises::qrV2Table: Unknown Object Identifier
pbratach @ AgentSmith
[/var/www/html/netapp/cacti]>snmptable -c public -v 1 smeagol SNMPv2-SMI.qrV2Table
SNMPv2-SMI.qrV2Table: Unknown Object Identifier (Sub-id not found: (top) -> SNMPv2-SMI)
pbratach @ AgentSmith
[/var/www/html/netapp/cacti]>snmptable -c public -v 2c smeagol SNMPv2-SMI::enterprises::qrV2Table
SNMPv2-SMI::enterprises::qrV2Table: Unknown Object Identifier
pbratach @ AgentSmith
[/var/www/html/netapp/cacti]>snmptable -c public -v 2c smeagol SNMPv2-SMI::qrV2Table
SNMPv2-SMI::qrV2Table: Unknown Object Identifier
pbratach @ AgentSmith
[/var/www/html/netapp/cacti]>snmptable -c public -v 2c smeagol SNMPv2-SMI::enterprises.qrV2Table
SNMPv2-SMI::enterprises.qrV2Table: Unknown Object Identifier (Sub-id not found: enterprises -> qrV2Table)


As you requested, I've attached an snmpwalk of the NetApp filer for the qtrees to this port. The netapp65.walk.txt file contains the walk for the filer running the NetApp OnTap version 6.5 OS. The netapp702.walk.txt file contains the walk for the filer running the NetApp OnTap version 7.0.2 OS.

Thanks for your help,
Paul


Attachments:
netapp702.walk.txt [1.35 KiB]
Downloaded 1159 times
netapp65.walk.txt.gz [20.88 KiB]
Downloaded 795 times
Top
 Profile  
 
 Post subject:
PostPosted: Mon Apr 24, 2006 12:43 pm 
Offline
Developer
User avatar

Joined: Thu Dec 02, 2004 2:46 am
Posts: 22376
Location: Muenster, Germany
The netapp65 file is interesting.
The OID base seems to be SNMPv2-SMI::enterprises.789.1.4.6.1.1.
The Index seems to be a two-dimensional one, e.g.
1.1 - 1.8
2.1 - 2.4
...
14.1 - 14.34
There is some "interesting" data at SNMPv2-SMI::enterprises.789.1.4.6.1.5 and at SNMPv2-SMI::enterprises.789.1.4.6.1.8 (perhaps more following, did not check the whole file). Without MIBs, I don't know what those OIDs are displaying. This belongs to you.
But it is possible, to define a two-dimensional index for some SNMP Query XML file. If you'll sort out those OIDs you're interested in, together with their meanings, I'll guide you through the whole process. But as I do not have access to such a device, this may require some ping-pong between the two of us
Reinhard

_________________
Official Cacti Documentation
Official Debugging Help
Central Plugin Repository
Central Templates Repository


Top
 Profile  
 
 Post subject:
PostPosted: Tue Apr 25, 2006 3:05 pm 
Offline

Joined: Fri Apr 14, 2006 4:13 pm
Posts: 12
Hmm, that is interesting. The OID's I need are qrV2Tree (the name of the qtree at OID .1.3.6.1.4.1.789.1.4.6.1.14), qrV2LowKBytesUsed (.1.3.6.1.4.1.789.1.4.6.1.5) and qrV2LowKBytesLimit (.1.3.6.1.4.1.789.1.4.6.1.8). I asked our local Cacti expert about the two-dimensional index and he has no idea how to handle that. So I am including the netapp.mib file that contains a description of the MIB from NetApp and the traps.dat file which shows the OID for each MIB field name in hopes that will help resolve this issue. This is what I am currently seeing in my cacti.log file:

04/25/2006 01:57:01 PM - CACTID: Poller[0] Host[8] DS[981] WARNING: Result from SNMP not valid. Partial Result: ...
04/25/2006 01:57:01 PM - CACTID: Poller[0] Host[8] DS[981] SNMP: v1: wormtongue, dsname: LowKBytesUsed, oid: .1.3.6.1.4.1.789.1.4.6.1.5.1, value: U
04/25/2006 01:57:01 PM - CACTID: Poller[0] Host[8] DS[982] WARNING: Result from SNMP not valid. Partial Result: ...
04/25/2006 01:57:01 PM - CACTID: Poller[0] Host[8] DS[982] SNMP: v1: wormtongue, dsname: LowKBytesUsed, oid: .1.3.6.1.4.1.789.1.4.6.1.5.6, value: U
04/25/2006 01:57:01 PM - CACTID: Poller[0] Host[8] DS[981] WARNING: Result from SNMP not valid. Partial Result: ...
04/25/2006 01:57:01 PM - CACTID: Poller[0] Host[8] DS[981] SNMP: v1: wormtongue, dsname: LowKBytesLimit, oid: .1.3.6.1.4.1.789.1.4.6.1.8.1, value: U
04/25/2006 01:57:01 PM - CACTID: Poller[0] Host[8] DS[982] WARNING: Result from SNMP not valid. Partial Result: ...
04/25/2006 01:57:01 PM - CACTID: Poller[0] Host[8] DS[982] SNMP: v1: wormtongue, dsname: LowKBytesLimit, oid: .1.3.6.1.4.1.789.1.4.6.1.8.6, value: U

The OID for the LowKBytesUsed and LowKBytesLimit is missing the qrV2Volume number in in's OID...when I snmpwalk the OID .1.3.6.1.4.1.789.1.4.6.1.8.6 I get nothing, but when I snmpwalk the OID .1.3.6.1.4.1.789.1.4.6.1.8.2.6, I get the value I am looking for.

pbratach @ AgentSmith
[/var/www/html/netapp/cacti]>snmpwalk -c public -v 1 wormtongue .1.3.6.1.4.1.789.1.4.6.1.8.6
pbratach @ AgentSmith
[/var/www/html/netapp/cacti]>snmpwalk -c public -v 1 wormtongue .1.3.6.1.4.1.789.1.4.6.1.8.2.6
SNMPv2-SMI::enterprises.789.1.4.6.1.8.2.6 = INTEGER: 20971520

So somehow I need to get the qrV2Volume number into the OID for the LowKBytesUsed and LowKBytesLimit fields, and that is what I am having trouble with.

Thanks,
Paul


Top
 Profile  
 
 Post subject:
PostPosted: Tue Apr 25, 2006 4:09 pm 
Offline

Joined: Fri Apr 14, 2006 4:13 pm
Posts: 12
hear are the attachments.


Attachments:
traps.dat.txt [142.28 KiB]
Downloaded 2422 times
netapp.mib.txt.gz [62.22 KiB]
Downloaded 1110 times
Top
 Profile  
 
 Post subject:
PostPosted: Wed Apr 26, 2006 11:06 am 
Offline
Developer
User avatar

Joined: Thu Dec 02, 2004 2:46 am
Posts: 22376
Location: Muenster, Germany
pbratach wrote:
Hmm, that is interesting. The OID's I need are qrV2Tree (the name of the qtree at OID .1.3.6.1.4.1.789.1.4.6.1.14), qrV2LowKBytesUsed (.1.3.6.1.4.1.789.1.4.6.1.5) and qrV2LowKBytesLimit (.1.3.6.1.4.1.789.1.4.6.1.8). I asked our local Cacti expert about the two-dimensional index and he has no idea how to handle that.
Hehe, lets have a go. What you need is called an OID/REGEXP together with some <oid_index_parse>. You may search the docs and the forum for that. You should find some post (very recent ones should be found) describing this.
If in trouble, please post
Reinhard

_________________
Official Cacti Documentation
Official Debugging Help
Central Plugin Repository
Central Templates Repository


Top
 Profile  
 
 Post subject:
PostPosted: Thu Apr 27, 2006 3:40 pm 
Offline

Joined: Fri Apr 14, 2006 4:13 pm
Posts: 12
Reinhard,

well I'm getting closer, but still baffled about how to get the volume number into the OID for the LowKBytesUsed field. Here is the output from the Verbose Query in the Devices screen:

+ Running data query [16].
+ Found type = '3' [snmp query].
+ Found data query XML file at '/var/www/html/netapp/cacti-0.8.6h/resource/snmp_queries/netapp_qtrees.xml'
+ XML file parsed ok.
+ Executing SNMP walk for list of indexes @ '.1.3.6.1.4.1.789.1.4.6.1'
+ Located input field 'qrV2Index' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.4.1.789.1.4.6.1.1'
+ Found item [qrV2Index='1'] index: 2.1 [from value]
...
+ Located input field 'qrV2Volume' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.4.1.789.1.4.6.1.13'
+ Found item [qrV2Volume='2'] index: 2.1 [from value]
...
+ Located input field 'qrV2Tree' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.4.1.789.1.4.6.1.14'
+ Found item [qrV2Tree='at04_apps'] index: 2.1 [from value]

As you can see the qrV2Tree variable now has the two-dimensional area index that I need, where 2 is the volume number and 1 is the qtree number. But I don't know how to make my XML file use this index value to display the value of the OID .1.3.6.1.4.1.789.1.4.6.1.5.2.1 where 2.1 is the index I need added to the base OID 1.3.6.1.4.1.789.1.4.6.1.5.

Here's the XML file that I've modified since my earlier post that uses the OID/REGEXP (thanks for the suggestion):

<interface>
<name>Get Netapp qtree stats</name>
<oid_index>.1.3.6.1.4.1.789.1.4.6.1</oid_index>
<oid_index_parse>OID/REGEXP:.*\.([0-9]+\.[0-9]+)$</oid_index_parse>
<index_order>qrV2Tree</index_order>
<index_order_type>alphanumeric</index_order_type>
<index_title_format>|chosen_order_field|</index_title_format>
<fields>
<qrV2Index>
<name>Index</name>
<method>walk</method>
<source>value</source>
<direction>input</direction>
<oid>.1.3.6.1.4.1.789.1.4.6.1.1</oid>
</qrV2Index>
<qrV2Volume>
<name>Volume</name>
<method>walk</method>
<source>value</source>
<direction>input</direction>
<oid>.1.3.6.1.4.1.789.1.4.6.1.13</oid>
</qrV2Volume>
<qrV2Tree>
<name>Tree</name>
<method>walk</method>
<source>value</source>
<direction>input</direction>
<oid>.1.3.6.1.4.1.789.1.4.6.1.14</oid>
</qrV2Tree>
...
<qrV2LowKBytesUsed>
<name>LowKBytesUsed</name>
<method>walk</method>
<source>index</source>
<direction>output</direction>
<oid>.1.3.6.1.4.1.789.1.4.6.1.5</oid>
</qrV2LowKBytesUsed>
...
<qrV2LowKBytesLimit>
<name>LowKBytesLimit</name>
<method>walk</method>
<source>index</source>
<direction>output</direction>
<oid>.1.3.6.1.4.1.789.1.4.6.1.8</oid>
</qrV2LowKBytesLimit>

I've set the source on the qrV2LowKBytesUsed field to index, according to the docs, but I still am unable to get the graph created.

Thanks,
Paul


Top
 Profile  
 
 Post subject: javascript:emoticon(':D')RESOLVED!!!
PostPosted: Fri Apr 28, 2006 10:05 am 
Offline

Joined: Fri Apr 14, 2006 4:13 pm
Posts: 12
Reinhard,

Thank you very much for all of your help, it was a long and grueling 3 weeks, but it feels good to have completed this task. Looking over my XML again this morning, I discovered that I had the wrong OID for the qrV2Volume. When I corrected the OID, I was able to create the qtree graphs (all 288 of them on one of our filers). Now I will go ahead and create them for our remaining filers and see what that does to the performance of our cacti server. I will post all my templates and XML later today for anyone who is interested in graphing NetApp qtrees.

Paul


Top
 Profile  
 
 Post subject:
PostPosted: Fri Apr 28, 2006 3:18 pm 
Offline

Joined: Fri Apr 14, 2006 4:13 pm
Posts: 12
As promised, here's the XML and template files for NetApp OnTAP 6.5 that work for qtrees. These graphs will only work with 32 bit counters, so any qtree or volume over 4TB will not graph properly. We only have 1 qtree and volume that big right, now, so it's not high on my list to make this work for 64 bit counters. But that will happen soon I'm sure.

See my next post for the 7.0.2 templates and xml file.


Attachments:
File comment: This is the graph template for OnTap 6.5
cacti_graph_template_netapp_gt_qt_32a.xml [14.42 KiB]
Downloaded 1182 times
File comment: This is the data template for OnTap 6.5
cacti_data_template_netapp_dt_qt_32.xml [7.14 KiB]
Downloaded 877 times
File comment: This is the data query template for OnTap 6.5
cacti_data_query_netapp_dq_qt_32.xml [16.16 KiB]
Downloaded 906 times
File comment: This is the xml file for OnTap 6.5
netapp_qtrees.xml [2.86 KiB]
Downloaded 1016 times


Last edited by pbratach on Fri Apr 28, 2006 3:32 pm, edited 1 time in total.
Top
 Profile  
 
 Post subject:
PostPosted: Fri Apr 28, 2006 3:22 pm 
Offline

Joined: Fri Apr 14, 2006 4:13 pm
Posts: 12
Here's the templates and xml file for NetApp OnTap 7.0.2. Please note. I had to use deprecated OID's in OnTAP 7.0.2 to generate the qtree graphs. Also, I had to increase the size of the Maximum Field Length and Maximum Title Length to 50 characters to fit in the whole qtree name.


Attachments:
File comment: This is the graph template for OnTap 7.0.2
cacti_graph_template_netapp_gt_qt_32a_7g.xml [14.41 KiB]
Downloaded 1445 times
File comment: This is the data template for OnTap 7.0.2
cacti_data_template_netapp_dt_qt_32_7g.xml [7.13 KiB]
Downloaded 1067 times
File comment: This is the data query for OnTap 7.0.2
cacti_data_query_netapp_dq_qt_32_7g.xml [16.16 KiB]
Downloaded 1386 times
File comment: This is the xml file for OnTap 7.0.2
netapp_qtrees7g.xml [1.15 KiB]
Downloaded 1286 times
Top
 Profile  
 
 Post subject:
PostPosted: Sat Apr 29, 2006 6:38 am 
Offline
Developer
User avatar

Joined: Thu Dec 02, 2004 2:46 am
Posts: 22376
Location: Muenster, Germany
Very well done.
Now moving to Scripts and Templates for others to find them in the correct location
Reinhard

_________________
Official Cacti Documentation
Official Debugging Help
Central Plugin Repository
Central Templates Repository


Top
 Profile  
 
 Post subject:
PostPosted: Mon May 01, 2006 3:04 pm 
Offline
Cacti User
User avatar

Joined: Thu Feb 03, 2005 5:53 pm
Posts: 91
Location: San Jose, CA
pbratach wrote:
Here's the templates and xml file for NetApp OnTap 7.0.2. Please note. I had to use deprecated OID's in OnTAP 7.0.2 to generate the qtree graphs. Also, I had to increase the size of the Maximum Field Length and Maximum Title Length to 50 characters to fit in the whole qtree name.


I think those "depreciated" OIDs have gone away as of 7.0.4. There's nothing under enterprises.789.1.4.3.1 in 7.0.4, however, enterprises.789.1.4.6.1 is still fine.

Any thoughts?

_________________
- Dan
"Step up to red alert!" "Are you sure, sir?
It means changing the bulb in the sign..." - Red Dwarf


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jun 06, 2006 4:30 am 
Offline

Joined: Sun Apr 09, 2006 9:29 pm
Posts: 16
I have NETAPP:RELEASE:7.1 need graphs for cacti, we should use which XML file??


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jun 06, 2006 4:43 am 
Offline
Cacti User
User avatar

Joined: Thu Sep 29, 2005 5:21 am
Posts: 102
Location: Edinburgh, Scotland
http://forums.cacti.net/viewtopic.php?t=11446

_________________
I don't care if the glass is half full or half empty, i want to know, who's been drinking my pint!!!

[Windows 2003 & IIS6] [Cacti 0.8.7b] [ActivePerl 5.8.8.817] [MySql 5.0.19] [NetSNMP 5.2.1.2-1] [PHP 5.1.2] [RRDTool 1.2.11]
[Plugins: PluginArchitecture, Monitor, Discovery, Threshold, Update, Reports, Manage, RealTime]


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 25 posts ]  Go to page 1, 2  Next

All times are UTC - 5 hours


Who is online

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