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_asm

Current Version
1.5
Last Release Date
2015-06-09
Compatible With
  • Nagios 3.x
  • Nagios 4.x
Owner
License
GPL
Hits
40864
Files:
FileDescription
check_asmcheck_asm
Network Monitoring Software - Download Nagios XI
Log Management Software - Nagios Log Server - Download
Netflow Analysis Software - Nagios Network Analyzer - Download
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).