Monitoring Server :Instalasi Dan Konfigurasi Munin Di Ubuntu Server 16.04

Pengertian Munin :
Munin adalah gratis dan open-source komputer sistem pemantauan , monitoring jaringan dan monitoring infrastruktur aplikasi perangkat lunak . Menawarkan pemantauan dan layanan mengingatkan untuk server, switch, aplikasi, layanan, dll alert pengguna bila ada sesuatu yang salah dan peringatan mereka untuk kedua kalinya ketika masalah telah diselesaikan.
Munin ditulis dalam Perl dan menggunakan RRDtool untuk membuat grafik , yang dapat diakses melalui antarmuka web . Penekanannya adalah pada plug and play kemampuan. Sekitar 500 pemantauan plugin saat ini tersedia. Hal ini dimaksudkan untuk memudahkan untuk menentukan "apa yang berbeda hari ini" ketika masalah kinerja terjadi dan untuk memberikan visibilitas ke kapasitas dan pemanfaatan sumber daya .
sumber : wikipedia
 
Langkah Instalasinya
1.Install depedency yang dibutuhkan untuk menginstall Munin. modul fcgid apache diperlukan untuk fitur grafik zoom Munin. Saya akan menginstal apache dan modul libapache2-mod-fcgid dengan perintah :
# apt-get -y install apache2 libcgi-fast-perl libapache2-mod-fcgid
2.Aktifkan modul fcgid di apache dengan perintah :
# a2enmod fcgid
3.Instal munin dengan mengetikan perintah :
# apt-get -y install munin munin-node munin-plugins-extra
4.Pindah ke folder plugins di direktori /etc/munin, lalu buat sebuah sortcut folder plugins dengan memasukkan perintah berikut :
# cd / etc / Munin / plugins
# ln -s / usr / share / Munin / plugins / mysql_ mysql_
# ln -s / usr / share / Munin / plugins / mysql_bytes mysql_bytes
# ln -s / usr / share / Munin / plugins / mysql_queries mysql_queries
# ln -s / usr / share / Munin / plugins / mysql_slowqueries mysql_slowqueries
# ln -s / usr / share / Munin / plugins / mysql_threads mysql_threads
5.Setelah itu kita harus mengedit file munin.conf yang berada di direktori /etc/munin/ dengan perintah :
# nano /etc/munin/munin.conf
-Ubah file menjadi seperti berikut :
# Example configuration file for Munin, generated by 'make build'

# The next three variables specifies where the location of the RRD
# databases, the HTML output, logs and the lock/pid files.  They all
# must be writable by the user running munin-cron.  They are all
# defaulted to the values you see here.
#
dbdir   /var/lib/munin
htmldir /var/cache/munin/www
logdir /var/log/munin
rundir  /var/run/munin


# Where to look for the HTML templates
#
tmpldir /etc/munin/templates

# Where to look for the static www files
#

[...]

# a simple host tree
[serverku.com]
    address 100.100.100.100
    use_node_name yes


[...]
# Example configuration file for Munin, generated by 'make build'

# The next three variables specifies where the location of the RRD
# databases, the HTML output, logs and the lock/pid files.  They all
# must be writable by the user running munin-cron.  They are all
# defaulted to the values you see here.
#
dbdir   /var/lib/munin
htmldir /var/cache/munin/www
logdir /var/log/munin
rundir  /var/run/munin

# Where to look for the HTML templates
#
tmpldir /etc/munin/templates

# Where to look for the static www files
#

[...]

# a simple host tree
[smksakti.edu]
    address 10.20.123.2
    use_node_name yes

[...]
V
 V
NB: Perhatikan yang bertanda hijau, itu merupakan baris yang diedit. Jika sudah, keluar dan simpan.

6.backup file apache24.conf pada direktori /etc/munin dengan memasukan perintah :
# mv /etc/munin/apache24.conf /etc/munin/apache24.conf_bak
7.Kemudian buat file baru apache24.conf dengan perintah :
# nano /etc/munin/apache24.conf
   o>file masih kosong.
 Dan copy konten berikut pada file apache24.conf :
Alias /munin /var/cache/munin/www
<Directory /var/cache/munin/www>
 # Require local
 Require all granted
 Options FollowSymLinks SymLinksIfOwnerMatch
 Options None
</Directory>

ScriptAlias /munin-cgi/munin-cgi-graph /usr/lib/munin/cgi/munin-cgi-graph
<Location /munin-cgi/munin-cgi-graph>
 # Require local
 Require all granted
 Options FollowSymLinks SymLinksIfOwnerMatch
 <IfModule mod_fcgid.c>
 SetHandler fcgid-script
 </IfModule>
 <IfModule !mod_fcgid.c>
 SetHandler cgi-script
 </IfModule>
</Location>
8.Restart apachenya :
# /etc/init.d/apache2 restart
9.Restart muninnya juga :
# service munin-mode restart
10.Buka di web browser http://ip server/munin :
 Jika berhasil akan muncul tampilan munin seperti di bawah ini :
 V
 Semoga bermanfaat...
Source :howtoforge

Comments

Post a Comment

Popular posts from this blog

Simulasi Membuat Jaringan Nirkabel Sederhana Di Cisco Paket Tracer.

Memberikan fasilitas FREE TRIAL pada login page hotspot mikrotik

Simulasi Routing(Interconnect Network) Di Cisco Paket Tracer