Installing-Oracle-Plugins-in-Nagios-XI

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
gdolidze
Posts: 154
Joined: Tue Apr 07, 2015 10:07 am

Installing-Oracle-Plugins-in-Nagios-XI

Post by gdolidze »

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


Where is this dam file i am following the nagios pdf and stuck here.
http://assets.nagios.com/downloads/nagi ... ios-XI.pdf
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Installing-Oracle-Plugins-in-Nagios-XI

Post by lmiltchev »

Were you able to install the DBD::Oracle module successfully? What is the output of the following commands?

Code: Select all

perl -MDBD::Oracle -le 'print $DBD::Oracle::VERSION'
grep oracle /usr/local/nagios/etc/commands.cfg
Be sure to check out our Knowledgebase for helpful articles and solutions!
gdolidze
Posts: 154
Joined: Tue Apr 07, 2015 10:07 am

Re: Installing-Oracle-Plugins-in-Nagios-XI

Post by gdolidze »

forgot to mentions the server is a fresh nagios vm ova

that the error i get from DBD::Oracle

and the out puts are

Can't locate DBD/Oracle.pm in @INC (@INC contains: /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .).
BEGIN failed--compilation aborted.


command_name check_xi_oraclequery
command_line /usr/bin/env LD_LIBRARY_PATH=/usr/lib/oracle/12.1/client64/lib ORACLE_HOME=/usr/lib/oracle/12.1/client64 $USER1$/check_oracle_health $ARG1$
command_name check_xi_oracleserverspace
command_line /usr/bin/envLD_LIBRARY_PATH=/usr/lib/oracle/12.1/client64/lib ORACLE_HOME=/usr/lib/oracle/12.1/client64 $USER1$/check_oracle_health $ARG1$
command_name check_xi_oracletablespace
command_line /usr/bin/env LD_LIBRARY_PATH=/usr/lib/oracle/12.1/client64/lib ORACLE_HOME=/usr/lib/oracle/12.1/client64 $USER1$/check_oracle_health $ARG1$
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Installing-Oracle-Plugins-in-Nagios-XI

Post by lmiltchev »

Have you tried running the following commands (in order to install the DBD::Oracle module)?

Code: Select all

export ORACLE_HOME=<path to your Oracle which was given by the script>
export LD_LIBRARY_PATH=$ORACLE_HOME/lib
cpan -i DBD::Oracle
Be sure to check out our Knowledgebase for helpful articles and solutions!
gdolidze
Posts: 154
Joined: Tue Apr 07, 2015 10:07 am

Re: Installing-Oracle-Plugins-in-Nagios-XI

Post by gdolidze »

I did those command and its where i get the error at the end of the cpan

What is this oracle.mk file and where do i get it.

Also i noticed the Database is 11.2 and i got the 12.2 rpms would this make a differents?
gdolidze
Posts: 154
Joined: Tue Apr 07, 2015 10:07 am

Re: Installing-Oracle-Plugins-in-Nagios-XI

Post by gdolidze »

Solved the damn issue it was because of the different versions.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Installing-Oracle-Plugins-in-Nagios-XI

Post by abrist »

Great! Locking 'er up!
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
Locked