Created
September 28, 2011 07:53
-
-
Save ruby-fu-ninja/1247275 to your computer and use it in GitHub Desktop.
Munin Ubuntu Install
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
sudo apt-get install munin munin-node -y | |
cd /munin/parent/dir | |
mkdir munin | |
sudo chown munin:munin munin | |
sudo vim /etc/munin/munin.conf | |
Add htmldir to conf: | |
htmldir /munin/parent/dir/munin | |
sudo service munin-node restart | |
Watch logs, see if everything looks ok: | |
tail -f /var/log/munin/* | |
Check if munin is generating content in htmldir you defined: | |
/munin/parent/dir/munin | |
Add subdomain to nginx config: | |
server { | |
listen 80; | |
server_name stats.mydomain.com; | |
root /munin/parent/dir/munin; | |
location / { | |
auth_basic "Restricted"; | |
auth_basic_user_file /etc/nginx/htpasswd; | |
} | |
} | |
Note: Download http://trac.edgewall.org/browser/trunk/contrib/htpasswd.py?format=txt to generate htpasswd file | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment