Skip to content

Instantly share code, notes, and snippets.

@griggheo griggheo/gist:540801
Created Aug 20, 2010

Embed
What would you like to do?
# cat create_mysql_symlinks.sh
PORT=$1
ln -s /usr/share/munin/plugins/mysql_ mysql_${PORT}_bin_relay_log
ln -s /usr/share/munin/plugins/mysql_ mysql_${PORT}_commands
ln -s /usr/share/munin/plugins/mysql_ mysql_${PORT}_connections
ln -s /usr/share/munin/plugins/mysql_ mysql_${PORT}_files_tables
ln -s /usr/share/munin/plugins/mysql_ mysql_${PORT}_innodb_bpool
ln -s /usr/share/munin/plugins/mysql_ mysql_${PORT}_innodb_bpool_act
ln -s /usr/share/munin/plugins/mysql_ mysql_${PORT}_innodb_checkpoint_age
ln -s /usr/share/munin/plugins/mysql_ mysql_${PORT}_innodb_history_length
ln -s /usr/share/munin/plugins/mysql_ mysql_${PORT}_innodb_insert_buf
ln -s /usr/share/munin/plugins/mysql_ mysql_${PORT}_innodb_insert_buf_size
ln -s /usr/share/munin/plugins/mysql_ mysql_${PORT}_innodb_io
ln -s /usr/share/munin/plugins/mysql_ mysql_${PORT}_innodb_io_pend
ln -s /usr/share/munin/plugins/mysql_ mysql_${PORT}_innodb_log
ln -s /usr/share/munin/plugins/mysql_ mysql_${PORT}_innodb_rows
ln -s /usr/share/munin/plugins/mysql_ mysql_${PORT}_innodb_semaphores
ln -s /usr/share/munin/plugins/mysql_ mysql_${PORT}_innodb_tnx
ln -s /usr/share/munin/plugins/mysql_ mysql_${PORT}_network_traffic
ln -s /usr/share/munin/plugins/mysql_ mysql_${PORT}_processlist
ln -s /usr/share/munin/plugins/mysql_ mysql_${PORT}_qcache
ln -s /usr/share/munin/plugins/mysql_ mysql_${PORT}_qcache_mem
ln -s /usr/share/munin/plugins/mysql_ mysql_${PORT}_replication
ln -s /usr/share/munin/plugins/mysql_ mysql_${PORT}_select_types
ln -s /usr/share/munin/plugins/mysql_ mysql_${PORT}_slow
ln -s /usr/share/munin/plugins/mysql_ mysql_${PORT}_sorts
ln -s /usr/share/munin/plugins/mysql_ mysql_${PORT}_table_locks
ln -s /usr/share/munin/plugins/mysql_ mysql_${PORT}_threads
ln -s /usr/share/munin/plugins/mysql_ mysql_${PORT}_tmp_tables
ln -s /usr/share/munin/plugins/mysql_ mysql_${PORT}_uptime
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.