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_has

Rating
0 votes
Favoured:
0
Current Version
1.0
Last Release Date
2015-06-09
Compatible With
  • Nagios 3.x
  • Nagios 4.x
Owner
License
GPL
Hits
7360
Files:
FileDescription
check_hascheck_has
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!
Nagios plug-in for Oracle High Availability Services OHAS (11g and above)
It checks:
a) ohas stack status
b) OCR registry integrity
c) resource status (ONLINE/OFFLINE); you can define exceptions with exclude option
d) database instance status - if it is running as configured
Nagios plug-in for Oracle High Availability Services OHAS (11g and above)
It checks:
a) ohas stack status
b) OCR registry integrity
c) resource status (ONLINE/OFFLINE); you can define exceptions with exclude option
d) database instance status - if it is running as configured

This plug-in needs to be run as clusterware binaries owner (usually oracle).

Run 'check_has --help' for full description.

Setup:

1. disable 'requiretty' for nrpe-owner in /etc/sudoers
Defaults:nagios !requiretty

2. enable sudo for nrpe-owner to run this script
nagios ALL=(oracle) NOPASSWD: /usr/lib64/nagios/plugins/check_has

3. edit nrpe.cfg and insert required checks with options:

command[check_has_ohasstatus]=sudo -u oracle /usr/lib64/nagios/plugins/check_has --has_home=$CRS_HOME --action=ohasstatus
command[check_has_ocrcheck]=sudo -u oracle /usr/lib64/nagios/plugins/check_has --has_home=$CRS_HOME --action=ocrcheck
command[check_has_resstatus]=sudo -u oracle /usr/lib64/nagios/plugins/check_has --has_home=$CRS_HOME --action=resstatus --exclude=res1.example,res2.example
command[check_has_instancestatus]=sudo -u oracle /usr/lib64/nagios/plugins/check_has --has_home=$CRS_HOME --action=instancestatus

Sample output:

check_has --has_home=/oracle/gridhome --action=ohasstatus
[OK] All OHAS services are up (OHAS version: 11.2.0.4.0)
check_has --has_home=/oracle/gridhome --action=ocrcheck
[OK] Cluster registry integrity check succeeded - (/u01/app/11.2.0/grid11204/cdata/localhost/local.ocr: succeeded)
check_has --has_home=/oracle/gridhome --action=resstatus
[OK] All required resources are up
check_has --has_home=/oracle/gridhome --action=instancestatus
[OK] All required database instances are up