Home Directory Plugins Clustering and High-Availability Check Oracle Grid-Infrastructure or Oracle Restart

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

Directory Tree

Check Oracle Grid-Infrastructure or Oracle Restart

Current Version
0.1
Last Release Date
2013-01-19
Compatible With
  • Nagios 3.x
Owner
License
GPL
Hits
50408
Files:
FileDescription
check_gridinfraPlugin for Nagios-Check
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!
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!
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)
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.