Munin mysql_ suggest Cache::Cache Error
I was trying to set up the newer mysql_
plugin for Munin, but got the following error when using the “suggest” argument to determine how to link the file. The “fix” was to install the perl-Cache-Cache.noarch
package via yum
.
Missing dependency Cache::Cache at ./mysql_ line 728
As an FYI – you install different graphs from a single plugin by creating a symbolic link to the plugin with an appropriate name, for example:
ln -s mysql_ mysql_connections
The Error
Unable to suggest the plugin options.
[root@db1 plugins]# ./mysql_ suggest Missing dependency Cache::Cache at ./mysql_ line 728.
The “Fix”
Install Perl’s Cache::Cache.
yum -y install perl-Cache-Cache.noarch
Success
You should now be able to suggest the plugin options.
[root@db1 plugins]# ./mysql_ suggest bin_relay_log commands connections files_tables innodb_bpool innodb_bpool_act innodb_insert_buf innodb_io innodb_io_pend innodb_log innodb_rows innodb_semaphores innodb_tnx myisam_indexes network_traffic qcache qcache_mem replication select_types slow sorts table_locks tmp_tables