HI,
we are triing to execute plugin check_db2_health.
when i execute this plugin, there is a problem:
./check_db2_health --hostname 192.168.4.220 --username db2 --password 12345 --database CRISTAL --mode connection-time
CRITICAL - cannot connect to 192.168.4.220. install_driver(DB2) failed: Can't locate DBD/DB2.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) at (eval 17) line 3.
Perhaps the DBD::DB2 perl module hasn't been fully installed,
or perhaps the capitalisation of 'DB2' isn't right.
Available drivers: DBM, ExampleP, File, Gofer, Proxy, Sponge, mysql.
at ./check_db2_health line 2623
i try to do the installation of perl module DBD::DB2, but there is an error doing this:
DBD-DB2-1.85/tests/perld017_disconWithAutocomOFFRollback.pl
DBD-DB2-1.85/MANIFEST
CPAN: File::Temp loaded ok (v0.22)
CPAN.pm: Going to build I/IB/IBMTORDB2/DBD-DB2-1.85.tar.gz
Configuring DBD::DB2...
Remember to actually read the README and CAVEATS files!
DB2_HOME environment variable must be set to installed location of DB2.
Warning: No success on command[/usr/bin/perl Makefile.PL INSTALLDIRS=site]
IBMTORDB2/DBD-DB2-1.85.tar.gz
/usr/bin/perl Makefile.PL INSTALLDIRS=site -- NOT OK
Running make test
Make had some problems, won't test
Running make install
Make had some problems, won't install
Failed during this command:
IBMTORDB2/DBD-DB2-1.85.tar.gz : writemakefile NO '/usr/bin/perl Makefile.PL INSTALLDIRS=site' returned status 512
How can i solved it?
any sugesstion?
thanks
Error plugin check_db2_health
- Box293
- Too Basu
- Posts: 5126
- Joined: Sun Feb 07, 2010 10:55 pm
- Location: Deniliquin, Australia
- Contact:
Re: Error plugin check_db2_health
Are you following any guides on installing the perl module DBD::DB2 ? Can you direct us to them please.
Also, where did you download the plugin from?
Also, where did you download the plugin from?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Re: Error plugin check_db2_health
Hi,
I'm not following any guide...
I only try to install DBD::DB2 with cpan.
I execute:
and then:
and get the error:
I think I something more to install, but i dont know what module ...
any suggestions?
thanks.
I'm not following any guide...
I only try to install DBD::DB2 with cpan.
I execute:
Code: Select all
perl -MCPAN -e ShellCode: Select all
#> install DBD::DB2Code: Select all
IBMTORDB2/DBD-DB2-1.85.tar.gz
/usr/bin/perl Makefile.PL INSTALLDIRS=site -- NOT OK
Running make test
Make had some problems, won't test
Running make install
Make had some problems, won't installany suggestions?
thanks.
Re: Error plugin check_db2_health
Try installing the perl modules using the command below and post back any errors.
Also, take a look at this link for that plugin for more information.
https://labs.consol.de/nagios/check_db2_health/
Code: Select all
perl -MCPAN -e 'install Bundle::DBD::DB2'https://labs.consol.de/nagios/check_db2_health/
Be sure to check out our Knowledgebase for helpful articles and solutions!