Nagios通知间隔和第一个通知延迟

我曾经在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 } 

它embedded了以下服务模板:

 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 } 

如果“is_volatile”等于“1”,则通知间隔为IGNORED。 这个答案假定您正在接收关于检查处于“UNKNOWN”或“CRITICAL”状态的电子邮件。