error"TNS:listener was not given the SERVICE_NAME"
Posted: Wed Apr 27, 2016 6:58 am
Moderator Edit: This thread has been split from another - https://support.nagios.com/forum/viewto ... f=6&t=9482
In the future, please create a new thread and link to the old one instead of adding on.
Hi Guys, sorry to write on this old thread but i'm having the same issue:
CRITICAL - cannot connect to IP:1521/ORCL. ORA-12514: TNS:listener does not currently know of service requested in connect descriptor (DBD ERROR: OCIServerAttach)
Now , i'm running a centos build with NagiosXI , i've configured the oracleclient on my Nagios server, i had some issues on cpan installation. It was exaclty like in the https://assets.nagios.com/downloads/nag ... ios-XI.pdf, more exactly my export were as bellow:
I've manage to fix the issue by pointing the export to oracle home like:
This allowed the cpan perl module to be installed, and i when from:
i'm pretty sure i can connect to that DB cause i tryied directly from splus, like:
My oracle commands in nagiosxi are :
Any help is more than welcome, does anyone know why the service checks for oracle won't work for me?
many thanks
Cristi
In the future, please create a new thread and link to the old one instead of adding on.
Hi Guys, sorry to write on this old thread but i'm having the same issue:
CRITICAL - cannot connect to IP:1521/ORCL. ORA-12514: TNS:listener does not currently know of service requested in connect descriptor (DBD ERROR: OCIServerAttach)
Now , i'm running a centos build with NagiosXI , i've configured the oracleclient on my Nagios server, i had some issues on cpan installation. It was exaclty like in the https://assets.nagios.com/downloads/nag ... ios-XI.pdf, more exactly my export were as bellow:
Code: Select all
export ORACLE_HOME=/usr/lib/oracle/12.1/client64
LD_LIBRARY_PATH=/usr/lib/oracle/12.1/client64/lib/Code: Select all
export ORACLE_HOME=/usr/lib/oracle/12.1/client64Code: Select all
CRITICAL - cannot connect to IP:1521. install_driver(Oracle) failed: Can't locate DBD/Oracle.pm in @INC (@INC
contains: /usr/local/nagios/libexec /usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl
to
CRITICAL - cannot connect to IP:1521/ORCL. ORA-12514: TNS:listener does not currently know of service requested in connect descriptor (DBD ERROR: OCIServerAttach)Code: Select all
sqlplus "user/pass@(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(Host=IP)(Port=1521))(CONNECT_DATA=(SID=sid)))"Code: Select all
check_xi_oraclequery
/usr/bin/env LD_LIBRARY_PATH=/usr/lib/oracle/12.1/client64/lib ORACLE_HOME=/usr/lib/oracle/12.1/client64/bin $USER1$/check_oracle_health $ARG1$
check_xi_oracleserverspace
/usr/bin/env LD_LIBRARY_PATH=/usr/lib/oracle/12.1/client64/lib ORACLE_HOME=/usr/lib/oracle/12.1/client64/bin $USER1$/check_oracle_health $ARG1$
check_xi_oracletablespace
/usr/bin/env LD_LIBRARY_PATH=/usr/lib/oracle/12.1/client64/lib ORACLE_HOME=/usr/lib/oracle/12.1/client64/bin $USER1$/check_oracle_health $ARG1$
many thanks
Cristi