Home Directory Plugins Hardware Storage Systems SAN and NAS IBM San Volume Controller Check IBM Storwize V7000 Unified / SONAS Health

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

Check IBM Storwize V7000 Unified / SONAS Health

Rating
0 votes
Favoured:
0
Current Version
1.2
Last Release Date
2016-02-10
Compatible With
  • Nagios 3.x
  • Nagios 4.x
Owner
License
MIT
Hits
49624
Files:
FileDescription
check_sonas_health.shcheck_sonas_health.sh

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

Check IBM Storwize V7000 Unified / SONAS Health
This bash script checks health of an IBM Storwize V7000 Unified / SONAS system, using the 'lshealth' CLI command.
It allows for checking health of the system's front-end "FILE" component (both, Storwize V7000 Unified and SONAS), as well as health of the back-end "BLOCK" component (Storwize V7000 Unified, only - does not work with SONAS). The component to check is determined by the '-m' parameter: '-m f' checks health of the FILE component, '-m b' checks health of the BLOCK component.

The actual code is managed in the following GitHub rebository - please use the Issue Tracker to ask questions, report problems or request enhancements.

https://github.com/acch/nagios-plugins

The script requires SSH Public Key Authentication for connecting to the Storwize V7000 Unified / SONAS system. SSH Public Key Authentication needs to be set up first, before running the script. To test your SSH configuration, try to login to Storwize V7000 Unified / SONAS via SSH from the Nagios server as the Nagios user - if this works without prompting you for a password you seem to have properly configured Public Key Authentication. If you get a "Permission denied" error when running the script, the most likely reason for that is Public Key Authentication not being configured correctly for the Nagios user (by default called 'nagios').

It is strongly recommended to create a dedicated read-only Storwize V7000 Unified / SONAS user to be used by this script. This eases problem determination, allows for proper audit tracing and helps avoiding undesired side-effects. Also, it eliminates the risk of script errors having an impact on your actual production environment...

To create a read-only user 'nagios' with password 'secret' on Storwize V7000 Unified / SONAS, run the following commands as the Nagios operating-system user (by default called 'nagios', too):

# ssh admin@[mgmt_ip_address] mkuser nagios -p secret -g Monitor
# ssh admin@[mgmt_ip_address] chuser nagios -k "`cat ~/.ssh/id_rsa.pub`"

Note that you may need to modify the last command to point to the actual location of your SSH public key file used for authentication