Hi Team,
We are monitoring Oracle RAC database. While monitoring the services, we are getting below error:
CRITICAL - ORA-12154: TNS:could not resolve the connect identifier specified
CRITICAL - cannot connect to RAPRD1. ORA-12154: TNS:could not resolve the connect identifier specified (DBD ERROR: OCIServerAttach)
I am attaching the ORACLE_PATH details and config details here.
Kindly, help us on the same.
CRITICAL - ORA-12154: TNS:could not resolve the connect iden
-
kalyanpabolu
- Posts: 246
- Joined: Fri Jul 03, 2020 4:18 am
CRITICAL - ORA-12154: TNS:could not resolve the connect iden
You do not have the required permissions to view the files attached to this post.
Re: CRITICAL - ORA-12154: TNS:could not resolve the connect
Do you have this file?
If not, run these commands:
Then add these lines to it:
Then go to Configure > Core Config Manager > Commands:
- Edit the check_oracle_tablespace command
- Change the command line to:
- Save
- Apply Configuration and force a check
Code: Select all
/usr/local/nagiosxi/etc/configwizards/oracle/oracleCode: Select all
mkdir -p /usr/local/nagiosxi/etc/configwizards/oracle
touch /usr/local/nagiosxi/etc/configwizards/oracle/oracle
chown -R nagios.nagios /usr/local/nagiosxi/etc/configwizards
chmod 2755 /usr/local/nagiosxi/etc/configwizards/oracle
chmod 0664 /usr/local/nagiosxi/etc/configwizards/oracle/oracleCode: Select all
export LD_LIBRARY_PATH=/u01/app/oracle/product/11.2.0/client_1/lib
export ORACLE_HOME=/u01/app/oracle/product/11.2.0/client_1- Edit the check_oracle_tablespace command
- Change the command line to:
Code: Select all
. /usr/local/nagiosxi/etc/configwizards/oracle/oracle && $USER1$/check_oracle --tablespace $ARG1$ $ARG2$ $ARG3$ $ARG4$ $ARG5$ $ARG6$- Apply Configuration and force a check