| Using Cacti to Monitor Hitachi Storage Arrays |
|
|
|
| Written by Vinod Subramaniam |
| Wednesday, 29 October 2008 17:10 |
IntroductionThis article illustrates the use the open source software for Storage Array Performance Monitoring. There are tools for performance monitoring but they are either expensive ( EMC's ECC ), hard to maintain ( HDS Tuning Manager ) or both ( HP's Storage Essentials and Veritas's Command Central ). Most of these software tools are bloated i.e they offer too many metrics out of which the SAN Administrator probably requires less than 5%. The author has implemented a Cacti based replication monitoring solution for a large IT company in San Jose, CA. This solution monitors key HUR ( Hitachi Universal Replicator ) metrics such as Journal Usage, RPO, throughput and also FCIP metrics from Brocade 7500's. About CactiCacti is a complete network graphing solution designed to harness the power of RRDTool's data storage and graphing functionality. Cacti provides a fast poller, advanced graph templating, multiple data acquisition methods, and user management features out of the box. All of this is wrapped in an intuitive, easy to use interface that makes sense for LAN-sized installations up to complex networks with hundreds of devices. Installing and configuring Cacti on AIX 5.3Installing Apache2Download and extract apache2 source from http://httpd.apache.org/download.cgi From within the extracted directory run the commands below $ ./configure -C --enable-so --prefix /usr/local/apache2$ /opt/freeware/bin/gmake $ /opt/freeware/bin/gmake install Installing MySQLDownload the version of MySQL for AIX 5.3 64 bit from http://dev.mysql.com/downloads/mysql/5.1.html#aix and extract to /opt/mysql64
Follow the steps below to configure and startup mysql Installing PHPDownload PHP from http://www.php.net/downloads.php. Extract to a directory and run the configure command below. Finally gmake install from the same directory. Installing RRDToolDownload RRDTool from http://oss.oetiker.ch/rrdtool/download.en.html. Follow the build instructions at http://oss.oetiker.ch/rrdtool/doc/rrdbuild.en.html Installing Performance Export ToolThe key to this solution is the performance export tool which is not really open source and cannot be posted here owing to export restrictions on the encryption algorithms used. Essentially it is a java program which uses RMI to connect to the SVP on the storage array. Since it uses a digitial certificate to connect to the SVP it is governed by export regulations. However if your company owns a HDS storage array i.e USP/USPV/NSC55/USPVM you can find it on the microcode CD in the tools directory. If you own a 9900V then you have to ask your HDS account team to order it for you. Extract the archive to a directory and edit rununix.sh to use JRE 1.4 #! /bin/sh The metrics that you get off the array are specified in command.txt that is in the same directory as rununix.sh. See below for a sample command.txt. Ensure that you create a read only account on the array since the userid and password are in plain text. [root@trapeze]"/usr/local/apache2/htdocs/scripts"# more command.txt group Port shortrange -0001: Now copy the following scripts to the /usr/local/apache2/htdocs/cacti/scripts directory [root@trapeze]"/usr/local/apache2/htdocs/scripts"# more getdata.ksh Edit your crontab as below Installing the Data Gathering ScriptsCopy the two scripts below to the cacti/scripts directory [root@trapeze]"/usr/local/apache2/htdocs/scripts"# more getrecord.ksh perl /usr/local/apache2/htdocs/scripts/getNSC55record.pl $1 $2 my $group = $ARGV[0]; my $BASEDIR = "/usr/local/apache2/htdocs/scripts/".$group."_dat/"; while ( -e "/usr/local/apache2/htdocs/scripts/.cronlock") { if (($group =~ m/PhyCSW/g ) && ($resource =~ m/CLPR/g )) { $file = "PHY_Short_Write_Pending_Rate.csv"; $FILENAME = $BASEDIR.$file; } my $lineheader = `cat $FILENAME | grep $resource`; Import the Data and Graph templatesDownload and import the Data and Graph Templates from here Click the link below to see some examplesSample metrics from a NSC55 |
| Last Updated on Thursday, 30 July 2009 19:31 |


