MuninのMySQLプラグインは"mysqladmin extended-status"コマンドを実行して値を収集しています。MySQLプラグインが描くグラフだけが表示されない理由は、たいていの場合、このコマンドの実行に失敗しているためです。
mysqladminの場所が特定できていない
/etc/munin/plugin-conf.d/munin-nodeにmysqladminの場所を記述する。
FILE : /etc/munin/plugin-conf.d/munin-node
[mysql*]
env.mysqladmin /usr/bin/mysqladmin
mysqladminにログインできていない
/etc/munin/plugin-conf.d/munin-nodeにIDとパスワードを記述する。
FILE : /etc/munin/plugin-conf.d/munin-node
[mysql*]
env.mysqlopts -u root -p<password>
パスワードオプションの書き方が間違っている
-pとの間に空白を空けてはいけない。
FILE : /etc/munin/plugin-conf.d/munin-node
[mysql*]
env.mysqlopts -u root -p<password>
修正後はMuninの再起動を忘れずに。
$ sudo /etc/init.d/munin-node restart
おまけ
/usr/share/munin/pluginsから/etc/munin/pluginsへのシンボリックリンクを張り忘れていた、ということもありました。
#ln -s /usr/share/munin/plugins/mysql_bytes /etc/munin/plugins/mysql_bytes
#ln -s /usr/share/munin/plugins/mysql_isam_space_ /etc/munin/plugins/mysql_isam_space_
#ln -s /usr/share/munin/plugins/mysql_queries /etc/munin/plugins/mysql_queries
#ln -s /usr/share/munin/plugins/mysql_slowqueries /etc/munin/plugins/mysql_slowqueries
#ln -s /usr/share/munin/plugins/mysql_threads /etc/munin/plugins/mysql_threads
re Muninをカスタマイズして表示されるグラフの種類を増やしてみる
re MuninでMySQLのグラフが表示されない場合の対策