Dear Maintainer,
the plugin mysql_ fails in the default configuration:
command prompt # munin-run --debug mysql_slow
# Skipping systemd properties simulation due to lack of permissions.
# Processing plugin configuration from /etc/munin/plugin-conf.d/README
# Processing plugin configuration from /etc/munin/plugin-conf.d/dhcpd3
# Processing plugin configuration from /etc/munin/plugin-conf.d/munin-node
# Processing plugin configuration from /etc/munin/plugin-conf.d/mysql
# Processing plugin configuration from /etc/munin/plugin-conf.d/spamstats
# Setting /rgid/ruid/ to /117/0/
# Setting /egid/euid/ to /117 117/0/
# Setting up environment
# Environment mysqlopts = --defaults-file=/etc/mysql/debian.cnf
# Environment mysqlconnection = DBI:mysql:mysql;mysql_read_default_file=/etc/mysql/debian.cnf
# Environment mysqluser = root
# About to run '/etc/munin/plugins/mysql_slow'
DBI connect('mysql;mysql_read_default_file=/etc/mysql/debian.cnf;mysql_connect_timeout=5','root',...) failed: Access denied for user 'root'@'localhost' (using password: YES) at /etc/munin/plugins/mysql_slow line 1090.
changing the environment mysqluser to debian-sys-maint fixes it for me:
# munin-run mysql_slow
Slow_queries.value 1
I've attached a patch.
Regards
Carsten