Created
January 14, 2013 09:08
-
-
Save oinume/4528756 to your computer and use it in GitHub Desktop.
symlink all available mysql plugins in Munin 2.0 to /etc/munin/plugins
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| set -eu | |
| for i in 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; do | |
| echo "--- $i ---" | |
| rm -f /etc/munin/plugins/mysql_$i | |
| ln -s /usr/share/munin/plugins/mysql_ /etc/munin/plugins/mysql_$i | |
| done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment