Search Exchange

Search All Sites

Nagios Live Webinars

Let our experts show you how Nagios can help your organization.

Contact Us

Phone: 1-888-NAGIOS-1
Email: sales@nagios.com

Login

Remember Me

IBM Storwize V7000 check_ibm_v7000_svc

Current Version
1.1
Last Release Date
2013-01-09
Compatible With
  • Nagios 3.x
Website
License
GPL
Hits
54740
Files:
FileDescription
check_ibm_v7000_svc.plVersion 1.1
check_ibm_v7000_svc_v1_2.plVersion 1.2

Help Support Ethan Galstad's New Project:

Help Support Ethan

A Message From The Founder...

As the founder of Nagios, I'm asking for your help in a cause that's dear to my heart.

I'm launching a new project to help better the world by providing the information, ideas, and inspiration that I believe can improve the lives of people everywhere.

I know you're busy managing networks, but I would appreciate it if you would consider liking my Facebook page and showing your support for the content and messages I produce by sharing them with your friends and family.

You can learn more about my project by visiting ethangalstad.me/nagios. Thank you for your time. I wish you all the best in your endeavors, whatever they may be.

- Ethan

Checks several states of IBM V7000 SVC via perl module IBM::SVC (enclosures, drives, arrays, batteries, psu's canisters, enclosureslots, vdisks and consistency group states). you may exclude some objects for vdisk and consistency group checks.
check_ibm_v7000_svc Nagios check

You need to configure a ssh key without passphrase for logins to your V7000 storage array. Also IBM's SVC.pm Perl Module is required and available here:

https://www14.software.ibm.com/webapp/iwm/web/preLogin.do?source=AW-0NK
http://www.alphaworks.ibm.com/tech/svctools

Usage: perl check_ibm_v7000_svc.pl -cluster=[IP or hostname] -check=[check] [ -exclude=[listofitems] ]

see "check_ibm_v7000_svc.pl -h" for more info
Reviews (3)
Hello,
I set up the supervision of 3 IBM V7000 (gen1 and gen2) for the Mulhouse hospital.
Everything works perfectly except for the exclusion of multiple hosts.

For example :

bash-4.1$ ./check_ibm_storwize.pl -cluster=x.1.26.x -check=lshost -user=supervision
CRITICAL: SRVS3 (offline)

bash-4.1$ ./check_ibm_storwize.pl -cluster=x.1.26.x -check=lshost -user=supervision -exclude=SRVS3
OK: all host online


bash-4.1$ ./check_ibm_storwize.pl -cluster=x.2.26.x -check=lshost -user=supervision
CRITICAL: SRAPPLIDIS-H4 (offline) SRIMAGEVAULT (offline) SRAPPLIDIS-H3 (offline) SRAPPLIDIS-H5 (offline) SRVS3 (offline) SRAPPLIDIS-H1 (offline) SRSCCM-CAS (offline) SRSCCM-H1 (offline) SRDC5 (offline)

bash-4.1$ ./check_ibm_storwize.pl -cluster=x.2.26.x -check=lshost exclude=SRAPPLIDIS-H4,SRIMAGEVAULT,SRAPPLIDIS-H3,SRAPPLIDIS-H5,SRVS3,SRAPPLIDIS-H1,SRSCCM-CAS,SRSCCM-H1,SRDC5 -user=supervision
CRITICAL: SRAPPLIDIS-H4 (offline) SRIMAGEVAULT (offline) SRAPPLIDIS-H3 (offline) SRAPPLIDIS-H5 (offline) SRVS3 (offline) SRAPPLIDIS-H1 (offline) SRSCCM-CAS (offline) SRSCCM-H1 (offline) SRDC5 (offline)

The separator is normally a comma.
Despite everything I do not get the expected result.
Our Storwize are in version 7.8.1.4.

Who could help us ?
bymarchiom, September 7, 2016
This plugin works great for checking the health of an IBM v7000. The suggestions by daniel_cioruta are definitely needed to increase the accuracy of the lsdrive check. Once that change is made, the plugin reports back the correct status if there is a failed drive.
bydaniel_cioruta, June 6, 2016
2 of 2 people found this review helpful
lsdrive check will never notify a degraded or offline disk.

You should replace the commented lines with the next line following the commented line:

my %lsdrive_states = (
#'' => 'OK',
'online' => 'OK',
'offline' => 'CRITICAL',
'degraded' => 'CRITICAL', );


} elsif ($check eq "lsdrive") {
# * online: blank
# * degraded: populated if associated with an error
# * offline: must be populated
$svc_command = "lsdrive";
$item = "mdisk member";
$item_name = "id";
#$item_state = "error_sequence_number";
$item_state = "status";
&itemcheck(\%lsdrive_states)