Hi All,
I apologize for posting here as this is someone's post, but I am having similar issues. I have executed all the steps as mentioned in the document:
https://assets.nagios.com/downloads/nag ... ios-XI.pdf
Error:
CRITICAL - cannot connect to 142.xx.xxx.xxx:1521/SGRC. install_driver
(Oracle) failed: Can't 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/perl5/
Perhaps the DBD::Oracle perl module hasn't been fully installed,
or perhaps the capitalisation of 'Oracle' isn't right.
Available drivers: DBM, ExampleP, File, Gofer, Proxy, SQLite, Sponge, mysql.
at /usr/local/nagios/libexec/check_oracle_health line 4755
I have also performed the troubleshooting steps provided in the document.
export ORACLE_HOME=/usr/lib/oracle/12.1/client64
export LD_LIBRARY_PATH=$ORACLE_HOME/lib
cpan -i DBD::Oracle
The snapshot of the error message is below (attached the full output from cpan too)
CPAN error:
Warning: No success on command[/usr/bin/perl Makefile.PL INSTALLDIRS=site]
PYTHIAN/DBD-Oracle-1.74.tar.gz
/usr/bin/perl Makefile.PL INSTALLDIRS=site -- NOT OK
Running make test
Make had some problems, won't test
Running make install
Make had some problems, won't install
Nagios XI version: 5.2.5
Instant Client versions used:
Version 12.1.0.2.0
i. oracle-instantclient12.1-basic-12.1.0.2.0-1.x86_64.rpm
ii.oracle-instantclient12.1-sqlplus-12.1.0.2.0-1.x86_64.rpm
iii.oracle-instantclient12.1-devel-12.1.0.2.0-1.x86_64.rpm
Server Details:
uname -a
Linux testserver1100 2.6.32-431.el6.x86_64 #1 SMP Sun Nov 10 22:19:54 EST 2013 x86_64 x86_64 x86_64 GNU/Linux
# cat /etc/*release*
LSB_VERSION=base-4.0-amd64:base-4.0-noarch:core-4.0-amd64:core-4.0-noarch:graphics-4.0-amd64:graphics-4.0-noarch:printing-4.0-amd64:printing-4.0-noarch
cat: /etc/lsb-release.d: Is a directory
Red Hat Enterprise Linux Server release 6.5 (Santiago)
Red Hat Enterprise Linux Server release 6.5 (Santiago)
cpe:/o:redhat:enterprise_linux:6server:ga:server