Munin, MySQL graph

It takes some time to found out how the munin mysql plugin works. Here is an easy step by step how to:

  1. Create a MySQL user with a password that has NOT granted privilege.
  2. Edit the file: /etc/munin/plugin-conf.d/munin-node
  3. Put this into the file:
    [mysql*]
      user root
      group wheel
      env.mysqladmin /usr/bin/mysqladmin
      env.mysqlopts -u [SQL_Username] -p[SQL_Password]
    

  4. Edit the two variables [SQL_Username] and [SQL_Password]. Note that there is NO space between -p and the password.

Now have a cup of coffee, wait some time and chill … now you see nice MySQL graphs in Munin