Search Exchange
Search All Sites
Nagios Live Webinars
Let our experts show you how Nagios can help your organization.Login
Directory Tree
check_asm
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!
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)
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)
bymkorzen, August 1, 2014
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).
https://github.com/maciejkorzen/misc-perl/blob/532d24b178fa20cbbb7ba4a4fbf756541cfea536/check_asm
(short URL: http://tiny.pl/qsfd6).