NetApp R100 Statistics

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

Moderators: Moderators, Developers

Post Reply
Author
Message
renaatski
Posts: 24
Joined: Tue Apr 27, 2004 4:39 am

NetApp R100 Statistics

#1 Post by renaatski » Mon Sep 13, 2004 9:29 am

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

kschlegelmilch
Posts: 3
Joined: Wed May 03, 2006 5:25 pm

missing a "t" in the XML file

#2 Post by kschlegelmilch » Wed May 03, 2006 5:26 pm

the dfKBytesTotal is missing a "t" in the output

User avatar
MagnaChef
Cacti User
Posts: 164
Joined: Tue Nov 25, 2003 3:58 pm
Location: Buffalo, NY
Contact:

#3 Post by MagnaChef » Wed Dec 26, 2007 3:37 pm

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

aboling
Posts: 8
Joined: Fri Nov 09, 2007 7:52 pm

#4 Post by aboling » Fri Jan 18, 2008 2:43 am

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.

User avatar
fmangeant
Cacti Guru User
Posts: 2326
Joined: Fri Sep 19, 2003 8:36 am
Location: Sophia-Antipolis, France
Contact:

#5 Post by fmangeant » Fri Feb 15, 2008 3:16 am

Moving to scripts/templates.
[size=84]
[color=green]HOWTOs[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15353]Install and configure the Net-SNMP agent for Unix[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=26151]Install and configure the Net-SNMP agent for Windows[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=28175]Graph multiple servers using an SNMP proxy[/url][/list]
[color=green]Templates[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15412]Multiple CPU usage for Linux[/url]
[*][url=http://forums.cacti.net/viewtopic.php?p=125152]Memory & swap usage for Unix[/url][/list][/size]

Post Reply