check_asm

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
junqian1992
Posts: 41
Joined: Wed Nov 15, 2017 4:57 am

check_asm

Post by junqian1992 »

Hi support,
I'm using the check_asm, but when i direct run on the client server is show below result:

[root@XXXXXXX libexec]# ./check_asm --asm_home=/u01/installer/grid --action=dgstate
[CRITICAL] Diskgroup state: (: ERROR:) (invalid: ORA-01017:) (: ) (: ) (Invalid: SP2-0306:) (CONNECT]: Usage:) (logon>: where) (proxy>: ) (Invalid: SP2-0306:) (CONNECT]: Usage:) (logon>: where) (proxy>: ) (unable: SP2-0157:)

what is the problem? any configuration i need to configure?
Regards,
JQ
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: check_asm

Post by tgriep »

I found this in the plugin on how the plugin needs to be ran.
This plug-in needs to be run as ASM binaries owner (usually oracle).

The command you would need to use to run the plugin as the Oracle user is as follows.

Code: Select all

sudo -u oracle ./check_asm --asm_home=/u01/installer/grid --action=dgstate
Try that and let us know if it works.
Be sure to check out our Knowledgebase for helpful articles and solutions!
junqian1992
Posts: 41
Joined: Wed Nov 15, 2017 4:57 am

Re: check_asm

Post by junqian1992 »

Hi tgrip,

Client server :
after i put the sudo -u grid :

[root@xxxxxxxxx libexec]# sudo -u grid ./check_asm --asm_home=/u01/installer/grid --action=dgstate
[OK] Diskgroup state: (DATA: MOUNTED)

in my common.cfg i set
command[check_asm]=sudo -u grid /usr/local/nagios/libexec/check_asm --asm_home=/u01/installer/grid --action=diskstatus

i already enable sudo for nrpe-owner to run this script
nagios ALL=(grid) NOPASSWD: /usr/local/nagios/libexec/check_asm

when i direct run the command:
sudo -u grid /usr/local/nagios/libexec/check_asm --asm_home=/u01/installer/grid --action=diskstatus
sudo: unable to execute /usr/local/nagios/libexec/check_asm: Permission denied
=================================================================================================
nagios server :
but when nagios connect to using check_asm to collect result it show:
root@Nagios:/usr/local/nagios/libexec# /usr/local/nagios/libexec/check_nrpe -H XXXXXXXXX -t 30 -c check_asm
NRPE: Unable to read output
Regards,
JQ
junqian1992
Posts: 41
Joined: Wed Nov 15, 2017 4:57 am

Re: check_asm

Post by junqian1992 »

Hi,
I know the problem already, i set the nagios folder to 755 then the command is running normal now.
Thank for your help .
Regards,
JQ
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: check_asm

Post by tgriep »

Your welcome. If you do not have any related questions, shall I close and lock the port?
Be sure to check out our Knowledgebase for helpful articles and solutions!
junqian1992
Posts: 41
Joined: Wed Nov 15, 2017 4:57 am

Re: check_asm

Post by junqian1992 »

Hi,
Yes, can close the case.

Thank you.
Regards,
JQ
Locked