0

最近我用 postfix 配置了 Nagios。每当服务器/服务关闭时,它会每 1 小时发送一次邮件警报,直到该系统/服务启动。如何配置 nagios 以便它必须仅发送一次系统/服务关闭的邮件警报,并且当状态更改为 up nagios 必须通知我时再次发送邮件警报。

4

2 回答 2

2

在您的主机/主机模板/服务/服务模板集 notification_interval 0

于 2012-12-12T13:09:45.630 回答
0

在您的主机定义中,将 notification_interval 设置为 0:

define host{
  use                     generic-host
  host_name               example
  address                 example.com
  notification_interval   0
}
于 2017-06-12T08:11:20.380 回答