filmov
tv
Nagios-Server adding multiple hosts to monitor them via ping

Показать описание
Why Nagios:
Open-source
Customized Dashboards
Ease of Use
Infinite Scalability
Data in Real Time
Network Security
-------------------------------------------------------------
Starting to adding the host
$ cd /usr/local/nagios/etc/
$ mkdir hosts services
$ chown nagios:nagios hosts/ services/
# Paste the following in the file
cfg_dir=/usr/local/nagios/etc/hosts
cfg_dir=/usr/local/nagios/etc/services
# Go to hosts
$ cd /usr/local/nagios/etc/hosts
$ nano YOURHOSTFILENAME.cfg
# Paste the following there
define host{
name linux-box ; Name of this template
use generic-host ; Inherit default values
check_period 24x7
check_interval 5
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 linux-box ; Inherit default values from a template
host_name linux ; The name we're giving to this server
alias linux ; A longer name for the server
address ; IP address of Remote Linux host
}
# Go to services
$ cd /usr/local/nagios/services
$ nano YOURSERVICESNAME.cfg
# Paste the following there
define service{
use generic-service
host_name changeme
service_description check-host-alive
check_command check-host-alive
}
Комментарии