2. Fungsi Nagios
– Memantau Layanan Jaringan (SMTP, POP3, HTTP, NNTP, PING, dll).
– Memantau resource Server (Processor load, Disk usage, memory, dll).
– Kemudahan untuk membuat plugin.
– Pengecekan layanan secara pararel.
– Dengan implementasi “parents” dari suatu host, maka bisa dengan mudah
dibedakan host yang benar-benar down, dan host yang terkena dampaknya.
– Log diputar otomatis.
– Mendukung untuk pemantauan secara redundant.
• Kekurangan
- Device yang akan dimonitoring perlu dimasukkan secara manual
- Tidak mampu menghasilkan laporan history dari aktivitas pengguna
bandwidth.
Implementasi Nagios Core
Topologi Jaringan
Konfigurasi:
• Nagios Server
Apache httpd : Install httpd
1. Membuat hostname
[root@centos ~]# hostnamectl set-hostname magang.io
[root@centos ~]# reboot
2. Instal httpd
[root@magang ~]# yum -y install httpd
[root@magang ~]# rm -f /etc/httpd/conf.d/welcome.conf
3. Konfigurasi httpd. Ganti nama server ke hostname yang sudah dibuat tadi.
[root@magang ~]# nano /etc/httpd/conf/httpd.conf
# line 86
ServerAdmin root@magang.io
# line 95
ServerName www.magang.io:80
# line 151
AllowOverride All
# line 164
DirectoryIndex index.html index.cgi index.php
<html>
<body>
<div style="width: 100%; font-size: 40px; font-weight: bold; text-align:
center;">
Test Page
</div>
</body>
</html>
<html>
<body>
<div style="width: 100%; font-size: 40px; font-weight: bold; text-align:
center;">
<?php
print Date("Y/m/d");
?>
</div>
</body>
</html>
1. Install Nagios
[root@magang ~]# yum --enablerepo=epel -y install nagios
nagios-plugins-{ping,disk,users,procs,load,swap,ssh,http}
2. Konfigurasi Nagios
[root@magang ~]# nano /etc/httpd/conf.d/nagios.conf
# line 18 dan 49
# Require all granted
# Require local
Require ip 127.0.0.1 192.168.198.0/24
• Server Atas
1. Konfigurasi IP pada Server atas
[root@server1 ~]# nmtui
• Main OS
1. Konfigurasi IP pada Main OS
Beikut adalah tampilan daftar Host yang dimonitoring oleh Nagios Core
Berikut adalah tampilan Mapping pada Nagios Core
Daftar Pustaka
https://www.server-world.info/en/note?os=CentOS_7&p=nagios&f=1
http://www.ilmujaringan.com/konfigurasi-rip-pada-router-mikrotik/
http://daliman.wordpress.com/2008/04/10/monitoring-dengan-nagios/