Oracle - Nagios XI 2014

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
lcontreras
Posts: 48
Joined: Thu Sep 13, 2012 7:15 pm

Oracle - Nagios XI 2014

Post 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
You do not have the required permissions to view the files attached to this post.
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Oracle - Nagios XI 2014

Post 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"
Former Nagios employee
lcontreras
Posts: 48
Joined: Thu Sep 13, 2012 7:15 pm

Re: Oracle - Nagios XI 2014

Post 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.
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Oracle - Nagios XI 2014

Post 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. :)
lcontreras
Posts: 48
Joined: Thu Sep 13, 2012 7:15 pm

Re: Oracle - Nagios XI 2014

Post by lcontreras »

I think there is a problem with CentOS 6.4 32 bits and DBD::Oracle perl module
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Oracle - Nagios XI 2014

Post 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
lcontreras
Posts: 48
Joined: Thu Sep 13, 2012 7:15 pm

Re: Oracle - Nagios XI 2014

Post 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 (mockbuild@c6b8.bsys.dev.centos.org) (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
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Oracle - Nagios XI 2014

Post 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.
Locked