nagios3 설치 방법(ubuntu 기준)
# sudo apt-get install nagios3 nagios-nrpe-plugin -y
메일설정이다 internet site 선택
ok
암호 입력
http://localhost/nagios3/
id : nagiosadmin
pass : 입력했던 암호
host 등록(client 설치 안하고 사용가능한)
# cd /etc/nagios3/conf.d/
# cp localhost_nagios2.cfg konet.cfg
# vikonet.cfg (테스트로 코넷등록)
# 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 to use
host_name konet
address 1
}
# 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.
define service{
use generic-service ; Name of service template to use
host_name localhost
service_description Disk Space
check_command check_all_disks!20%!10%
}
# Define a service to check the number of currently logged in
# users on the local machine. Warning if > 20 users, critical
# if > 50 users.
define service{
use generic-service ; Name of service template to use
host_name localhost
service_description Current Users
check_command check_users!20!50
}
# Define a service to check the number of currently running procs
# on the local machine. Warning if > 250 processes, critical if
# > 400 processes.
define service{
use generic-service ; Name of service template to use
host_name localhost
service_description Total Processes
check_command check_procs!250!400
}
http://localhost/nagios3/
접속해서 services 눌러보면 저화면이 뜬다 초기에는 pending 이라고 떠 있지만
시간이 지나면 위와 같이 정상적으로 나타난다.
'monitoring' 카테고리의 다른 글
nagios3 메일 설정 (0) | 2014.07.10 |
---|---|
Sorry, but Nagios is currently not checking for external commands, so your command will not be committed! (0) | 2014.07.04 |
zabbix server is not running the information displayed may not be current (0) | 2014.06.25 |
zabbix 한글 설정 (0) | 2014.06.24 |
zabbix 설치 (0) | 2014.06.23 |