Gambar 4.4 Gambar Tactical Overview Nagios.
4.4.2.2 Konfigurasi Hmailserver Pada Windows Server 2003
Setelah instalasi Hmailserver pada Windows Server 2003 sudah selesai, sekarang dilakukan konfigurasi untuk setting hostname dan create user
account. Setting Hostname dengan nama mail.phillip.int :
Gambar 4.5 Setting Hostname Hmailserver
Setting user account harrymail.phillip.int
Gambar 4.6 Setting User Account Hmailserver
4.4.2.3 Konfigurasi NSClient++ Windows Server 2003
Setelah konfigurasi pada Fully Automated Nagios telah selesai, selanjutnya adalah konfigurasi NSClient++ pada windows server 2003.
Konfigurasi NSClient dilakukan pada file NSC.ini yang terletak pada folder C:\Program Files\NSClient++. Berikut adalah file pada NSC.ini yang harus
dirubah : [NRPE]
; NRPE PORT NUMBER ; This is the port the NRPEListener.dll will listen to.
port=5666 ;
; COMMAND TIMEOUT ; This specifies the maximum number of seconds that the NRPE daemon will
allow plug-ins to FINish executing before killing them off. command_timeout=60
; ; COMMAND ARGUMENT PROCESSING
; This option determines whether or not the NRPE daemon will allow clients
to specify arguments to commands that are executed. allow_arguments=1
; ; COMMAND ALLOW NASTY META CHARS
; This option determines whether or not the NRPE daemon will allow clients to specify nasty as in |`\[]{} characters in arguments.
allow_nasty_meta_chars=1 ;
; USE SSL SOCKET ; This option controls if SSL should be used on the socket.
use_SSL=1
Setiap setelah ada perubahan pada file NSC.ini, maka restart service NSClient++ pada service windows. Jika terjadi masalah pada NSClient++,
penulis dapat melakukan troubleshooting NSClient++ melalui mode test. Berikut adalah langkah-langkahnya.
Buka file nsclient++.exe dari command prompt, dan ketikan perintah berikut untuk mematikan service nsclient++.
C:\Program Files\NSClient++nsclient++.exe -stop
Selanjutnya jalankan nsclient++.exe dalam mode test dengan perintah sebagai berikut :
C:\Program Files\NSClient++nsclient++.exe test
Berikut adalah hasil mode test nsclient++ Launching test mode - client mode
d NSClient++.cpp1178 Enabling debug mode... d NSClient++.cpp551 Attempting to start NSCLient++ -
0.3.8.75 2010-05-27 d NSClient++.cpp969 Loading plugin: CheckDisk...
d NSClient++.cpp969 Loading plugin: Event log Checker.... d NSClient++.cpp969 Loading plugin: Helper function...
d NSClient++.cpp969 Loading plugin: CheckSystem... d \PDHCollector.cpp73 Autodetected w2k or later, using
w2k PDH counters. d NSClient++.cpp969 Loading plugin: CheckWMI...
d \PDHCollector.cpp110 Using index to retrive counternames
d NSClient++.cpp969 Loading plugin: File logger... l \FileLogger.cpp93
Log path is: C:\Program
Files\NSClient++\\nsclient.log d NSClient++.cpp969 Loading plugin: NRPE server w
SSL ...
d \NRPEListener.cpp91 Loading all commands from NRPE d \NRPEListener.cpp121 Starting NRPE socket...
d \PDHCollector.cpp130 Found countername: CPU: \Processor_total\ Process
or Time d NSClient++.cpp671 NSCLient++ - 0.3.8.75 2010-05-27
Started d \PDHCollector.cpp131 Found countername: UPTIME:
\System\System Up Time l NSClient++.cpp455 Using settings from: INI-file
d \PDHCollector.cpp132 Found countername: MCL:
\Memory\Commit Limit l NSClient++.cpp456 Enter command to inject or exit to
terminate... d \PDHCollector.cpp133 Found countername: MCB:
\Memory\Committed Bytes d \Socket.h669 Bound to: 0.0.0.0:5666
Dari mode test ini dapat dilihat plugin apa saja yang diload oleh NSClient++. Mode test ini sangat berguna untuk troubleshooting plugin yang
tidak dapat diload dan masalah komunikasi SSL antara client-server monitoring
.
4.4.2.4 Konfigurasi NRPE.cfg Ubuntu Server 8.04