1. sudo apt-get update
  2. sudo apt-get install munin munin-node
  3. backup file /etc/munin/apache.conf
  4. backup file /etc/munin/munin.conf
  5. mkdir –p /var/www/munin
  6. Chown munin.munin /var/www/munin/
  7. Config /etc/munin/munin.conf

    dbdir /var/lib/munin

    htmldir /var/www/monitoring

    logdir /var/log/munin

    rundir /var/run/munin

    tmpldir /etc/munin/templates

    [proxy.polinela.ac.id]

    address 127.0.0.1

    use_node_name yes

  8. Config file /etc/munin/apache.conf

    Alias /munin /var/www/muninßsesuaikan dengan tempat penyimpanan.

    <Directory /var/www/munin>

    Order allow,deny

    # Allow from localhost 127.0.0.0/8 ::1 ß tutup dengan tanda pagar.

    Allow from all ßizinkan agar dapat diakses dari manasaja

    Options None

    # This file can be used as a .htaccess file, or a part of your apache

    # config file.

    #

    # For the .htaccess file option to work the munin www directory

    # (/var/cache/munin/www) must have “AllowOverride all” or something

    # close to that set.

    #

    # AuthUserFile /etc/munin/munin-htpasswd

    # AuthName “Munin”

    # AuthType Basic

    # require valid-user

    # This next part requires mod_expires to be enabled.

    #

    # Set the default expiration time for files to 5 minutes 10 seconds from

    # their creation (modification) time. There are probably new files by

    # that time.

    #

    <IfModule mod_expires.c>

    ExpiresActive On

    ExpiresDefault M310

    </IfModule>

    </Directory>

     

  9. Restart /etc/init.d/munin-node restart

 

 

Protect The Munin Output Directory with Password

  1. Edit /etc/munin/apache.conf

    Alias /munin /var/www/muninßsesuaikan dengan tempat penyimpanan.

    <Directory /var/www/munin>

    Order allow,deny

    # Allow from localhost 127.0.0.0/8 ::1 ß tutup dengan tanda pagar.

    Allow from all ßizinkan agar dapat diakses dari manasaja

    Options None

    # This file can be used as a .htaccess file, or a part of your apache

    # config file.

    #

    # For the .htaccess file option to work the munin www directory

    # (/var/cache/munin/www) must have “AllowOverride all” or something

    # close to that set.

    #

    AllowOverride None

        AuthUserFile /etc/munin/munin-htpasswd

        AuthName “Munin” ßuser

        AuthType Basic

        require valid-user

     

    # This next part requires mod_expires to be enabled.

    #

    # Set the default expiration time for files to 5 minutes 10 seconds from

    # their creation (modification) time. There are probably new files by

    # that time.

    #

    <IfModule mod_expires.c>

    ExpiresActive On

    ExpiresDefault M310

    </IfModule>

    </Directory>

     

  2. create the password for /etc/munin/munin-htpasswd
  3. htpasswd -c /etc/munin/munin-htpasswd Munin
  4. sudo service apache2 restart
  5. sudo service munin-node restart