Clustering and High-Availability

Check Oracle Grid-Infrastructure or Oracle Restart

Description:

This plugins searchs for Resources in crs in State OFFLINE or INTERMEDIATE Resources with STARTMODE=never are ignored. Same applies for ora.ons and ora.gds.
The number of voting-disks is checked. 1, 3 or 5 votedisks are expected!
The plugin is aware of Grid Infrastructure and Oracle Restart. The check for votedisks are skipped in an Oracle Restart Environment!

Current Version

0.1

Last Release Date

2013-01-19

Compatible With

  • Nagios 3.x

License

GPL


Project Files
Project Notes
This plugin need sudo to work with nrpe the nrpe-owner will use the following commands with sudo: sudo-User command CRS_OWNER $CRS_HOME/bin/crsctl CRS_OWNER $CRS_HOME/bin/orabase CRS_OWNER $CRS_HOME/bin/ocrcheck CRS_OWNER $CRS_HOME/bin/ocrconfig we do only a small check of running processes due to crsctl will return a hughe amount of errors when crsd isn't running example sudo-setup for nrpe: Defaults:nrpe !requiretty Cmnd_Alias CRSCTL = /u01/app/11.2.0.3/grid/bin/crsctl Cmnd_Alias ORABASE = /u01/app/11.2.0.3/grid/bin/orabase Cmnd_Alias OCRCHECK = /u01/app/11.2.0.3/grid/bin/ocrcheck Cmnd_Alias OCRCONFIG = /u01/app/11.2.0.3/grid/bin/ocrconfig User_Alias NRPE_ADMIN = nagios, nrpe NRPE_ADMIN ALL = (oracle) NOPASSWD: CRSCTL, ORABASE, OCRCONFIG, OCRCHECK
Reviews (1) Add a Review
Works but has limited options.
by EMAn8, December 31, 2013

The check works but I was hoping it would have options other than just saying "All services are OK" (that is to check various options). I noticed in the case statement for default it is running 3 separate functions but they don't stand alone so one would have to modify the case to do any of the options individually AND modify the functions to provide other information to make them stand alone. Also some comments on the sudo setup: If you're using nagios rather than nrpe as your user running the nrpe plugin you'd have to set the NRPE_ADMIN user accordingly. If you're using a different path than the example you don't have to modify the script but do have to insure that path is in your sudo Cmnd_Alias instead of the example path. You can run the !requiretty for the nagios (or nrpe) user and leave the default for all other users as requiretty.



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 (1)
Favorites
0
Views
50,332