I installed munin-node
on CentOS 7. The default plugin to monitor system resources is working fine. I followed the steps online to enable the mysql_
plugin. However, I'm encountering the following error:
> sudo munin-run --debug mysql_
# Skipping systemd properties simulation due to lack of permissions.
# Processing plugin configuration from /etc/munin/plugin-conf.d/00-default
# Processing plugin configuration from /etc/munin/plugin-conf.d/munin-node
# Processing plugin configuration from /etc/munin/plugin-conf.d/mysql
# Setting /rgid/ruid/ to /4257/498/
# Setting /egid/euid/ to /4257 4257/498/
# Setting up environment
# Environment mysqlpassword = password
# Environment mysqlconnection = DBI:mysql:information_schema;mysql_read_default_file=/etc/my.cnf
# Environment mysqluser = munin
# Environment mysqladmin = /usr/bin/mysqladmin
# About to run '/etc/munin/plugins/mysql_'
Unknown graph at /etc/munin/plugins/mysql_ line 1805.
It seems to be an issue with the plugin code itself. Has anyone else encountered a similar issue and/or has a fix?
Setup steps
$ sudo yum install munin-node
$ sudo ln -s /usr/share/munin/plugins/mysql_ /etc/munin/plugins/mysql_
- Create
/etc/munin.plugin-conf.d/mysql
with:
[mysql*]
env.mysqlconnection DBI:mysql:information_schema;mysql_read_default_file=/etc/my.cnf
env.mysqluser munin
env.mysqlpassword munin
- Create munin user in MySQL:
CREATE USER 'munin'@'localhost' IDENTIFIED BY 'munin';
GRANT PROCESS, SUPER ON *.* TO 'munin'@'localhost';
GRANT SELECT ON mysql.* TO 'munin'@'localhost';
FLUSH PRIVILEGES;
$ sudo systemctl restart munin-node