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
Installing-Oracle-Plugins-in-Nagios-XI
Re: Installing-Oracle-Plugins-in-Nagios-XI
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.cfgBe sure to check out our Knowledgebase for helpful articles and solutions!
Re: Installing-Oracle-Plugins-in-Nagios-XI
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$
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$
Re: Installing-Oracle-Plugins-in-Nagios-XI
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::OracleBe sure to check out our Knowledgebase for helpful articles and solutions!
Re: Installing-Oracle-Plugins-in-Nagios-XI
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?
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?
Re: Installing-Oracle-Plugins-in-Nagios-XI
Solved the damn issue it was because of the different versions.
Re: Installing-Oracle-Plugins-in-Nagios-XI
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.
"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.