Hitachi HUS/AMS SAN Storage Monitoring

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

Moderators: Developers, Moderators

Post Reply
Hanseat
Posts: 17
Joined: Thu Sep 27, 2012 5:24 am

Hitachi HUS/AMS SAN Storage Monitoring

Post by Hanseat »

Hi there,

based on some existing templates and scripts for monitoring Hitachi SAN devices I managed to get
it working for my needs and maybe some other people can benefit as well.
This is working for a Hitachi HUS130 using their SNM2CLI Linux binaries which collects
perfomance data and a perl script making it "cacti-readable".

First, you need to get SNM2CLI working, specifically the "auperform" binary. Setting
the binaries up is a bit tricky, easiest way for me was to use the suggested path oth /usr/stonavm
and export the variables accordingly (it´s documented). Once you can run the binaries, add your
SAN like this: http://www.storit-blog.com/2010/07/31/h ... -part-one/.
Get a read-only user and try to run auperform, the program, that does export perfomance data
about your SAN, ie

Code: Select all

/usr/stonavm/auperform -unit HUSName -auto 5 -count 288 -pfmstatis -path /tmp/hitachi_stats/
.
If you get perfomance data in form of text-files every 5 minutes then that part is working.
For our setup we use a different machine that collects the data so we used SSHFS to connect /tmp/hitachi_stats with our
cacti server. The shell-script that is running does run auperform with "expect" because you have to enter username and password.

Next is to get cacti to grab the output from auperfom and slice it into readable chunks. That´s been done via
the 2 perl scripts you put into the scripts directory. Import Cacti templates and you should be ready to query and
poll your SAN for IO, Cache, CPU, Transfer Rates and Cache Misses. Maybe more once i got the time. Basically all the
information that is in the output of auperfom.

Pictures say more than lots of words, have fun!
Attachments
TransferRate.JPG
TransferRate.JPG (45.8 KiB) Viewed 2833 times
IOPS.JPG
IOPS.JPG (47.08 KiB) Viewed 2833 times
CPU-Controller.JPG
CPU-Controller.JPG (46.49 KiB) Viewed 2833 times
CacheMisses.JPG
CacheMisses.JPG (44.95 KiB) Viewed 2833 times
Cache-Controller.JPG
Cache-Controller.JPG (49.62 KiB) Viewed 2833 times
Hanseat
Posts: 17
Joined: Thu Sep 27, 2012 5:24 am

Re: Hitachi HUS/AMS SAN Storage Monitoring

Post by Hanseat »

And here´s dem scripts and templates.
Attachments
HUS-Cacti.zip
(14.13 KiB) Downloaded 492 times
forzaKGB
Posts: 2
Joined: Tue Dec 09, 2014 4:24 am

Re: Hitachi HUS/AMS SAN Storage Monitoring

Post by forzaKGB »

Hi and thank you for these scripts

I am about to try these scripts but would like to have one graph showing all parity groups, see my example graph that we have for our VSP systems.

What I would like are these graphs for PG and LUN:
[*] Busy Rate
[*] Response time
[*] IOPS
[*] Transfer Rate

I am not quite sure how to do this, I know HDS storage well but not all that talanted in Cacti.
Attachments
Graph example from our VSP systems that show what I try to achieve for both PG and LUN graphs.
Graph example from our VSP systems that show what I try to achieve for both PG and LUN graphs.
PG Graph example.PNG (246.07 KiB) Viewed 2592 times
forzaKGB
Posts: 2
Joined: Tue Dec 09, 2014 4:24 am

Re: Hitachi HUS/AMS SAN Storage Monitoring

Post by forzaKGB »

Hi again

Having run the auperform to collect all information the file was signiticantly larger but I think it contains what I want. Now I would like to get this into the rrd-file. Is it possible to have a script update the datapoints instead of the cacti poller (as I stated before, I do not know Cacti very well)?
My thought was to hava a script monitor the folder and run the perl-script to create a new text-file and import it into the rrd as soon as a new pfm file is created. Perhaps there is a neater way to do this in Cacti?

Another thing is we have about 30 AMS/HUS systems that we would like to monitor so a way to automate the creation of graphs be nice, if I get this working I will post my solution here.
Post Reply

Who is online

Users browsing this forum: No registered users and 5 guests