Cacti (home)ForumsRepositoryDocumentation
Cacti: offical forums and support  

 FAQFAQ   SearchSearch   MemberlistMemberlist    RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in    


NetApp R100 Statistics

 
Post new topic   Reply to topic    Cacti Forum Index -> Scripts and Templates
Author Message
renaatski



Joined: 27 Apr 2004
Posts: 22

PostPosted: Mon Sep 13, 2004 9:29 am    Post subject: NetApp R100 Statistics Reply with quote

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



netapp-volumes.xml
 Description:

Download
 Filename:  netapp-volumes.xml
 Filesize:  2.94 KB
 Downloaded:  1678 Time(s)

Back to top
kschlegelmilch



Joined: 03 May 2006
Posts: 3

PostPosted: Wed May 03, 2006 5:26 pm    Post subject: missing a "t" in the XML file Reply with quote

the dfKBytesTotal is missing a "t" in the output
Back to top
MagnaChef
Cacti User


Joined: 25 Nov 2003
Posts: 148
Location: Buffalo, NY

PostPosted: Wed Dec 26, 2007 3:37 pm    Post subject: Reply with quote

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
Back to top
aboling



Joined: 09 Nov 2007
Posts: 8

PostPosted: Fri Jan 18, 2008 2:43 am    Post subject: Reply with quote

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.
Back to top
fmangeant
Cacti Guru User


Joined: 19 Sep 2003
Posts: 2325
Location: Sophia-Antipolis, France

PostPosted: Fri Feb 15, 2008 3:16 am    Post subject: Reply with quote

Moving to scripts/templates.
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Cacti Forum Index -> Scripts and Templates All times are GMT - 5 Hours
Page 1 of 1

 



Powered by phpBB © 2001, 2005 phpBB Group