歡迎您光臨本站 註冊首頁

Nagios:host中contact group無法觸發郵件告警

←手機掃碼閱讀     火星人 @ 2014-03-03 , reply:0

Nagios:host中contact group無法觸發郵件告警

Hi 大家好!

我有個nagios環境,有若干個host group,以前都是用admins接受郵件告警,沒有問題。現在想區分告警收件人,所以新建了若干個contact group,每個contact group里有若干contacts。但是我發現在host里分配contact group發現無法成功觸發email告警,一定要在service template定義的contact group才有效。
我不知道這是設計使然,還是我沒有正確的設置?

先謝謝大家了!
《解決方案》

重讀了官方文檔,看來就是這樣設計的,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.
《解決方案》

對呀,對呀....就是這樣的,需要在template模板里定義的

[火星人 ] Nagios:host中contact group無法觸發郵件告警已經有658次圍觀

http://coctec.com/docs/service/show-post-210.html