Cacti (home)ForumsDocumentation
Cacti: offical forums and support
It is currently Mon Mar 18, 2019 1:06 pm

All times are UTC - 5 hours




Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: NetApp R100 Statistics
PostPosted: Mon Sep 13, 2004 9:29 am 
Offline

Joined: Tue Apr 27, 2004 4:39 am
Posts: 24
Hi,

I've been using cacti for a while now, but I found out how to use data templates for most of the things I need. I designed a XML template (to be put in resource/snmp_queries) which some fields that were of interest to me, this can obviously be extended to what you want it to be...

The attached XML iterates through the different volumes and picks up relevant data (mountedOn, KBytesfree, inodesfree, etc.)

You then need to add a data query using the XML file provided. There's a lot more magic to do there (graph templates etc), but if you're an experienced cacti user you should be OK to construct the graphs.

This is the output from the "Verbose query" once you've set up a data source:

+ Running data query [15].
+ Found type = '3' [snmp query].
+ Found data query XML file at '/var/www/localhost/htdocs/cacti/resource/snmp_queries/netapp-volumes.xml'
+ XML file parsed ok.
+ Executing SNMP walk for list of indexes @ '.1.3.6.1.4.1.789.1.5.4.1'
+ Located input field 'dfIndex' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.4.1.789.1.5.4.1.1'
+ Found item [dfIndex='1'] index: 1 [from value]
+ Found item [dfIndex='2'] index: 2 [from value]
+ Found item [dfIndex='3'] index: 3 [from value]
+ Found item [dfIndex='4'] index: 4 [from value]
+ Found item [dfIndex='5'] index: 5 [from value]
+ Found item [dfIndex='6'] index: 6 [from value]
+ Found item [dfIndex='7'] index: 7 [from value]
+ Found item [dfIndex='8'] index: 8 [from value]
+ Found item [dfIndex='9'] index: 9 [from value]
+ Found item [dfIndex='10'] index: 10 [from value]
+ Found item [dfIndex='11'] index: 11 [from value]
+ Found item [dfIndex='12'] index: 12 [from value]
+ Found item [dfIndex='13'] index: 13 [from value]
+ Found item [dfIndex='14'] index: 14 [from value]
+ Found item [dfIndex='15'] index: 15 [from value]
+ Found item [dfIndex='16'] index: 16 [from value]
+ Found item [dfIndex='17'] index: 17 [from value]
+ Found item [dfIndex='18'] index: 18 [from value]
+ Found item [dfIndex='19'] index: 19 [from value]
+ Found item [dfIndex='20'] index: 20 [from value]
+ Found item [dfIndex='21'] index: 21 [from value]
+ Found item [dfIndex='22'] index: 22 [from value]
+ Located input field 'dfMountedOn' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.4.1.789.1.5.4.1.2'
+ Found item [dfMountedOn='/vol/vol1/'] index: 1 [from value]
+ Found item [dfMountedOn='/vol/vol1/.snapshot'] index: 2 [from value]
+ Found item [dfMountedOn='/vol/vol2/'] index: 3 [from value]
+ Found item [dfMountedOn='/vol/vol2/.snapshot'] index: 4 [from value]
+ Found item [dfMountedOn='/vol/vol3/'] index: 5 [from value]
+ Found item [dfMountedOn='/vol/vol3/.snapshot'] index: 6 [from value]
+ Found item [dfMountedOn='/vol/vol4/'] index: 7 [from value]
+ Found item [dfMountedOn='/vol/vol4/.snapshot'] index: 8 [from value]
+ Found item [dfMountedOn='/vol/vol5/'] index: 9 [from value]
+ Found item [dfMountedOn='/vol/vol5/.snapshot'] index: 10 [from value]
+ Found item [dfMountedOn='/vol/vol6/'] index: 11 [from value]
+ Found item [dfMountedOn='/vol/vol6/.snapshot'] index: 12 [from value]
+ Found item [dfMountedOn='/vol/vol7/'] index: 13 [from value]
+ Found item [dfMountedOn='/vol/vol7/.snapshot'] index: 14 [from value]
+ Found item [dfMountedOn='/vol/volbackup/'] index: 15 [from value]
+ Found item [dfMountedOn='/vol/volbackup/.snapshot'] index: 16 [from value]
+ Found item [dfMountedOn='/vol/volmail/'] index: 17 [from value]
+ Found item [dfMountedOn='/vol/volmail/.snapshot'] index: 18 [from value]
+ Found item [dfMountedOn='/vol/voltest/'] index: 19 [from value]
+ Found item [dfMountedOn='/vol/voltest/.snapshot'] index: 20 [from value]
+ Found item [dfMountedOn='/vol/volzzz/'] index: 21 [from value]
+ Found item [dfMountedOn='/vol/volzzz/.snapshot'] index: 22 [from value]


Obviously, other templates could be made for CIFS or NFS (other OID trees) or other stuff (snapshot related things etc)

Kind regards,

Renaat


Attachments:
netapp-volumes.xml [2.94 KiB]
Downloaded 3085 times
Top
 Profile  
 
 Post subject: missing a "t" in the XML file
PostPosted: Wed May 03, 2006 5:26 pm 
Offline

Joined: Wed May 03, 2006 5:25 pm
Posts: 3
the dfKBytesTotal is missing a "t" in the output


Top
 Profile  
 
 Post subject:
PostPosted: Wed Dec 26, 2007 3:37 pm 
Offline
Cacti User
User avatar

Joined: Tue Nov 25, 2003 3:58 pm
Posts: 164
Location: Buffalo, NY
I'm getting the following error for the NetApp Volumes:

Error in data query.

Notice: Undefined variable: column_counter in /usr/local/apache/htdocs/cacti/graphs_new.php on line 876

Thoughts?

Cacti 8.7a (from RPM)
CentOS release 4.4
PHP 4.4.7 (cli)
mysql Ver 12.22 Distrib 4.0.20


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jan 18, 2008 2:43 am 
Offline

Joined: Fri Nov 09, 2007 7:52 pm
Posts: 8
MagnaChef wrote:
I'm getting the following error for the NetApp Volumes:

Error in data query.

Notice: Undefined variable: column_counter in /usr/local/apache/htdocs/cacti/graphs_new.php on line 876

Thoughts?


Check the location of your netapp-volumes.xml file. It's supposed to be in resource/snmp_queries.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Feb 15, 2008 3:16 am 
Offline
Cacti Guru User
User avatar

Joined: Fri Sep 19, 2003 8:36 am
Posts: 2326
Location: Sophia-Antipolis, France
Moving to scripts/templates.

_________________

HOWTOs :
Templates :


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC - 5 hours


Who is online

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