jaringan dengan mengimplementasikan SSL tersebut dapat bekerja sesuai dengan apa yang diinginkan.
4.4.2.1 Konfigurasi Fully Automated Nagios
Setelah proses instalasi Fully Automated Nagios selesai, selanjutnya dilakukan konfigurasi terhadap beberapa file .cfg. File-file tersebut adalah
Nagios.cfg, windows-server.cfg, linux-server.cfg, commands.cfg serta nrpe.cfg. Konfigurasi ini dimaksudkan untuk mengkonfigurasi Nagios agar dapat
menggunakan plugin check_nrpe sebagaimana mestinya untuk memonitor client menggunakan enkripsi SSL.Berikut adalah penjelasannya.
Setelah proses instalasi selesai, hal pertama kali yang dilakukan adalah buka web browser dan akses ke url
http:192.168.1.10 . Selanjutnya
buka halaman Nagios dengan mengklik link Nagios dan klik link tactical overview. Di sana akan terlihat host yang sedang up adalah localhost dengan
service standar yang dimonitor seperti current load, current users, HTTP, ping,
root partition, SSH, swap usage, dan total processes .
4.4.2.1.1 Konfigurasi Host monitoring
Konfigurasi host monitoring yang dilakukan yaitu penambahan host monitoring
yang dilakukan secara manual dengan cara membuat file di direktori etcNagiosobjects dengan nama komputer1.cfg, komputer2.cfg, dst.
Pada penelitian ini digunakan 2 host monitoring lainnya, yaitu windows server 2003 dan ubuntu server 8.04 dengan nama windows-server.cfg dan linux-
server.cfg. Konfigurasi pada file windows-server.cfg dan linux-server.cfg terdiri dari definisi template, definisi host, dan definisi service.
1. File windows-server.cfg Berikut adalah isi dari konfigurasi file windows-server.cfg yang berisi :
a Template dengan nama tpl-windows-servers b Host yang bernama winserver dan memiliki ip address 192.168.1.11
c Service yang dimonitor adalah : 1 Load CPU
2 Ukuran hardisk 3 Penggunaan memory
4 Waktu uptime 5 Service pada waktu start up
6 Proses NSClient++.exe 7 Proses Explorer.exe
define host{ name
tpl-windows-servers ;
Name of
this template use
generic-host ; Inherit default values
check_period 24x7
check_interval 1
retry_interval 1
max_check_attempts 10
check_command check-host-alive
notification_period 24x7
notification_interval 30
notification_options d,r
contact_groups admins
register 0 ; DONT REGISTER THIS - ITS A
TEMPLATE }
deFINe host{ use
tpl-windows-servers ;
Inherit default
values from a template host
_name winserver ; The name were giving to this server
alias Windows Server 2003 ; A longer name
for the server address
192.168.1.11 ; IP address of the server
} define service{
use
generic-service host
_name winserver
service _description CPU
Load check_command
check_nrpecheckCPU -a warn=80 crit=90 time=5m time=1m time=30s
} define service{
use generic-service host_name winserver
service_description Drive Size check_command check_nrpeCheckDriveSize
-a MinWarn=10 MinCrit=5 CheckAll FilterType=FIXED
} define service{
use generic-service host_name winserver
service_description Memory Usage check_command check_nrpeCheckMEM -a
MaxWarn=80 MaxCrit=90 ShowAll type=page }
define service{ use generic-service
host_name winserver service_description Uptime
check_command check_nrpeCheckUpTime
-a MinWarn=1h MinCrit=1h }
define service{ use generic-service
host_name winserver service_description Startup Service
check_command check_nrpeCheckServiceState
-a CheckAll exclude=ARG1 exclude=ARG2 }
define service{ use generic-service
host_name winserver service_description NSClient++.exe
check_command check_nrpeCheckProcState
-a nsclient++.exe=started }
define service{ use generic-service
host_name winserver service_description explorer.exe
check_command check_nrpeCheckProcState
-a explorer.exe=started }
2. File linux-server.cfg Berikut adalah isi dari konfigurasi file linux-server.cfg yang berisi :
Template dengan nama ubuntu-server
Host yang bernama webserver dan memiliki ip address 192.168.1.12 Service yang dimonitor adalah :
Load CPU Ukuran hardisk
Zombie Process Total Process
Current Users
define
host {
name ubuntu-server ; Name of this template
use generic-host ; Inherit default values
check_period 24x7
check_interval 1
retry_interval 1
max_check_attempts 10
check_command check-host-alive
notification_period 24x7
notification_interval 30
notification_options d,r
contact_groups admins register
0 ; DONT REGISTER THIS - ITS A TEMPLATE }
define
host {
use ubuntu-server ; Inherit default values from a template
host _name
webserver ; The name were giving to this server alias
My FiRST Linux Server ; A longer name for the server
address 192.168.1.12 ; IP address of the server
}
define
service {
use generic-service
host _name
webserver service
_description CPU Load
check_command check_nrpecheck_load
}
define
service {
use generic-service host_name webserver
service_description Current Users check_command check_nrpecheck_users
}
define
service {
use generic-service host_name webserver
service_description Root Partition check_command check_nrpecheck_sda1
}
define
service {
use generic-service host_name webserver
service_description Zombie Proc check_command check_nrpecheck_zombie_procs
}
define
service {
use generic-service host_name webserver
service_description Total Process check_command check_nrpecheck_total_procs
}
4.4.2.1.2 Konfigurasi File Nagios.cfg