Sie sind auf Seite 1von 2

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)

Das könnte Ihnen auch gefallen