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

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
3546
Files:
FileDescription
check_hascheck_has

Help Support Ethan Galstad's New Project:

Help Support Ethan

A Message From The Founder...

As the founder of Nagios, I'm asking for your help in a cause that's dear to my heart.

I'm launching a new project to help better the world by providing the information, ideas, and inspiration that I believe can improve the lives of people everywhere.

I know you're busy managing networks, but I would appreciate it if you would consider liking my Facebook page and showing your support for the content and messages I produce by sharing them with your friends and family.

You can learn more about my project by visiting ethangalstad.me/nagios. Thank you for your time. I wish you all the best in your endeavors, whatever they may be.

- Ethan

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