Nagios Server - GaniGunawan/Administrasi_Jaringan GitHub Wiki
-> Instalasi Nagios
apt-get install nagios3 nagios-plugins
Sesudah itu akan diminta password, passwordnya samakan dengan password server
-> Menambahkan Client Windows
Copykan file localhost_nagios2.cfg dengan perintah
cp /etc/nagios3/conf.d/localhost_nagios2.cfg /etc/nagios3/conf.d/windows_client.cfg
Sesudah itu konfigurasi file yang telah dicopykan tadi yaitu windows_client.cfg dengan perintah
nano /etc/nagios3/conf.d/windows_client.cfg
lalu edit dibagian host_name, alias, address. fungsinya untuk mendaftakan Client dinagios server
# A simple configuration file for monitoring the local host
# This can serve as an example for configuring other servers;
# Custom services specific to this host are added here, but services
# defined in nagios2-common_services.cfg may also apply.
#
define host{
use generic-host ; Name of host template$
host_name GANI-PC1
alias GANI-PC1
address 192.168.5.10 <- Alamat Ip Client yang terhubung dengan Server
}
# Define a service to check the disk space of the root partition
# on the local machine. Warning if < 20% free, critical if
# < 10% free space on partition.
-> Sesudah itu restart service Nagios
/etc/init.d/nagios3 restart
-> Pengujiannya coba buka Browser diclient lalu ketikan di URL Ip Server/nagios3
Contoh 192.168.5.5/nagios3
sesudah itu isikan Username: nagiosadmin Password: password server
Sesudah itu maka akan diarahkan ke halaman Nagios, lalu klik bagian Host Groups
maka disana akan kelihatan mana saja Client yang aktif, bisa dilihat pada Status
UP