nagios不會自動輪詢
最近在搭建nagios監控,我的服務監控不會自動輪詢(service的last check不會改變),host 的last check會刷新、
我的相關配置文件如下,麻煩高手指點下,謝謝
192.168.1.45.cfg 文件
define host{
use linux-server
host_name xxxx
alias xxxx
address 192.168.1.45
}
define service{
use generic-service
host_name xxxx
service_description check_1
check_command check_nrpe!check_1
max_check_attempts 2
normal_check_interval 3
}
templates.cfg文件
define service{
name generic-service
active_checks_enabled 1
passive_checks_enabled 1
parallelize_check 1
obsess_over_service 1
check_freshness 0
notifications_enabled 1
event_handler_enabled 1
flap_detection_enabled 1
failure_prediction_enabled 1
process_perf_data 1
retain_status_information 1
retain_nonstatus_information 1
is_volatile 0
check_period 24x7
max_check_attempts 2
normal_check_interval 3
retry_check_interval 1
contact_groups admins
notification_options w,u,c,r
notification_interval 60
notification_period 24x7
register 0
}
timeperiods.cfg文件
define timeperiod{
timeperiod_name 24x7
alias 24 Hours A Day, 7 Days A Week
sunday 00:00-24:00
monday 00:00-24:00
tuesday 00:00-24:00
wednesday 00:00-24:00
thursday 00:00-24:00
friday 00:00-24:00
saturday 00:00-24:00
}
[火星人
]
nagios不會自動輪詢已經有664次圍觀
http://coctec.com/docs/service/show-post-533.html