Page 1 of 1

How to monitor asm disk

Posted: Fri Dec 27, 2019 1:50 am
by Pratapa
Hi

We have a requirement, we need to set up monitoring asm disk.

asm_pmon_+ASM is the Oracle ASM Instance

We got the below link.

https://exchange.nagios.org/directory/P ... sm/details

We downloaded check_asm plugin

we tried at command prompt.

[root@host1]# ./check_asm --asm_home=/oracle/gridhome --action=diskstatus
sh: /oracle/gridhome/bin/sqlplus: No such file or directory
[OK] Disk status:

I logged in as oracle user and tried to find out the path of ASM_HOME but noting is getting displayed.

[root@host1]# su - oracle
Last login: Fri Dec 27 19:38:25 NZDT 2019 on pts/0
[oracle@host1]
$ echo $ASM_HOME

[oracle@host1]


What is the correct parameters I need to pass.

Where I am doing mistake.

Regards,
Pratapa

Re: How to monitor asm disk

Posted: Fri Dec 27, 2019 12:54 pm
by ssax
This would generally be a question for your oracle admins to answer, we don't know about your system or what it should be (or have ever used asm). Send us the full output of this:

Code: Select all

find / -name sqlplus
That should hopefully list where sqlplus is, if there are more than one you'll need to reach out to your oracle admins/oracle support/development team to determine the proper ones.

Then you'd do:

Code: Select all

./check_asm --asm_home=/full/path/to/sqlplus/minus/bin/dir --action=diskstatus
Are you using this one (with perfdata support added or the one you posted)?

https://github.com/maciejkorzen/misc-pe ... /check_asm

Re: How to monitor asm disk

Posted: Mon Jan 06, 2020 1:14 am
by Pratapa
Thank you, we could able to implement ASM instance montoring.

Following is the one which I used.

command[check_asm_instance]=sudo -u oracle /usr/local/nagios/libexec/check_asm --asm_home=$ORACLE_ASM --action=status

[root@host1 ~]# sudo -u oracle /usr/local/nagios/libexec/check_asm --asm_home=$ORACLE_HOME --action=status
[OK] ASM instance is up

Re: How to monitor asm disk

Posted: Mon Jan 06, 2020 12:05 pm
by mbellerue
Excellent, I'm glad you were able to get this working! Thank you for posting the solution back here! Closing thread.