Chapter 18. Event Notifications
18.1. Configuring Event Notifications in the Administration Portal
The Red Hat Virtualization Manager can notify designated users via email when specific events occur in the environment that the Red Hat Virtualization Manager manages. To use this functionality, you must have access to an email server that can accept automated messages from RHVM and deliver them to a distribution list. Only email notifications can be configured through the Administration Portal. SNMP traps must be configured on the Manager machine.
Procedure 18.1. Configuring Event Notifications
- Ensure that you have access to an email server that can accept automated messages from RHVM and deliver them to a distribution list.
- Use the Users resource tab, tree mode, or the search function to find and select the user to which event notifications will be sent.
- Click the Event Notifier tab in the details pane to list the events for which the user will be notified. This list is blank if you have not configured any event notifications for that user.
- Click Add Event Notification window.to open the
Figure 18.1. The Add Events Notification Window
- Use thebutton or the subject-specific expansion buttons to view the events.
- Select the appropriate check boxes.
- Enter an email address in the Mail Recipient field.
- Clickto save changes and close the window.
- On the Manager machine, copy
ovirt-engine-notifier.conf
to a new file called90-email-notify.conf
:cp /usr/share/ovirt-engine/services/ovirt-engine-notifier/ovirt-engine-notifier.conf /etc/ovirt-engine/notifier/notifier.conf.d/90-email-notify.conf
- Edit
90-email-notify.conf
, deleting everything except theEMAIL Notifications
section. - Enter the correct email variables, as in the example below. This file overrides the values in the original
ovirt-engine-notifier.conf
file.#---------------------# # EMAIL Notifications # #---------------------# # The SMTP mail server address. Required. MAIL_SERVER=myemailserver.example.com # The SMTP port (usually 25 for plain SMTP, 465 for SMTP with SSL, 587 for SMTP with TLS) MAIL_PORT=25 # 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= # 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= # Indicates type of encryption (none, ssl or tls) should be used to communicate with mail server. MAIL_SMTP_ENCRYPTION=none # If set to true, sends a message in HTML format. HTML_MESSAGE_FORMAT=false # Specifies 'from' address on sent mail in RFC822 format, if supported by mail server. MAIL_FROM=rhevm2017@example.com # Specifies 'reply-to' address on sent mail in RFC822 format. MAIL_REPLY_TO= # Interval to send smtp messages per # of IDLE_INTERVAL MAIL_SEND_INTERVAL=1 # Amount of times to attempt sending an email before failing. MAIL_RETRIES=4
Note
See/etc/ovirt-engine/notifier/notifier.conf.d/README
for more options. - Enable and restart the ovirt-engine-notifier service to activate the changes you have made:
# systemctl daemon-reload
# systemctl enable ovirt-engine-notifier.service
# systemctl restart ovirt-engine-notifier.service
The specified user now receives emails based on events in the Red Hat Virtualization environment. The selected events display on the Event Notifier tab for that user.