Page 1 of 1
How-to about Oracle ASM ...
Posted: Fri Oct 12, 2018 10:31 am
by xpertech
I know there're some Oracle ASM on Nagios Exchange,but is there a step-by-step example document about how to configure Oracle ASM plugin?
Re: How-to about Oracle ASM ...
Posted: Fri Oct 12, 2018 11:23 am
by cdienger
Did you have a specific plugin in mind? check_asm has install instructions in the source and examples:
# * 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)
# *
# *******************************************************************************
NRPE install instructions can be found at
https://support.nagios.com/kb/article/n ... rpe-8.html or
https://support.nagios.com/kb/article/n ... e-515.html.
Re: How-to about Oracle ASM ...
Posted: Fri Oct 12, 2018 11:56 am
by xpertech
How about check_ASM_disk_groups ?
It's hard to understand check_asm instructions.
cdienger wrote:Did you have a specific plugin in mind? check_asm has install instructions in the source and examples:
# * 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)
# *
# *******************************************************************************
NRPE install instructions can be found at
https://support.nagios.com/kb/article/n ... rpe-8.html or
https://support.nagios.com/kb/article/n ... e-515.html.
Re: How-to about Oracle ASM ...
Posted: Fri Oct 12, 2018 1:55 pm
by cdienger
We don't have instructions for that one either but it looks like it will also need to be run on the Oracle machine with an agent like NRPE or NCPA. I would break it down into steps - first download and install the script on the Oracle machine and work on getting it to run. After that move on to installing an agent to run it and integrate with XI.