Created
May 7, 2013 15:23
-
-
Save josephmisiti/5533467 to your computer and use it in GitHub Desktop.
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 | |
| cd /usr/share/munin/plugins/ | |
| cp /home/ubuntu/socialq/socialqformtool/config/munin/mongodb_* . | |
| cp /home/ubuntu/socialq/socialqformtool/config/munin/redis* . | |
| chmod -R 777 /usr/share/munin/plugins/ | |
| cd /etc/munin/plugins | |
| # add the symlinks .. | |
| ln -s /usr/share/munin/plugins/mongodb_size_ mongodb_size_ | |
| ln -s /usr/share/munin/plugins/mongodb_flush_avg mongodb_flush_avg | |
| ln -s /usr/share/munin/plugins/mongodb_heap_usage mongodb_heap_usage | |
| ln -s /usr/share/munin/plugins/mongodb_index_misses mongodb_index_misses | |
| ln -s /usr/share/munin/plugins/mongodb_lock_ratio mongodb_lock_ratio | |
| ln -s /usr/share/munin/plugins/mongodb_lock_time mongodb_lock_time | |
| ln -s /usr/share/munin/plugins/mongodb_memory mongodb_memory | |
| ln -s /usr/share/munin/plugins/mongodb_objects_ mongodb_objects_ | |
| ln -s /usr/share/munin/plugins/mongodb_ops mongodb_ops | |
| ln -s /usr/share/munin/plugins/mongodb_page_faults mongodb_page_faults | |
| ln -s /usr/share/munin/plugins/mongodb_queues mongodb_queues | |
| ln -s /usr/share/munin/plugins/mongodb_replset_lag mongodb_replset_lag | |
| ln -s /usr/share/munin/plugins/redis_active_connections redis_active_connections | |
| ln -s /usr/share/munin/plugins/redis_commands redis_commands | |
| ln -s /usr/share/munin/plugins/redis_used_memory redis_used_memory | |
| ln -s /usr/share/munin/plugins/redis_connects redis_connects | |
| service munin-node restart | |
| /usr/sbin/munin-node-configure —debug | grep mongo | |
| /usr/sbin/munin-node-configure —debug | grep redis | |
| sudo -u munin /usr/share/munin/munin-update | |
| ls /var/cache/munin/www | grep index.html |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment