[Nagiosplug-checkins] nagiosplug/plugins check_mysql.c,1.26,1.27
M. Sean Finney
seanius at users.sourceforge.net
Thu Oct 13 02:58:01 CEST 2005
Update of /cvsroot/nagiosplug/nagiosplug/plugins
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv5230/plugins
Modified Files:
check_mysql.c
Log Message:
check mysql now reads [client] defaults from my.cnf (debian bug #278817)
Index: check_mysql.c
===================================================================
RCS file: /cvsroot/nagiosplug/nagiosplug/plugins/check_mysql.c,v
retrieving revision 1.26
retrieving revision 1.27
diff -u -d -r1.26 -r1.27
--- check_mysql.c 26 May 2005 02:13:19 -0000 1.26
+++ check_mysql.c 13 Oct 2005 09:55:31 -0000 1.27
@@ -65,6 +65,8 @@
/* initialize mysql */
mysql_init (&mysql);
+ mysql_options(&mysql,MYSQL_READ_DEFAULT_GROUP,"client");
+
/* establish a connection to the server and error checking */
if (!mysql_real_connect(&mysql,db_host,db_user,db_pass,db,db_port,NULL,0)) {
if (mysql_errno (&mysql) == CR_UNKNOWN_HOST)
More information about the Commits
mailing list