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_asm

Current Version
1.5
Last Release Date
2015-06-09
Compatible With
  • Nagios 3.x
  • Nagios 4.x
Owner
License
GPL
Hits
34175
Files:
FileDescription
check_asmcheck_asm

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 ASM instance (11g and above)
It checks:
a) disk status
b) diskgroup state (mounted/dismounted)
c) ASM alertlog for any ORA- errors occured in last 24 hours
d) diskgroup used space;
you can define warning/critical thresholds per diskgroup
Nagios plug-in for Oracle ASM instance (11g and above)
It checks:
a) disk status
b) diskgroup state (mounted/dismounted)
c) ASM alertlog for any ORA- errors occured in last 24 hours
d) diskgroup used space;
you can define warning/critical thresholds per diskgroup

This plug-in needs to be run as ASM binaries owner (usually oracle).
Configure sudo to work with nrpe-owner.

Run 'check_asm --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_asm

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

command[check_asm_diskstatus]=sudo -u oracle /usr/lib64/nagios/plugins/check_asm --asm_home=$ASM_HOME--action=diskstatus
command[check_asm_dgstate]=sudo -u oracle /usr/lib64/nagios/plugins/check_asm --asm_home=$ASM_HOME- --action=dgstate
command[check_asm_alertlogerror]=sudo -u oracle /usr/lib64/nagios/plugins/check_asm --asm_home=$ASM_HOME- --action=alertlogerror
command[check_asm_usedspace]=sudo -u oracle /usr/lib64/nagios/plugins/check_asm --asm_home=$ASM_HOME- --action=usedspace --threshold DG1=98:99

Sample output:

check_asm --asm_home=/oracle/gridhome --action=diskstatus
[OK] Disk status: OK
check_asm --asm_home=/oracle/gridhome --action=dgstate
[OK] Diskgroup state: (CRS: MOUNTED) (FRA: MOUNTED) (DATA: MOUNTED)
check_asm --asm_home=/oracle/gridhome --action=alertlogerror
[OK] ASM AlertLog Errors: 0
check_asm --asm_home=/oracle/gridhome --action=usedspace --threshold DATA=95:98
[OK] Diskgroup used space: (CRS: 7.94%: OK) (FRA: 1.80%: OK) (DATA: 55.82%: OK)
Reviews (1)
I've added performance data support to this check:
https://github.com/maciejkorzen/misc-perl/blob/532d24b178fa20cbbb7ba4a4fbf756541cfea536/check_asm
(short URL: http://tiny.pl/qsfd6).