三:A_host.cfg 的配置
define host{
name HZ-host ; The name of this template
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
max_check_attempts 10
retain_status_information 1 ; Retain status information across program restarts
retain_nonstatus_information 1 ; Retain non-status information across program restarts
notification_period 24x7 ; Send host notifications at any time
register 0 ; DONT REGISTER THIS DEFINITION - ITS NOT A REAL HOST, JUST A TEMPLATE!
}
define host{
host_name A_host
address 192.168.1.10
use HZ-host
check_period 24x7
check_interval 5
retry_interval 1
check_command check-host-alive
notification_period 24x7
notification_interval 0
notification_options d,u,r
contact_groups HZ-group
}
define hostgroup{
hostgroup_name hostgroup
alias grouphost
members A_host 。。。。。
}
阅读(587) | 评论(0) | 转发(0) |