Clustering and High-Availability

Red Hat Cluster Suite Check

Description:

A python script to check the status of a RH cluster and a named service.

Current Version

Last Release Date

June 24, 2009

Compatible With


Nagios CSP

Meet The New Nagios Core Services Platform

Built on over 25 years of monitoring experience, the Nagios Core Services Platform provides insightful monitoring dashboards, time-saving monitoring wizards, and unmatched ease of use. Use it for free indefinitely.

Monitoring Made Magically Better

  • Nagios Core on Overdrive
  • Powerful Monitoring Dashboards
  • Time-Saving Configuration Wizards
  • Open Source Powered Monitoring On Steroids
  • And So Much More!
Project Files
Project Notes
This is the base of a script I threw together to check the status of a RH cluster using the XML output from clustat. It currently support two options: -s, --service=serviceName -c, --cluster To check the overall status of the cluster use the "-c" option which currently checks that cluster status is "Quorate" and also checks the local status of the node as well as checking if rgmanager is running. To check the state of a service use the "-s serviceName" option. This will check that the service is in a "started" state on any node. Don't use the long name displayed by clustat (ex: service:NFS) instead use the short name (ex: NFS). Please feel free to update - this is my first python script... so I'm sure it's very rough around the edges.
Reviews (1) Add a Review
Local node fix
by vrelease, February 28, 2013
Instead of using gethostname():

hostname = socket.gethostname()

to identify a local node and check its status
if node.attributes['name'].value == hostname:

is better use directly:
if node.attributes['local'].value == "1":
Helpful? Yes  No 
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
3 (2)
Favorites
0
Views
102,918