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
How to monitor asm disk
Re: How to monitor asm disk
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:
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:
Are you using this one (with perfdata support added or the one you posted)?
https://github.com/maciejkorzen/misc-pe ... /check_asm
Code: Select all
find / -name sqlplus
Then you'd do:
Code: Select all
./check_asm --asm_home=/full/path/to/sqlplus/minus/bin/dir --action=diskstatus
https://github.com/maciejkorzen/misc-pe ... /check_asm
Re: How to monitor asm disk
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
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
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!
Be sure to check out our Knowledgebase for helpful articles and solutions!