- 论坛徽章:
- 0
|
帮忙看看 谢谢喽
define host{
name generic-host ; The name of this hosttemplate
notifications_enabled 1 ; Host notifications are enabled
event_handler_enabled 1 ; Host event handler is enabled
flap_detection_enabled 1 ; Flap detection is enabled
failure_prediction_enabled 1 ; Failure prediction is enabled
process_perf_data 1 ; Process performance data
retain_status_information 1 ; Retain status information across program restarts
check_interval 1
retain_nonstatus_information 1 ; Retain non-status information across program restarts
register 0 ; DONT REGISTER THIS DEFINITION - ITSNOT A REAL HOST, JUST A TEMPLATE!
}
#Since this is a simple configuration file, we only monitor one host -the
#local host (this machine).
define host{
use generic-host ; Name of host templateto use
host_name localhost
alias host
address 127.0.0.1
check_command check-host-alive
max_check_attempts 10
notification_interval 120
notification_period 24x7
notification_options d,r
contact_groups admins
}
define host{
use generic-host ; Name of host templateto use
host_name master
alias master
address 192.168.200.1
check_command check-host-alive
max_check_attempts 10
notification_interval 120
notification_period 24x7
notification_options d,r
contact_groups admins
}
define host{
use generic-host ; Name of host templateto use
host_name www.direction.cc
alias www
address 60.195.250.59
check_command check-host-alive
max_check_attempts 10
notification_interval 120
notification_period 24x7
notification_options d,r
contact_groups admins
}
###############################################################################
###############################################################################
#
#HOST GROUPS
#
###############################################################################
###############################################################################
#We only have one host in our simple config file, so there is no needto
#create more than one hostgroup.
define hostgroup{
hostgroup_name host
alias Test Servers
members localhost
}
define hostgroup{
hostgroup_name master
alias Master Servers
members master,localhost
} |
|