How to monitor asm disk

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
Pratapa
Posts: 144
Joined: Tue Oct 01, 2019 1:33 am

How to monitor asm disk

Post 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
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: How to monitor asm disk

Post 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
Pratapa
Posts: 144
Joined: Tue Oct 01, 2019 1:33 am

Re: How to monitor asm disk

Post 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
User avatar
mbellerue
Posts: 1403
Joined: Fri Jul 12, 2019 11:10 am

Re: How to monitor asm disk

Post by mbellerue »

Excellent, I'm glad you were able to get this working! Thank you for posting the solution back here! Closing thread.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked