Page 1 of 1

XI Trial Problem Oracle

Posted: Tue Mar 07, 2017 3:01 pm
by ctretelea
Hello,
I try to install Oracle Serverspaces from configuration wizard and a got error that plugin isn't installed or is missing.
Ok, I lunch wizard second time and I found that warning on the top "WARNING: Oracle libraries do not appear to be installed. See the Oracle Plugin Installation instructions for monitoring Oracle"
I Open PDF https://assets.nagios.com/downloads/nag ... ios-XI.pdf
This document it helps you to go and install the plugin, but when I was at second page of PDF doc and I downloaded oracle packages "packages were corrupt" and at the third page when I ran "oracleinstall" script I got an error. I look at output info and I found that the package wasn't installed, so I re-downloaded and ran the script again but I received another error.
"
[root@ip tmp]# ./oracleinstall.sh
#######################################
# #
# This is the installer script #
# for installing Oracle monitoring #
# libraries. #
# #
# Before you continue, be sure that #
# the oracle-basic, sqlplus and devel #
# are in the same directory as this #
# installer script. #
# #
#######################################
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: repo1.ash.innoscale.net
* epel: mirror.cogentco.com
* extras: mirror.teklinks.com
* updates: mirror.cs.pitt.edu
Package glibc-devel-2.17-157.el7_3.1.x86_64 already installed and latest version
Package glibc-utils-2.17-157.el7_3.1.x86_64 already installed and latest version
Package glibc-2.17-157.el7_3.1.x86_64 already installed and latest version
Package glibc-headers-2.17-157.el7_3.1.x86_64 already installed and latest version
Package glibc-static-2.17-157.el7_3.1.x86_64 already installed and latest version
Package glibc-common-2.17-157.el7_3.1.x86_64 already installed and latest version
Package perl-YAML-0.84-5.el7.noarch already installed and latest version
Nothing to do
Loaded plugins: fastestmirror
Examining oracle-instantclient12.2-basic-12.2.0.1.0-1.x86_64.rpm: oracle-instantclient12.2-basic-12.2.0.1.0-1.x86_64
Marking oracle-instantclient12.2-basic-12.2.0.1.0-1.x86_64.rpm to be installed
Examining oracle-instantclient12.2-sqlplus-12.2.0.1.0-1.x86_64.rpm: oracle-instantclient12.2-sqlplus-12.2.0.1.0-1.x86_64
Marking oracle-instantclient12.2-sqlplus-12.2.0.1.0-1.x86_64.rpm to be installed
Examining oracle-instantclient12.2-devel-12.2.0.1.0-1.x86_64.rpm: oracle-instantclient12.2-devel-12.2.0.1.0-1.x86_64
Marking oracle-instantclient12.2-devel-12.2.0.1.0-1.x86_64.rpm to be installed
Resolving Dependencies
--> Running transaction check
---> Package oracle-instantclient12.2-basic.x86_64 0:12.2.0.1.0-1 will be installed
---> Package oracle-instantclient12.2-devel.x86_64 0:12.2.0.1.0-1 will be installed
---> Package oracle-instantclient12.2-sqlplus.x86_64 0:12.2.0.1.0-1 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

==========================================================================================================================================================================================================================================
Package Arch Version Repository Size
==========================================================================================================================================================================================================================================
Installing:
oracle-instantclient12.2-basic x86_64 12.2.0.1.0-1 /oracle-instantclient12.2-basic-12.2.0.1.0-1.x86_64 211 M
oracle-instantclient12.2-devel x86_64 12.2.0.1.0-1 /oracle-instantclient12.2-devel-12.2.0.1.0-1.x86_64 2.0 M
oracle-instantclient12.2-sqlplus x86_64 12.2.0.1.0-1 /oracle-instantclient12.2-sqlplus-12.2.0.1.0-1.x86_64 3.1 M

Transaction Summary
==========================================================================================================================================================================================================================================
Install 3 Packages

Total size: 216 M
Installed size: 216 M
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing : oracle-instantclient12.2-basic-12.2.0.1.0-1.x86_64 1/3
Installing : oracle-instantclient12.2-sqlplus-12.2.0.1.0-1.x86_64 2/3
Installing : oracle-instantclient12.2-devel-12.2.0.1.0-1.x86_64 3/3
Verifying : oracle-instantclient12.2-basic-12.2.0.1.0-1.x86_64 1/3
Verifying : oracle-instantclient12.2-sqlplus-12.2.0.1.0-1.x86_64 2/3
Verifying : oracle-instantclient12.2-devel-12.2.0.1.0-1.x86_64 3/3

Installed:
oracle-instantclient12.2-basic.x86_64 0:12.2.0.1.0-1 oracle-instantclient12.2-devel.x86_64 0:12.2.0.1.0-1 oracle-instantclient12.2-sqlplus.x86_64 0:12.2.0.1.0-1

Complete!
RPM installation was successful!
CPAN may ask you questions. Choose 'No' if it asks if you want to
do a manual install, unless you have special internet settings.
Reading '/root/.cpan/Metadata'
Database was generated on Mon, 06 Mar 2017 22:17:02 GMT
DBI is up to date (1.636).
Reading '/root/.cpan/Metadata'
Database was generated on Mon, 06 Mar 2017 22:17:02 GMT
Running install for module 'DBD::Oracle'
Running make for P/PY/PYTHIAN/DBD-Oracle-1.74.tar.gz
Checksum for /root/.cpan/sources/authors/id/P/PY/PYTHIAN/DBD-Oracle-1.74.tar.gz ok

CPAN.pm: Building P/PY/PYTHIAN/DBD-Oracle-1.74.tar.gz

Multiple copies of Driver.xst found in: /usr/local/lib64/perl5/auto/DBI/ /usr/lib64/perl5/vendor_perl/auto/DBI/ at Makefile.PL line 39.
Using DBI 1.636 (for perl 5.016003 on x86_64-linux-thread-multi) installed in /usr/local/lib64/perl5/auto/DBI/

Configuring DBD::Oracle for perl 5.016003 on linux (x86_64-linux-thread-multi)

Remember to actually *READ* the README file! Especially if you have any problems.

Installing on a linux, Ver#2.6
Using Oracle in /usr/lib/oracle/12.2/client64
DEFINE _SQLPLUS_RELEASE = "1202000100" (CHAR)
Oracle version 12.2.0.1 (12.2)

Unable to locate an oracle.mk or other suitable *.mk
file in your Oracle installation. (I looked in
/usr/lib/oracle/12.2/client64/rdbms/demo/demo_xe.mk /usr/lib/oracle/12.2/client64/rdbms/lib/oracle.mk /usr/lib/oracle/12.2/client64/rdbms/demo/oracle.mk /usr/lib/oracle/12.2/client64/rdbms/demo/demo_rdbms.mk /usr/lib/oracle/12.2/client64/rdbms/demo/demo_rdbms64.mk /usr/lib/oracle/12.2/client64/rdbms/lib/ins_rdbms.mk /usr/share/oracle/12.2/client64/demo.mk under /usr/lib/oracle/12.2/client64)

The oracle.mk (or demo_rdbms.mk) file is part of the Oracle
RDBMS product. You need to build DBD::Oracle on a
system which has one of these Oracle components installed.
(Other *.mk files such as the env_*.mk files will not work.)
Alternatively you can use Oracle Instant Client.

In the unlikely event that a suitable *.mk file is installed
somewhere non-standard you can specify where it is using the -m option:
perl Makefile.PL -m /path/to/your.mk

See the appropriate README file for your OS for more information and some alternatives.

at Makefile.PL line 1187.
Warning: No success on command[/usr/bin/perl Makefile.PL]
PYTHIAN/DBD-Oracle-1.74.tar.gz
/usr/bin/perl Makefile.PL -- NOT OK
Running make test
Make had some problems, won't test
Running make install
Make had some problems, won't install
Could not read metadata file. Falling back to other methods to determine prerequisites
[root@ip tmp]#

"
I stopped here and I cannot go ahead to finish installation.
Can somebody help me with that?

Re: XI Trial Problem Oracle

Posted: Tue Mar 07, 2017 3:52 pm
by tmcdonald
Closing as duplicate of https://support.nagios.com/forum/viewto ... 999#bottom

Please do not make multiple threads for the same issue.