ovirt告警郵件通知設置

ovirt告警郵件設置

啓用ovirt-engine-notifier服務來根據指定是事件發出郵件通知

  • 配置ovirt-engine-notifier
# 從174行開始修改
# vi /usr/share/ovirt-engine/services/ovirt-engine-notifier/ovirt-engine-notifier.conf
# The SMTP mail server address. Required.
MAIL_SERVER=smtp.163.com

# The SMTP port (usually 25 for plain SMTP, 465 for SMTP with SSL, 587 for SMTP with TLS)
MAIL_PORT=465

# Required if SSL or TLS enabled to authenticate the user. Used also to specify 'from' user address if mail server
# supports, when MAIL_FROM is not set. Address is in RFC822 format
MAIL_USER=xxxxxx@163.com

# Required to authenticate the user if mail server requires authentication or if SSL or TLS is enabled
SENSITIVE_KEYS="${SENSITIVE_KEYS},MAIL_PASSWORD"
MAIL_PASSWORD=xxxxxx

# Indicates type of encryption (none, ssl or tls) should be used to communicate with mail server.
MAIL_SMTP_ENCRYPTION=ssl # 更改使用ssl,默認none收不到郵件

# If set to true, sends a message in HTML format.
HTML_MESSAGE_FORMAT=true

# Specifies 'from' address on sent mail in RFC822 format, if supported by mail server.
MAIL_FROM=xxxxxx@163.com
  • 管理界面配置

在 ovirt-engine “管理”-“用戶” ,選定用戶(admin),在下方的菜單中選擇:“事件通知器”-“管理事件”,選定需要告警的事件,配置郵件接收者。

這裏寫圖片描述

  • 配置完成,啓動服務:
# systemctl start ovirt-engine-notifier     
# systemctl enable ovirt-engine-notifier    

1

發佈了232 篇原創文章 · 獲贊 183 · 訪問量 125萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章