Bug 847351 - nagios-plugins-mysql depends on perl-DBD-mysql
Summary: nagios-plugins-mysql depends on perl-DBD-mysql
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora EPEL
Classification: Fedora
Component: nagios-plugins
Version: el6
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Jose Pedro Oliveira
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-08-10 16:40 UTC by Ross Smith
Modified: 2012-08-25 13:43 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-08-25 13:43:03 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Ross Smith 2012-08-10 16:40:47 UTC
Description of problem:
The check_mysql command from the package nagios-plugins-mysql depends on DBD::mysql to operate, but it is not in the dependency list.  

Version-Release number of selected component (if applicable):
1.4.15


How reproducible:
always

Steps to Reproduce:
1.install nagios and nagios-plugins-mysql
2.run check_mysql in any mode 
  
Actual results:
Get error about missing package

Expected results:
No error about missing package.

Additional info:
The output from the check_mysql command:
CRITICAL - cannot connect to information_schema. install_driver(mysql) failed: Can't locate DBD/mysql.pm in @INC (@INC contains: /usr/lib64/nagios/plugins /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 18) line 3.
Perhaps the DBD::mysql perl module hasn't been fully installed,
or perhaps the capitalisation of 'mysql' isn't right.
Available drivers: DBM, ExampleP, File, Gofer, Proxy, Sponge.
 at /usr/lib64/nagios/plugins/check_mysql_health line 1862

Comment 1 Jose Pedro Oliveira 2012-08-16 15:55:31 UTC
Ross,

Are you sure that the check_mysql plugin that you are using is the one belonging to nagios-plugins package?  The nagios-plugins-mysql subpackage only includes two binary files (and it doesn't include a plugin called check_mysql_health).
 
/jpo

----------
# rpm -q nagios-plugins-mysql
nagios-plugins-mysql-1.4.15-7.el6.x86_64

# rpm -ql nagios-plugins-mysql
/usr/lib64/nagios/plugins/check_mysql
/usr/lib64/nagios/plugins/check_mysql_query

# file /usr/lib64/nagios/plugins/check_mysql*
/usr/lib64/nagios/plugins/check_mysql:       ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.18, stripped
/usr/lib64/nagios/plugins/check_mysql_query: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.18, stripped
----------

Comment 2 Jose Pedro Oliveira 2012-08-25 13:43:03 UTC
The reporter appears to be using a third-party plugin.


Note You need to log in before you can comment on or make changes to this bug.