Skip to content

Instantly share code, notes, and snippets.

@ruby-fu-ninja
Created September 28, 2011 07:53
Show Gist options
  • Save ruby-fu-ninja/1247275 to your computer and use it in GitHub Desktop.
Save ruby-fu-ninja/1247275 to your computer and use it in GitHub Desktop.
Munin Ubuntu Install
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