Page 1 of 2

check_oracle_health

Posted: Fri Feb 26, 2016 2:38 pm
by fmargari
Hi all,

I am new user in nagios and I have this problem to run check_oracle_helath plugin en Nagios XI

Use of qw(...) as parentheses is deprecated at ./check_oracle_health line 4162.
Use of qw(...) as parentheses is deprecated at ./check_oracle_health line 6166.
CRITICAL - cannot connect to BOW.WORLD. DBI object version 1.627 does not match bootstrap parameter 1.634 at /usr/lib64/perl5/DynaLoader.pm line 213.
BEGIN failed--compilation aborted at /usr/local/lib64/perl5/DBI.pm line 286.
Compilation failed in require at ./check_oracle_health line 4736.

Can help me ?
Thanks

Re: check_oracle_health

Posted: Fri Feb 26, 2016 2:53 pm
by rkennedy
Can you please post the full command, or screenshot of what you're entering, in order to produce this result?

Re: check_oracle_health

Posted: Fri Feb 26, 2016 5:52 pm
by fmargari
in nagios user profile

LD_LIBRARY_PATH=/oracle/product/client/lib
ORACLE_HOME=/oracle/product/client

[nagios@arlxpd60 libexec]$ /usr/local/nagios/libexec/check_oracle_health --connect BOW.WORLD --username nagios --password oracle --mode tnsping
Use of qw(...) as parentheses is deprecated at ./check_oracle_health line 4162.
Use of qw(...) as parentheses is deprecated at ./check_oracle_health line 6166.
CRITICAL - cannot connect to BOW.WORLD. DBI object version 1.627 does not match bootstrap parameter 1.634 at /usr/lib64/perl5/DynaLoader.pm line 213.
BEGIN failed--compilation aborted at /usr/local/lib64/perl5/DBI.pm line 286.
Compilation failed in require at ./check_oracle_health line 4736.

I ran by linux manually , in console I see same error message.

I hope this information help

Thanks and Regards

Re: check_oracle_health

Posted: Fri Feb 26, 2016 6:11 pm
by fmargari
I ran by ssh . I saw same error message in web console


[nagios@arlxpd60 libexec]$ /usr/local/nagios/libexec/check_oracle_health --connect BOW.WORLD --username nagios --username nagios --mode tnsping
Use of qw(...) as parentheses is deprecated at ./check_oracle_health line 4162.
Use of qw(...) as parentheses is deprecated at ./check_oracle_health line 6166.
CRITICAL - cannot connect to BOW.WORLD. DBI object version 1.627 does not match bootstrap parameter 1.634 at /usr/lib64/perl5/DynaLoader.pm line 213.
BEGIN failed--compilation aborted at /usr/local/lib64/perl5/DBI.pm line 286.
Compilation failed in require at ./check_oracle_health line 4736.

I hope this help.

thanks for help
Regards

Re: check_oracle_health

Posted: Mon Feb 29, 2016 8:30 am
by fmargari
Hi,
I´m running by console.
ORACLE_HOME=/oracle/product/client
LD_LIBRARY_PATH=/oracle/product/client/lib

[nagios@arlxpd60 ~]$ /usr/local/nagios/libexec/check_oracle_health --connect bowsrv.nextel.com.ar:1562/BOW --username nagios --password oracle --mode tnsping
Use of qw(...) as parentheses is deprecated at /usr/local/nagios/libexec/check_oracle_health line 4162.
Use of qw(...) as parentheses is deprecated at /usr/local/nagios/libexec/check_oracle_health line 6166.
CRITICAL - cannot connect to bowsrv.nextel.com.ar:1562/BOW. DBI object version 1.627 does not match bootstrap parameter 1.634 at /usr/lib64/perl5/DynaLoader.pm line 213.
BEGIN failed--compilation aborted at /usr/local/lib64/perl5/DBI.pm line 286.
Compilation failed in require at /usr/local/nagios/libexec/check_oracle_health line 4736.

In web console, I get same error message.
Thanks

Re: check_oracle_health

Posted: Mon Feb 29, 2016 8:46 am
by fmargari
rkennedy wrote:Can you please post the full command, or screenshot of what you're entering, in order to produce this result?
I have export oracle setting in nagios profile

SO
Linux arlxpd60 3.10.0-327.4.4.el7.x86_64


[nagios@arlxpd60 ~]$ /usr/local/nagios/libexec/check_oracle_health --connect bowsrv.nextel.com.ar:1562/BOW --username nagios --password oracle --mode tnsping
Use of qw(...) as parentheses is deprecated at /usr/local/nagios/libexec/check_oracle_health line 4162.
Use of qw(...) as parentheses is deprecated at /usr/local/nagios/libexec/check_oracle_health line 6166.
CRITICAL - cannot connect to bowsrv.nextel.com.ar:1562/BOW. DBI object version 1.627 does not match bootstrap parameter 1.634 at /usr/lib64/perl5/DynaLoader.pm line 213.
BEGIN failed--compilation aborted at /usr/local/lib64/perl5/DBI.pm line 286.
Compilation failed in require at /usr/local/nagios/libexec/check_oracle_health line 4736.

Re: check_oracle_health

Posted: Mon Feb 29, 2016 10:35 am
by rkennedy
Can you please run these two commands on your XI system, and post the result?

Code: Select all

perl -v
perl -MDBI

Re: check_oracle_health

Posted: Mon Feb 29, 2016 1:15 pm
by fmargari
[nagios@arlxpd60 ~]$ perl -v

This is perl 5, version 16, subversion 3 (v5.16.3) built for x86_64-linux-thread-multi
(with 29 registered patches, see perl -V for more detail)



Copyright 1987-2012, Larry Wall

Perl may be copied only under the terms of either the Artistic License or the
GNU General Public License, which may be found in the Perl 5 source kit.

Complete documentation for Perl, including FAQ lists, should be found on
this system using "man perl" or "perldoc perl". If you have access to the
Internet, point your browser at http://www.perl.org/, the Perl Home Page.

[nagios@arlxpd60 ~]$ perl -MDBI
DBI object version 1.627 does not match bootstrap parameter 1.634 at /usr/lib64/perl5/DynaLoader.pm line 213.
BEGIN failed--compilation aborted at /usr/local/lib64/perl5/DBI.pm line 286.
Compilation failed in require.
BEGIN failed--compilation aborted.
[nagios@arlxpd60 ~]$

Re: check_oracle_health

Posted: Mon Feb 29, 2016 4:31 pm
by rkennedy
rkennedy wrote:Can you please post the full command, or screenshot of what you're entering, in order to produce this result?
We will need to see the screenshot.

Can you please follow this document https://assets.nagios.com/downloads/nag ... ios-XI.pdf and install the 11.2 client?

Let us know if you have any questions.

Re: check_oracle_health

Posted: Tue Mar 01, 2016 9:13 am
by fmargari
Attach is print screen.
Thanks