Search Exchange
Search All Sites
Nagios Live Webinars
Let our experts show you how Nagios can help your organization.Login
Directory Tree
Check Oracle Grid-Infrastructure or Oracle Restart
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!
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
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)
byEMAn8, December 30, 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.
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.