Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 253893 - nagios-plugins1.4.13 check_mysql does not use password in my.cnf
Summary: nagios-plugins1.4.13 check_mysql does not use password in my.cnf
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Tobias Scherbaum (RETIRED)
URL: http://sourceforge.net/tracker/index....
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-01-05 19:30 UTC by Xavier Arreola
Modified: 2009-05-30 07:58 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Xavier Arreola 2009-01-05 19:30:46 UTC
The password specified in my.cnf file is ignored

In the validate_arguments function, db_pass is changed from NULL to the empty string, equivalent to "use password = NO"
db_pass should be NULL in order to use the password in my.cnf

if (db_pass == NULL)
  db_pass = strdup("");

Works as expected by commenting these lines out
Comment 1 Tobias Scherbaum (RETIRED) gentoo-dev 2009-02-16 18:58:31 UTC
Let's see if the fix posted to the upstream bug report makes it into 1.4.14.
Comment 2 Chris Gianelloni 2009-03-31 17:22:38 UTC
...or we could put in the simple 2-line fix, for the time being...

Being able to monitor MySQL in a secure manner is rather important to most people running production services.
Comment 3 Tobias Scherbaum (RETIRED) gentoo-dev 2009-03-31 18:04:49 UTC
(In reply to comment #2)
> ...or we could put in the simple 2-line fix, for the time being...
> 
> Being able to monitor MySQL in a secure manner is rather important to most
> people running production services.
> 

will do if the fix for this doesn't make it into 1.4.14
Comment 4 Chris Gianelloni 2009-05-27 04:53:41 UTC
I've added net-analyzer/nagios-plugins to my overlay (layman -k -a wolf31o2) and applied this patch... Since, well... I like to monitor my MySQL... kthxbye
Comment 5 Tobias Scherbaum (RETIRED) gentoo-dev 2009-05-30 07:58:43 UTC
(In reply to comment #1)
> Let's see if the fix posted to the upstream bug report makes it into 1.4.14.
> 

Fixed upstream, added the upstream patch in 1.4.13-r4.