案例:
以下是在自定义配置文件pr_config.cfg里,定义只发送一封报警邮件!
define serviceescalation{
host_name apache1,apache2,apache3,m_apache1,m_apache2,apache_st1,apache_st2
service_description http
first_notification 1
last_notification 2
notification_interval 0
escalation_period PR24x7
escalation_options w,u,c,r
contact_groups PR-SYS
}
详细见: http://nagios.sourceforge.net/docs/3_0/escalations.html
评论