HDS

check_hds_ams.pl

Description:

Check status of HDS AMS series storage using SNMP v1 SNMP GET request

Current Version

1.0

Last Release Date

2010-06-16

Compatible With

  • Nagios 3.x

Project Files
Project Notes
Plugin let you a possibility to get HDS AMS storage status using active nagios plugin checks. Requires 1. Net::SNMP module installed 2. SNMP agent configured on the storage system. Tested with HDS AMS500, AMS2500 If you prefer using passive checks by handling snmp traps, you better use trap handling because it is faster and get you status change immediately not waiting for plugin schedule to activate check process.
Reviews (3) Add a Review
Works with 2100 models too
by hardcess, February 28, 2019

Works with 2100 models too



Does what it should
by Napsty, October 31, 2011

Good plugin to quickly check the AMS for hardware problems. Of course more output information would be nice, but I know that HDS' SNMP information is rare. Thanks also to user car, which fixed the perl warnings with his diff.



Looks good so far
by car, December 31, 2010

This also works on our AMS2300s. Thanks for saving me some valuable time and effort. I had a couple of minor troubles, hopefully they'll help someone. Firstly, I had trouble because I assumed that our AMS' community string would be "public". D'oh. I found it under Storage Nav -> Arrays -> (array) -> Settings -> SNMP Agent ->Environment Settings Secondly, the script suffers a runtime failure when it attempts to report a failure: Use of uninitialized value in string eq at check_hds_ams line 191. which, unless I've misunderstood, appears to be a broken test in a home-rolled join() function. The following seems to be a fix: --- /tmp/check_hds_ams.pl 2010-12-14 14:39:30.000000000 +1300 +++ check_hds_ams 2010-12-14 19:11:29.000000000 +1300 @@ -186,9 +186,6 @@ } } # separate messages by commas to be human friendly - for my $err (@errs) { - $result .= $err; - $result .= ", " unless $errs[-1] eq $_; - } + $result .= join ", ", @errs; return $result; }



Add a Review

You must be logged in to submit a review.

Thank you for your review!

Your review has been submitted and is pending approval.

Recommend

To:


From:


Thank you for your recommendation!

Your recommendation has been sent.

Project Stats
Rating
4.2 (5)
Favorites
0
Views
96,307