Friday, June 8, 2012

Setting FAN Nagios berbasis CentOS 5.3



Nagios adalah framework network monitoring system open source yang terbaik. Nagios bersifat modular, mudah digunakan, dan memiliki skalabilitas tinggi. Modul atau plugin pada Nagios sangat sederhana dan Anda pun dapat membuatnya guna melengkapi sistem pengecekan pada Nagios sesuai dengan kebutuhan Anda. Untuk men-download source Fan Nagios klik URL ini http://www.fullyautomatednagios.org/wordpress/download/
Aktifkan sistem :
-bash-3.2 # service httpd start
-bash-3.2 # service nagios start
Lihat Nagios :
http://192.168.30.108/nagios/
Masukkan username nagiosadmin dan password nagiosadmin
Mengkonfigurasi Nagios untuk menambah obyek pengecekan :
-bash-3.2 # cd /etc/nagios/objects
-bash-3.2 # cp localhost.cfg router1.cfg
-bash-3.2 # nano router1.cfg
Isi file router1.cfg yang mengalami perubahan :
# Define a host for the local machine
define host{
use linux-server ; Name of host template to use
; This host definition will inherit all variables that are defined
; in (or inherited by) the linux-server host template definition.
host_name router1
alias router1
address 192.168.30.1

}
# Define an optional hostgroup for Linux machines
define hostgroup {
hostgroup_name gateway ; The name of the hostgroup
alias Mikrotik Router ; Long name of the group
members router1 ; Comma separated list of hosts that belong to this group

}
# Define a service to "ping" the local machine
define service {
use local-service ; Name of service template to use
host_name router1
service_description PING
check_command check_ping!100.0,20%!500.0,60%

}
-bash-3.2 # vi /etc/nagios/nagios.cfg
Tambahkan sebaris pada file /etc/nagios/nagios.cfg
# Definitions for monitoring the local (Linux) host
cfg_file=/etc/nagios/objects/localhost.cfg
cfg_file=/etc/nagios/objects/router1.cfg

-bash-3.2 # service nagios reload
Running configuration check...done.
Reloading nagios configuration...done

.

.

.

Selengkapnya...

Related Posts Plugin for WordPress, Blogger...