packages: munin/munin-plugins.patch - let mysql_ plugin work without SUPER ...

baggins baggins at pld-linux.org
Tue Feb 2 11:55:36 CET 2010


Author: baggins                      Date: Tue Feb  2 10:55:36 2010 GMT
Module: packages                      Tag: HEAD
---- Log message:
- let mysql_ plugin work without SUPER priv

---- Files affected:
packages/munin:
   munin-plugins.patch (1.38 -> 1.39) 

---- Diffs:

================================================================
Index: packages/munin/munin-plugins.patch
diff -u packages/munin/munin-plugins.patch:1.38 packages/munin/munin-plugins.patch:1.39
--- packages/munin/munin-plugins.patch:1.38	Tue Feb  2 11:46:49 2010
+++ packages/munin/munin-plugins.patch	Tue Feb  2 11:55:31 2010
@@ -1278,3 +1278,34 @@
  echo -n 'ntp_pll_off.value '
 -ntpdc -c kern | awk '/^pll offset:/ { print $3 }'
 +/usr/sbin/ntpdc -c kern | awk '/^pll offset:/ { print $3 }'
+--- munin-1.4.3/plugins/node.d/mysql_.in~	2009-12-30 13:55:55.000000000 +0100
++++ munin-1.4.3/plugins/node.d/mysql_.in	2010-02-02 11:54:49.990957765 +0100
+@@ -34,6 +34,7 @@
+     env.mysqlconnection DBI:mysql:mysql;host=127.0.0.1;port=3306
+     env.mysqluser root
+     env.mysqlpassword geheim
++    env.mysqlnosuperpriv 1
+ 
+ 
+ =head1 DEPENDENCIES
+@@ -133,6 +134,7 @@
+     'dsn'        => $ENV{'mysqlconnection'} || 'DBI:mysql:mysql',
+     'user'       => $ENV{'mysqluser'}       || 'root',
+     'password'   => $ENV{'mysqlpassword'}   || '',
++    'nosuper'    => $ENV{'mysqlnosuperpriv'} || 0,
+ );
+ 
+ 
+@@ -900,8 +902,10 @@
+ 
+     update_variables($dbh);
+     update_innodb($dbh);
+-    update_master($dbh);
+-    update_slave($dbh);
++    if (!$config{nosuper}) {
++	update_master($dbh);
++	update_slave($dbh);
++    }
+ 
+     $shared_memory_cache->set('data', $data);
+ }
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/munin/munin-plugins.patch?r1=1.38&r2=1.39&f=u



More information about the pld-cvs-commit mailing list