[Nagiosplug-devel] [ nagiosplug-Patches-1901262 ] check_mysql: Support for custom my.cnf
SourceForge.net
noreply at sourceforge.net
Mon Feb 25 11:41:48 CET 2008
Patches item #1901262, was opened at 2008-02-25 11:41
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=397599&aid=1901262&group_id=29880
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Enhancement
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Thorsten Tüllmann (thorstent)
Assigned to: Nobody/Anonymous (nobody)
Summary: check_mysql: Support for custom my.cnf
Initial Comment:
check_mysql can read a passwort either from the command line or from the system's my.cnf. my.cnf is world-readable and command line arguments show up in the process list. A more secure solution is to put the password in a file, only the user running the plugin can access.
The patch does exactly this. By calling 'check_mysql -f /etc/mysql/nagios.cnf' the plugin reads its configuration options from the given file.
I am no C guru, the code works for me and probably lacks some error handling.
bye,
Thorsten
Patch against Plugin Version (-V output): SVN revision 1916
Plugin Name: check_mysql
Example Plugin Commandline: check_mysql -f /etc/mysql/my.cnf
Tested on operating system: Debian Etch
Tested on architecture: i386
Tested with compiler: gcc 3.3.5
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=397599&aid=1901262&group_id=29880
More information about the Devel
mailing list