Page 1 of 1

Oracle - Nagios XI 2014

Posted: Sat Apr 19, 2014 7:51 pm
by lcontreras
Hi,

I have a fresh installation of the Nagios XI 2014 on CentOS 6.4, until now, all is working great. I´m monitoring a Windows 2003 Server Enterprise Edition, I have in that server:

MySQL Server 5.x
MongoDB 2.x
Oracle 10g Enterprise

I´ve followed the steps in this document http://assets.nagios.com/downloads/nagi ... lation.pdf in order to install Oracle Clients for making Oracle wizard to work. I've download from oracle website :

oracle-instantclient-basic-10.2.0.5-1.i386.rpm
oracle-instantclient-devel-10.2.0.5-1.i386.rpm
oracle-instantclient-sqlplus-10.2.0.5-1.i386.rpm

and from Nagios Website:

oracleinstall.sh

All files are in the same directory /tmp. I ran oracleinstall.sh but it returns me an error at the end, and in Nagios Web Interface, when I configure to monitor an oracle database I got an error. According to the pdf, there is a way to fix, but it doesn't work.

I´ve made modifications to oracle commands in the nagios xi, according to the document. I noticed that when the script oracleinstall.sh finishes, it returns these path

ORACLE_HOME=/usr/lib/oracle//client
LD_LIBRARY_PATH=/usr/lib/oracle//client/lib

If you see, it doesn´t write the oracle version, I mean, it should have numbers between oracle and client, like this as my case:

ORACLE_HOME=/usr/lib/oracle/10.2.0.5/client
LD_LIBRARY_PATH=/usr/lib/oracle/10.2.0.5/client/lib

I follow the steps on how facing with that error, but my linux box returns me this mesage:

make: *** [dbdimp.o] Error 1
PYTHIAN/DBD-Oracle-1.72.tar.gz
/usr/bin/make -- NOT OK
Running make test
Can't test without successful make
Running make install
Make had returned bad status, install seems impossible



Attached you will find a complete log of the oracleinstall.sh

Re: Oracle - Nagios XI 2014

Posted: Mon Apr 21, 2014 12:53 pm
by tmcdonald
Looks like one of the issues is that you are missing the 'make' utility on your linux box. Run the following:

yum groupinstall "Development Tools"

Re: Oracle - Nagios XI 2014

Posted: Tue Apr 22, 2014 12:24 pm
by lcontreras
Hi,

I tried the option of installing development group, and tried to install gaina cpan -i DBD::Oracle, but I still continue with the same errors.

Re: Oracle - Nagios XI 2014

Posted: Tue Apr 22, 2014 1:16 pm
by slansing
What errors did you get through CPAN? Are you not able to get make onto the linux system? It makes it a bit impossible to compile this without it. :)

Re: Oracle - Nagios XI 2014

Posted: Wed Apr 23, 2014 3:43 pm
by lcontreras
I think there is a problem with CentOS 6.4 32 bits and DBD::Oracle perl module

Re: Oracle - Nagios XI 2014

Posted: Thu Apr 24, 2014 9:39 am
by slansing
What is the output of:

What instant client version did you install, and what is the output of:

Code: Select all

yum list installed make

Code: Select all

cat /proc/version

Code: Select all

echo $ORACLE_HOME
echo $LD_LIBRARY_PATH

Re: Oracle - Nagios XI 2014

Posted: Thu Apr 24, 2014 6:28 pm
by lcontreras
Check results

Installed Packages
make.i686 1:3.81-20.el6 @anaconda-CentOS-201303020136.i386/6.4

Linux version 2.6.32-358.el6.i686 ([email protected]) (gcc version 4.4.7 20120313 (Red Hat 4.4.7-3) (GCC) ) #1 SMP Thu Feb 21 21:50:49 UTC 2013

/usr/lib/oracle/10.2.0.5/client
/usr/lib/oracle/10.2.0.5/client/lib

Re: Oracle - Nagios XI 2014

Posted: Fri Apr 25, 2014 10:17 am
by slansing
Yeah I'm not sure why your paths are like that, it is definitely not correct. In your first post you attached the install log twice, however, we need the other half of the install log to check and see what happened at that point.