Used this Nagios script http://www.toms-blog.com/nagios-hp-msa-p2000-status-and-performance-monitor/ along with with some perl in the command line of the Data Input Method to get some performance metrics graphed on Cacti.
Currently graphing the following:
Controller MB/Sec
Volume MB/Sec
Vdisk Write Latency
Vdisk Read Latency
Controller IOPS
Here are the Data Input Methods for each:
Controller MB/Sec – Output Fields = Controller_A Controller_B
/usr/bin/php /usr/share/cacti/scripts/check_p2000_api.php -H 10.10.10.10 -U monitor -P monitor -c controller -S bytes-per-second-numeric | perl -pe 's/;;;//g; s/OK : controller bytes-per-second-numeric - //g; s/.*\| //g; s/ / /g; s/=/:/g'
Volume MB/Sec – Custom Output Fields based on Volume Names
/usr/bin/php /usr/share/cacti/scripts/check_p2000_api.php -H 10.10.10.10 -U monitor -P monitor -c volume -S bytes-per-second-numeric | perl -pe 's/;;;//g; s/OK : volume bytes-per-second-numeric - //g; s/.*\| //g; s/ / /g; s/=/:/g'
Vdisk Write Latency – Custom Output Fields based on Vdisk Names
/usr/bin/php /usr/share/cacti/scripts/check_p2000_api.php -H 10.10.10.10 -U monitor -P monitor -c vdisk-write-latency | perl -pe 's/;;;//g; s/OK : vdisk-write-latency avg-write-rsp-time - D//g; s/.*\| //g; s/ / /g; s/=/:/g'
Vdisk Read Latency – Custom Output Fields based on Vdisk Names
/usr/bin/php /usr/share/cacti/scripts/check_p2000_api.php -H 10.10.10.10 -U monitor -P monitor -c vdisk-read-latency | perl -pe 's/;;;//g; s/OK : vdisk-read-latency avg-read-rsp-time - //g; s/.*\| //g; s/ / /g; s/=/:/g'
Controller IOPS – Output Fields = Controller_A Controller_B
/usr/bin/php /usr/share/cacti/scripts/check_p2000_api.php -H 10.10.10.10 -U monitor -P monitor -c controller | perl -pe 's/;;;//g; s/OK : controller iops - //g; s/.*\| //g; s/ / /g; s/=/:/g'
I’ll see about posting some graph templates later on.