我们正在使用Shinken框架来监视我们的服务器,因为我有这样一个场景,我想每天只执行一次服务检查,每天在1 AM上,我如何配置它?
使用check_interval或time_period我们能实现这一点吗?
发布于 2017-06-11 12:50:19
您需要设置check_interval和check_period。
例如,我们每天上午9点使用check进行检查系统更新。只是改变时间和服务,以满足您的需要。
define timeperiod {
timeperiod_name morning_check
alias morning_check
monday 09:00-09:01
tuesday 09:00-09:01
wednesday 09:00-09:01
thursday 09:00-09:01
friday 09:00-09:01
saturday 09:00-09:01
sunday 09:00-09:01
}
define service {
service_description updates
host_name Docker
use svc-pnp,local_standard_mail
check_command ext_nrpe!check_updates!null
check_period morning_check
check_interval 1440
max_check_attempts 1
notification_interval 1440
}https://stackoverflow.com/questions/44475293
复制相似问题