过去,我在Nagios中使用了这两个参数( first_notification_delay,notification_interval ),直到现在对我来说都是完美的。现在我已经添加了使用nrpe命令的新检查。上述两个参数不受影响。我每隔十分钟就会收到一封邮件。
我必须更改主机nsclinet.cfg文件上的任何内容吗?
我正在使用的服务定义是
define service {
use generic-win-logfile
host_name RuleS_TI_E405,RuleS_TI_E464
service_description check_logfilesSmsDispatcher_Process
check_command check_nrpe!check_logfilesSmsDispatcher_Process
}
它从以下服务模板继承:
define service{
name generic-win-logfile
active_checks_enabled 1
passive_checks_enabled 0
parallelize_check 1
obsess_over_service 1
check_freshness 0
notifications_enabled 1
event_handler_enabled 1
process_perf_data 0
retain_status_information 1
retain_nonstatus_information 1
is_volatile 1
check_period 24x7
max_check_attempts 3
normal_check_interval 10 ; check every 5 minutes
retry_check_interval 2
contact_groups admins
notification_options u,c ; notify unknown, warn, >recovery
first_notification_delay 36
notification_interval 180 ; ignored for volatile >services
notification_period 24x7
register 0
}
发布于 2015-12-28 19:31:02
如果'is_volatile‘等于'1’,则忽略通知间隔。这个答案假设你收到了关于支票处于“未知”或“临界”状态的电子邮件。
https://serverfault.com/questions/734907
复制相似问题