Ambari 配置告警
配置Manage Notifications

建立告警通知
配置告警
詳見附件163郵箱授權碼擷取
定義發送郵件格式
1、下載下傳 alert-templates.xml:https://github.com/apache/ambari/blob/branch-2.1/ambari-server/src/main/resources/alert-templates.xml
2、
将alert-templates.xml移動到
/var/lib/ambari-server/resources/
3、 編輯/etc/ambari-server/conf/ambari.properties檔案
在檔案最後一行增加 alerts.template.file=/var/lib/ambari-server/resources/alert-templates.xml
4、 重新開機ambariserver
ambari-server restart
5、 檢視ambariserver日志
tail -f /var/log/ambari-server/ambari-server.log
官方參考文檔
http://docs.hortonworks.com/HDPDocuments/Ambari-2.2.0.0/bk_Ambari_Users_Guide/content/_customizing_notification_templates.html
附件
1、打開設定àPOP3/SMTP/IMAP
2、開啟POP3/SMTP/IMAP服務
3、擷取授權密碼