免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 8059 | 回复: 2
打印 上一主题 下一主题

[其他] Nagios:host中contact group无法触发邮件告警 [复制链接]

论坛徽章:
1
午马
日期:2014-05-28 11:40:05
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2013-08-22 15:22 |只看该作者 |倒序浏览
Hi 大家好!

我有个nagios环境,有若干个host group,以前都是用admins接受邮件告警,没有问题。现在想区分告警收件人,所以新建了若干个contact group,每个contact group里有若干contacts。但是我发现在host里分配contact group发现无法成功触发email告警,一定要在service template定义的contact group才有效。
我不知道这是设计使然,还是我没有正确的设置?

先谢谢大家了!

论坛徽章:
1
午马
日期:2014-05-28 11:40:05
2 [报告]
发表于 2013-08-22 19:53 |只看该作者
重读了官方文档,看来就是这样设计的,host contact只负责host故障告警,service contact只负责service告警。
The decision to send out notifications is made in the service check and host check logic. The calculations for whether a notification is to be sent are only triggered when processing a host or service check corresponding to that notification;
Each service definition contains options that determine whether or not notifications can be sent out for warning states, critical states, and recoveries. Similiarly, each host definition contains options that determine whether or not notifications can be sent out when the host goes down, becomes unreachable, or recovers.

论坛徽章:
0
3 [报告]
发表于 2013-08-23 18:06 |只看该作者
对呀,对呀....就是这样的,需要在template模板里定义的
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP