Host template for Network Appliance storage arrays and more!

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

Moderators: Developers, Moderators

xian_yangyq
Posts: 16
Joined: Sun Apr 09, 2006 9:29 pm

Re: Some others scripts for Network Appliances

Post by xian_yangyq »

Hi aboyz,

i have cacti version 0.8.6h, i need monitor netapp qtree, the netapp version is 7.1 now i import XML version 7g file to cacti, create host in cacti runing php /opt/cacti/poller.php have Reason: (noSuchName) There is no such variable name in this MIB error, the qtree OID is 1.3.6.1.4.1.789.1.4.5.1.5, i don't is why, please help me.

thanks
xian_yangyq
Posts: 16
Joined: Sun Apr 09, 2006 9:29 pm

Post by xian_yangyq »

Hi jabbasi,

Now i use cacti monitor Netapp qtree, the netapp version is v7.1. i already import netapp qtree v2 templates to cacti, but have some problems, i can find all qtree for netapp but can not Created graph for qtree, i change Data Queries for NetApp - QTrees file "netapp-qtrees-v2.xml" del line "<oid_index_parse>OID/REGEXP:.*\.([0-9]{1,3}\.[0-9]{1,3})$</oid_index_parse>" can find finite qtree and create Created graph is OK, i don't know is why? need you help.

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

Post by renaatski »

Hi all,

Because of all the separate work being done, I decided to combine all of this into one Host template, and have all of this stuff in one package. Also I think it's key to have the OID's in the export, as they weren't there for the previous files posted in this topic. The field was empty every time.

It's actually good to see that my initial work for the volumes data query is working out for other people too (see http://forums.cacti.net/viewtopic.php?t=4785&highlight= )

This attached host template and it's embedded graph/data/host templates worked fine for my NearStore R100's running OnTAP 6.5.6

______________________________________
Graph Templates:
1) NetApp - Cache Age
2) Netapp - CIFS Ops
3) NetApp - CPU % Busy (averaged)
4) NetApp - CPU Interrupts
5) NetApp - CPU Usage (last value, can be inaccurate)
6) NetApp - NFS Ops

Associated Data Queries
1) NetApp - Volume Stats
2) SNMP - Interface Statistics
______________________________________

You obviously still have to copy the netapp_volumes.xml first in <cacti_install>/resource/snmp_queries

Kind regards,

Renaat
Attachments
network_appliance_cacti.zip
(108.79 KiB) Downloaded 2085 times
bwise
Posts: 1
Joined: Thu Mar 15, 2007 8:04 pm

First Implimentation Success Thank you

Post by bwise »

I just wanted to come back and say thanks I am collecting stats on all 15 of my filers now

./B
daytonjones
Posts: 1
Joined: Wed May 09, 2007 6:28 pm

template/script for graphing IOPs?

Post by daytonjones »

I've got NFS/CIFS Ops being charted as well as CPU and vol stats... but how can I graph the IOPs of my filers?
Laffer
Posts: 14
Joined: Fri Aug 24, 2007 8:47 am

Post by Laffer »

I have negative Values on some OID's

hsnm006:/srv/www/htdocs/cacti/log # snmpget -v1 -c public -m ALL hsfs000 .1.3.6.1.4.1.789.1.5.4.1.3.11
NETWORK-APPLIANCE-MIB::dfKBytesTotal.11 = INTEGER: -1803631392

Any suggestions???
Laffer
Posts: 14
Joined: Fri Aug 24, 2007 8:47 am

Post by Laffer »

Laffer wrote:I have negative Values on some OID's

hsnm006:/srv/www/htdocs/cacti/log # snmpget -v1 -c public -m ALL hsfs000 .1.3.6.1.4.1.789.1.5.4.1.3.11
NETWORK-APPLIANCE-MIB::dfKBytesTotal.11 = INTEGER: -1803631392

Any suggestions???
Maybe more than 2 TB? How to fix the Value?
Laffer
Posts: 14
Joined: Fri Aug 24, 2007 8:47 am

Post by Laffer »

This information can be found in the MIB:
-- dfKBytesTotal is DEPRECATED;
-- use dfHighTotalKBytes and dfLowTotalKBytes

dfKBytesTotal OBJECT-TYPE
SYNTAX INTEGER
ACCESS read-only
STATUS mandatory
DESCRIPTION
"The total capacity in KBytes for the
referenced file system."
::= { dfEntry 3 }

-- dfKBytesUsed is DEPRECATED;
-- use dfHighUsedKBytes and dfLowUsedKBytes

dfKBytesUsed OBJECT-TYPE
SYNTAX INTEGER
ACCESS read-only
STATUS mandatory
DESCRIPTION
"The total disk space in KBytes that is in use
on the referenced file system."
Has anyone done this with the 64 Bit Counters?
Laffer
Posts: 14
Joined: Fri Aug 24, 2007 8:47 am

Post by Laffer »

I added the 64 Bit Fields to the Query XML File (like in the MIB)

Does anybody have an idea how to proceed next? CDEF Functions?
Attachments
netapp_volumes.xml
Updated Query Script for the High and Low Values of the MIB (two 32 Bit Counters joined to a 64-Bit Counter)
(4.43 KiB) Downloaded 1310 times
Laffer
Posts: 14
Joined: Fri Aug 24, 2007 8:47 am

Post by Laffer »

OK. Even without response I am coming forward a little... So I made a new DATA and GRAPH Template converting SIGNED to UNSIGNED Integer (32 Bit). With this, it works at least for Volumes up to 4 TB instead of 2 TB... Look in this thread: http://forums.cacti.net/viewtopic.php?p=109985#109985
Laffer
Posts: 14
Joined: Fri Aug 24, 2007 8:47 am

Post by Laffer »

Has anybody for THESE Templates here an Template which prints instead of KBYTES the percentage?
pbulteel
Cacti User
Posts: 150
Joined: Fri Sep 05, 2003 9:20 am
Location: London
Contact:

Post by pbulteel »

I am trying to import these into 0.8.7 and I get an error. Error: XML: Cacti version does not exist.

Is there something I need to do to these to get them working on 0.8.7?

thanks,

-P
uname -a
jkstraw
Posts: 34
Joined: Tue Aug 01, 2006 10:24 am
Contact:

Issues with a few graphs

Post by jkstraw »

Everything went fine with the import and I get the majority of the graphs without an issue.

The following graphs are giving the following error:

ERROR: the RRD does not contain an RRA matching the chosen CF

This affects the following graphs:

Cache Age
CIFS Ops
NFS Ops
CPU % Busy

Doing a manual snmpwalk from the cacti host returns the correct value.

Running:
cacti-0.8.7b
cacti-spline-0.8.7a
rrdtool 1.2.23-1
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Re: Issues with a few graphs

Post by gandalf »

jkstraw wrote:ERROR: the RRD does not contain an RRA matching the chosen CF
This pops up, if the Graph template uses a consolidation function (e.g. LAST) but the rrd file does not hold LAST.
Either add the CF LAST (requiring to rebuild the rrd file, loosing all old data) or change the Graph Template not to use the CF that's missing. Replace it e.g. by AVERAGE (but make sure you understand what this gives you)
Reinhard
jkstraw
Posts: 34
Joined: Tue Aug 01, 2006 10:24 am
Contact:

Post by jkstraw »

Thanks gandalf,

That did the trick - I noticed the use of LAST for both Item 1 and 2 in the problem graph templates, I replaced Item 1 with AVERAGE, rebuilt the graphs and am back in business.

Thanks again for the help!
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests