Unable to install DBD::Oracle

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
jstoddart
Posts: 46
Joined: Fri Apr 11, 2014 5:52 am

Unable to install DBD::Oracle

Post by jstoddart »

Trying to get the Oracle Plugins working on a Nagios XI Server running CentOS 5 but the cpan -i DBD::Oracle returns this:

dbdimp.c: In function ‘fb_ary_cb_alloc’:
dbdimp.c:322: warning: comparison is always false due to limited range of data type
dbdimp.c:323: warning: comparison is always false due to limited range of data type
dbdimp.c:324: warning: comparison is always false due to limited range of data type
dbdimp.c:325: warning: comparison is always false due to limited range of data type
dbdimp.c:326: warning: comparison is always false due to limited range of data type
dbdimp.c: In function ‘fb_ary_alloc’:
dbdimp.c:342: warning: comparison is always false due to limited range of data type
dbdimp.c:343: warning: comparison is always false due to limited range of data type
dbdimp.c:344: warning: comparison is always false due to limited range of data type
dbdimp.c:345: warning: comparison is always false due to limited range of data type
dbdimp.c: In function ‘ora_st_FETCH_attrib’:
dbdimp.c:4355: error: ‘imp_dbh’ undeclared (first use in this function)
dbdimp.c:4355: error: (Each undeclared identifier is reported only once
dbdimp.c:4355: error: for each function it appears in.)
make: *** [dbdimp.o] Error 1
/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

Have attached the full output
You do not have the required permissions to view the files attached to this post.
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Unable to install DBD::Oracle

Post by slansing »

You need to install MAKE first, so that you can compile the module. You should have it already on the XI server, It's curious you are getting this error. What is the output of:

Code: Select all

yum list installed | grep make
jstoddart
Posts: 46
Joined: Fri Apr 11, 2014 5:52 am

Re: Unable to install DBD::Oracle

Post by jstoddart »

[:main.Centos5_641 ~]# yum list installed | grep make
automake.noarch 1.9.6-2.1 installed
automake14.noarch 1.4p6-13 installed
automake15.noarch 1.5-16 installed
automake16.noarch 1.6.3-8 installed
automake17.noarch 1.7.9-7 installed
imake.x86_64 1.0.2-3 installed
make.x86_64 1:3.81-3.el5 installed
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Unable to install DBD::Oracle

Post by slansing »

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

Code: Select all

cat /proc/version

Code: Select all

echo $ORACLE_HOME
echo $LD_LIBRARY_PATH
jstoddart
Posts: 46
Joined: Fri Apr 11, 2014 5:52 am

Re: Unable to install DBD::Oracle

Post by jstoddart »

Linux version 2.6.18.8-xenU (root@applogicbuild64) (gcc version 4.1.1 20070105 (Red Hat 4.1.1-52)) #1 SMP Wed Feb 3 11:28:48 PST 2010
[KANA-LON-NAGIOSX1:main.Centos5_641 ~]# echo $ORACLE_HOME
/usr/lib/oracle/11.2/client64
[KANA-LON-NAGIOSX1:main.Centos5_641 ~]# echo $LD_LIBRARY_PATH
/usr/lib/oracle/11.2/client64/lib/
[KANA-LON-NAGIOSX1:main.Centos5_641 ~]#
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Unable to install DBD::Oracle

Post by slansing »

Sorry, I should have had you run this as well:

Code: Select all

lscpu | grep Architecture

Code: Select all

ll /usr/lib/oracle/11.2/
I just wanted to verify that you had the correct env variables and paths for your architecture.
jstoddart
Posts: 46
Joined: Fri Apr 11, 2014 5:52 am

Re: Unable to install DBD::Oracle

Post by jstoddart »

No problem.

lscpu does not exist on the server?

[KANA-LON-NAGIOSX1:main.Centos5_641 ~]# ll /usr/lib/oracle/11.2/
total 4.0K
drwxr-xr-x 4 root root 4.0K Apr 23 10:33 client64/
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Unable to install DBD::Oracle

Post by tmcdonald »

Odd that lscpu is not listed. Try this:

Code: Select all

cat /proc/version
Former Nagios employee
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Unable to install DBD::Oracle

Post by scottwilkerson »

I believe there was a bug in CPAN's DBD::Oracle
https://github.com/pythian/DBD-Oracle/issues/14

Not 100% sure, but it looks like it may have just been fixed based on the above thread. Can you try the install again to see if it works correctly for you now?
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
jstoddart
Posts: 46
Joined: Fri Apr 11, 2014 5:52 am

Re: Unable to install DBD::Oracle

Post by jstoddart »

Ok will try:

cat /proc/version
Linux version 2.6.18.8-xenU (root@applogicbuild64) (gcc version 4.1.1 20070105 (Red Hat 4.1.1-52)) #1 SMP Wed Feb 3 11:28:48 PST 2010
Locked