日期:2014-05-16  浏览次数:20571 次

nagios关于escalation的疑惑
---hosts.cfg
define host{
host_name Fedora
address 192.168.1.5
max_check_attempts 3
check_interval 2
retry-interval 2
check_command check_host_alive
check_period 24x7
contact_groups admin
notification_interval 6
notification_period 24x7
notification_options d,u,r
}

---escalcation.cfg
define hostescalation{
host_name Fedora
first_notification 1
last_notification 3
notification_options d,u,r
notification_period 24x7
notification_interval 6
contact_groups admin
}

define hostescalation{
host_name Fedora
first_notification 4
last_notification 0
notification_options d,u,r
notification_period 24x7
notification_interval 90
contact_groups admin
}

nagios监控一切正常,能收到报警邮件。现在想实现这现一个报警功能:前三次报警(包括Warn,Critical,Undown等)都发到邮箱。第4次开始,直到恢复,就是90分钟发一次,用了escalation扩展,主机配置如上所示(服务配置就不贴了),但是没效果,邮箱还是每几分钟一直发,请问哪里出错了?查了好多资料,都说是这样配置,很疑惑,请回答,谢谢!!


------解决方案--------------------
notification_interval 6
把这样的都改成
notification_interval 90

最好把同样的host的共同参数设置搞成template
你这样一个host搞了那么多参数 host多了 不好管理