How-to about Oracle ASM ...

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
xpertech
Posts: 399
Joined: Thu Sep 01, 2011 9:47 pm

How-to about Oracle ASM ...

Post 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?
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: How-to about Oracle ASM ...

Post 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.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
xpertech
Posts: 399
Joined: Thu Sep 01, 2011 9:47 pm

Re: How-to about Oracle ASM ...

Post 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.
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: How-to about Oracle ASM ...

Post 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.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Locked