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_veritas_sfha.py

Rating
0 votes
Favoured:
0
Current Version
0.3
Last Release Date
2012-08-14
Compatible With
  • Nagios 3.x
License
GPL
Hits
54710
Files:
FileDescription
check_veritas_sfha.pycheck_veritas_sfha.py

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

Nagios check_veritas_sfha.py

Description:
------------
With this little Python script you have the ability to check your Veritas servicegroups and the status of your volumegroups. Please use ./check_veritas_sfha.py -h to get an overview of the needed parameters.
In all cases you need the exact name of the servicegroup which is shown by the output of /opt/VRTS/bin/hastatus -sum and of course you need the exact name of the volumegroup.

Author: Frank Reimer
Version: 0.3
Creation Date: 2012-08-09
--------------------------------------------------

Version History:

2012-08-14: Fixing servicegroup check - removing re.compile for Python compatibility
2012-08-10: Adding check for plexes in volumegroup
2012-08-09: Script creation

README:

If you want to use this script, your Nagios user needs sudo privileges to perform this script. Start visudo and add the following lines at the end of the file:

nagiosuser ALL=(ALL) NOPASSWD:/opt/VRTS/bin/hastatus
nagiosuser ALL=(ALL) NOPASSWD:/sbin/vxprint
nagiosuser ALL=(ALL) NOPASSWD:/path/to/check_veritas_status.py

Tested with the following Python versions:
- 2.4.3
- 2.6.6

Testted with the following OS versions:
- RHEL 6.2 64 Bit
- RHEL 5.7 64 Bit

Tested with the following Veritas SFHA versions:
- 6.0 RP1
- 5.1 SP1 RP2