Page 1 of 1

Oracle Database error

Posted: Mon Jul 24, 2017 3:05 pm
by sarpione
I have installed nagios xi and I want to check a database in oracle.
For that I will use the plugin "Oracle Serverspace", the database is 64 bits, for that I download the files:
-oracle-instantclient12.2-basic-12.2.0.1.0-1.x86_64.rpm
-oracle-instantclient12.2-devel-12.2.0.1.0-1.x86_64.rpm
-oracle-instantclient12.2-sqlplus-12.2.0.1.0-1.x86_64.rpm
And run oracleinstall.sh as indicated by the tab.
After that I get the following error CRITICAL - can not connect to 10.9.219.111:1521/bevsades. Install_driver (Oracle) failed: Can not locate DBD / Oracle.pm in @INC (@INC contains / usr / local / nagios / libexec / usr / local / lib64 / perl5 / usr / local / share / perl5 / usr / Lib64 / perl5 / vendor_perl / usr / share / perl

But below in the guide says do the following:

Export ORACLE_HOME = <path to your Oracle which was given by the script>
Export LD_LIBRARY_PATH = $ ORACLE_HOME / lib
Cpan -i DBD :: Oracle

But I do not know what route I have to put in export ORACLE_HOME =

*** Following the guide I had to change the path by LD_LIBRARY_PATH = / usr / lib / oracle / 12.2 / client64 / lib ORACLE_HOME = / usr / lib / oracle / 12.2 / client64

Can that be the problem?
From already thank you very much

Re: Oracle Database error

Posted: Mon Jul 24, 2017 3:42 pm
by sarpione
Solved.
Thx

Re: Oracle Database error

Posted: Mon Jul 24, 2017 4:27 pm
by bolson
Closing topic as resolved.

Thank you for using the Nagios Support Forum!