Set up email notifications for alerts
If you want email notifications to be sent when alerts occur, you must provide information about your SMTP server. You must also enter email addresses for the recipients of alert notifications.
-
You are signed in to the Grid Manager using a supported web browser.
-
You have the Manage Alerts or Root Access permission.
Because alarms and alerts are independent systems, the email setup used for alert notifications is not used for alarm notifications and AutoSupport messages. However, you can use the same email server for all notifications.
If your StorageGRID deployment includes multiple Admin Nodes, you can select which Admin Node should be the preferred sender of alert notifications. The same “preferred sender” is also used for alarm notifications and AutoSupport messages. By default, the primary Admin Node is selected. For details, see the instructions for administering StorageGRID.
-
Select ALERTS > Email setup.
The Email Setup page appears.
-
Select the Enable Email Notifications check box to indicate that you want notification emails to be sent when alerts reach configured thresholds.
The Email (SMTP) Server, Transport Layer Security (TLS), Email Addresses, and Filters sections appear.
-
In the Email (SMTP) Server section, enter the information StorageGRID needs to access your SMTP server.
If your SMTP server requires authentication, you must provide both a username and a password.
Field Enter Mail Server
The fully qualified domain name (FQDN) or IP address of the SMTP server.
Port
The port used to access the SMTP server. Must be between 1 and 65535.
Username (optional)
If your SMTP server requires authentication, enter the username to authenticate with.
Password (optional)
If your SMTP server requires authentication, enter the password to authenticate with.
-
In the Email Addresses section, enter email addresses for the sender and for each recipient.
-
For the Sender Email Address, specify a valid email address to use as the From address for alert notifications.
For example:
storagegrid-alerts@example.com
-
In the Recipients section, enter an email address for each email list or person who should receive an email when an alert occurs.
Select the plus icon to add recipients.
-
-
If Transport Layer Security (TLS) is required for communications with the SMTP server, select Require TLS in the Transport Layer Security (TLS) section.
-
In the CA Certificate field, provide the CA certificate that will be used to verify the identify of the SMTP server.
You can copy and paste the contents into this field, or select Browse and select the file.
You must provide a single file that contains the certificates from each intermediate issuing certificate authority (CA). The file should contain each of the PEM-encoded CA certificate files, concatenated in certificate chain order.
-
Select the Send Client Certificate check box if your SMTP email server requires email senders to provide client certificates for authentication.
-
In the Client Certificate field, provide the PEM-encoded client certificate to send to the SMTP server.
You can copy and paste the contents into this field, or select Browse and select the file.
-
In the Private Key field, enter the private key for the client certificate in unencrypted PEM encoding.
You can copy and paste the contents into this field, or select Browse and select the file.
If you need to edit the email setup, select the pencil icon to update this field.
-
-
In the Filters section, select which alert severity levels should result in email notifications, unless the rule for a specific alert has been silenced.
Severity Description Minor, major, critical
An email notification is sent when the minor, major, or critical condition for an alert rule is met.
Major, critical
An email notification is sent when the major or critical condition for an alert rule is met. Notifications are not sent for minor alerts.
Critical only
An email notification is sent only when the critical condition for an alert rule is met. Notifications are not sent for minor or major alerts.
-
When you are ready to test your email settings, perform these steps:
-
Select Send Test Email.
A confirmation message appears, indicating that a test email was sent.
-
Check the inboxes of all email recipients and confirm that a test email was received.
If the email is not received within a few minutes or if the Email notification failure alert is triggered, check your settings and try again. -
Sign in to any other Admin Nodes and send a test email to verify connectivity from all sites.
When you test alert notifications, you must sign in to every Admin Node to verify connectivity. This is in contrast to testing alarm notifications and AutoSupport messages, where all Admin Nodes send the test email.
-
-
Select Save.
Sending a test email does not save your settings. You must select Save.
The email settings are saved.
Information included in alert email notifications
After you configure the SMTP email server, email notifications are sent to the designated recipients when an alert is triggered, unless the alert rule is suppressed by a silence. See Silence alert notifications.
Email notifications include the following information:
Callout | Description |
---|---|
1 |
The name of the alert, followed by the number of active instances of this alert. |
2 |
The description of the alert. |
3 |
Any recommended actions for the alert. |
4 |
Details about each active instance of the alert, including the node and site affected, the alert severity, the UTC time when the alert rule was triggered, and the name of the affected job and service. |
5 |
The hostname of the Admin Node that sent the notification. |
How alerts are grouped
To prevent an excessive number of email notifications from being sent when alerts are triggered, StorageGRID attempts to group multiple alerts in the same notification.
Refer to the following table for examples of how StorageGRID groups multiple alerts in email notifications.
Behavior | Example |
---|---|
Each alert notification applies only to alerts that have the same name. If two alerts with different names are triggered at the same time, two email notifications are sent. |
|
For a specific alert on a specific node, if the thresholds are reached for more than one severity, a notification is sent only for the most severe alert. |
|
The first time an alert is triggered, StorageGRID waits 2 minutes before sending a notification. If other alerts with the same name are triggered during that time, StorageGRID groups all of the alerts in the initial notification. |
|
If an another alert with the same name is triggered, StorageGRID waits 10 minutes before sending a new notification. The new notification reports all active alerts (current alerts that have not been silenced), even if they were reported previously. |
|
If there are multiple current alerts with the same name and one of those alerts is resolved, a new notification is not sent if the alert reoccurs on the node for which the alert was resolved. |
|
StorageGRID continues to send email notifications once every 7 days until all instances of the alert are resolved or the alert rule is silenced. |
|
Troubleshoot alert email notifications
If the Email notification failure alert is triggered or you are unable to receive the test alert email notification, follow these steps to resolve the issue.
-
You are signed in to the Grid Manager using a supported web browser.
-
You have the Manage Alerts or Root Access permission.
-
Verify your settings.
-
Select ALERTS > Email setup.
-
Verify that the Email (SMTP) Server settings are correct.
-
Verify that you have specified valid email addresses for the recipients.
-
-
Check your spam filter, and make sure that the email was not sent to a junk folder.
-
Ask your email administrator to confirm that emails from the sender address are not being blocked.
-
Collect a log file for the Admin Node, and then contact technical support.
Technical support can use the information in the logs to help determine what went wrong. For example, the prometheus.log file might show an error when connecting to the server you specified.