Install and Configure Munin on Ubuntu 14.04

Install Munin

sudo apt-get -y install munin munin-node

Configure Munin

  • Backup the Munin Apache HTTP Server configuration file.
    sudo cp /etc/munin/apache.conf /etc/munin/apache.conf.orig
  • Edit the Munin Apache HTTP Server configuration file.
    sudo nano /etc/munin/apache.conf
    • Remove the default alias.
      • Replace
        Alias /munin /var/cache/munin/www
      • With
        #Alias /munin /var/cache/munin/www
    • Allow authenticated users access from anywhere.
      • Replace
        Allow from localhost 127.0.0.0/8 ::1
      • With
        Allow from all
    • Protect Munin via basic Apache HTTP Server authentication.
      • Replace
        # AuthUserFile /etc/munin/munin-htpasswd
        # AuthName "Munin"
        # AuthType Basic
        # require valid-user
      • With
        # Authentication
        AuthType Basic
        AuthName "{DOMAIN}"
        AuthUserFile /var/www/.htpasswd
        Require valid-user
  • Edit the Apache HTTP Server default-ssl VirtualHost file.
    sudo nano /etc/apache2/sites-available/default-ssl.conf
    • Add an alias for Munin.
      • Add
        # Create an alias for Munin.
        Alias /munin /var/cache/munin/www
  • Restart the Apache HTTP Server service
    sudo service apache2 restart

Open Source Software:

Operating System: