Monitoring Oracle DB's
Posted: Mon Feb 17, 2014 11:09 am
Hi Team,
We are trying to monitoring Oracle DB for a client (Its actually a PoC, we are implementing to showcase the capabilities of Nagios).
Our Nagios Server is built on Cent OS 6.4(64 bit) and I have already installed the below RPM's as suggested in your admin guide.
oracle-instantclient12.1-sqlplus-12.1.0.1.0-1.x86_64.rpm
oracle-instantclient12.1-devel-12.1.0.1.0-1.x86_64.rpm
oracle-instantclient12.1-basic-12.1.0.1.0-1.x86_64.rpm
In Addition to this I have also installed the below packages and the DBD::Oracle (1.70) perl library
libdbi-0.8.3-4.el6.x86_64
libdbi-drivers-0.8.3-5.1.el6.x86_64
perl-DBI-1.609-4.el6.x86_64
I have copied the below variables into the Check_xi_oracleserver commands.
ORACLE_HOME=/usr/lib/oracle/12.1/client64
LD_LIBRARY_PATH=/usr/lib/oracle/12.1/client64/lib
now I have run a test command as below
./check_oracle_health --connect xx.xxx.xxx.xxx --username nagios --password somepwd --mode tnsping
I get the below error message.
CRITICAL - cannot connect to xx.xxx.xxx.xxx. install_driver(Oracle) failed: Can't load '/usr/local/lib64/perl5/auto/DBD/Oracle/Oracle.so' for module DBD::Oracle: libocci.so.12.1: cannot open shared object file: No such file or directory at /usr/lib64/perl5/DynaLoader.pm line 200.
at (eval 19) line 3
Compilation failed in require at (eval 19) line 3.
Perhaps a required shared library or dll isn't installed where expected
at ./check_oracle_health line 4755
the same error message comes even if I try any other mode, please suggest if we have missed on anything. Appreciate a quick reply on this as we need to demo our PoC this weekend.
We are trying to monitoring Oracle DB for a client (Its actually a PoC, we are implementing to showcase the capabilities of Nagios).
Our Nagios Server is built on Cent OS 6.4(64 bit) and I have already installed the below RPM's as suggested in your admin guide.
oracle-instantclient12.1-sqlplus-12.1.0.1.0-1.x86_64.rpm
oracle-instantclient12.1-devel-12.1.0.1.0-1.x86_64.rpm
oracle-instantclient12.1-basic-12.1.0.1.0-1.x86_64.rpm
In Addition to this I have also installed the below packages and the DBD::Oracle (1.70) perl library
libdbi-0.8.3-4.el6.x86_64
libdbi-drivers-0.8.3-5.1.el6.x86_64
perl-DBI-1.609-4.el6.x86_64
I have copied the below variables into the Check_xi_oracleserver commands.
ORACLE_HOME=/usr/lib/oracle/12.1/client64
LD_LIBRARY_PATH=/usr/lib/oracle/12.1/client64/lib
now I have run a test command as below
./check_oracle_health --connect xx.xxx.xxx.xxx --username nagios --password somepwd --mode tnsping
I get the below error message.
CRITICAL - cannot connect to xx.xxx.xxx.xxx. install_driver(Oracle) failed: Can't load '/usr/local/lib64/perl5/auto/DBD/Oracle/Oracle.so' for module DBD::Oracle: libocci.so.12.1: cannot open shared object file: No such file or directory at /usr/lib64/perl5/DynaLoader.pm line 200.
at (eval 19) line 3
Compilation failed in require at (eval 19) line 3.
Perhaps a required shared library or dll isn't installed where expected
at ./check_oracle_health line 4755
the same error message comes even if I try any other mode, please suggest if we have missed on anything. Appreciate a quick reply on this as we need to demo our PoC this weekend.