Ada dua bagian dari Monitoring Software Munin, Munin Master dan Munin node.
Langah-langkah
Install Munin di Ubuntu Server
1. # apt-get update
2. # apt-get install apache2
3. # apt-get install munin munin-node
Setelah menginstall Munin dilakukan, Anda dapat mengaksesnya dari browser dengan mengetik 127.0.0.1/munin atau localhost/Munin.. Tapi itu berbahaya karna dapat di akses oleh yang lain.. silahkan buka dan edit file /etc/munin/apache.conf.
# nano /etc/munin/apache.conf
Ganti Allow from 127.0.0.1 ::1 menjadi # Allow from localhost 127.0.0.0/8 ::1
Proteksi Mumin dengan Password :
buka dan edit /etc/Munin/apache.conf dengan mengikuti konfigurasi di bawah ini:
sudo nano /etc/munin/apache.conf
Alias /munin /var/cache/munin/www
Order allow,deny
# Allow from localhost 127.0.0.0/8 ::1
Allow from all
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"
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.
#
ExpiresActive On
ExpiresDefault M310
Anda harus membuat password untuk /etc/Munin/Munin-htpasswd.. Printahnya Adalah :
# htpasswd -c /etc/munin/munin-htpasswd Munin
Masukan Password dan restart apache anda
# service apache2 restart
# service munin-node restart
0 komentar:
Posting Komentar