Creating email notification rules
For the system to send email notifications, you need to create a rule that specifies who to email, what email server to use, what events to send emails about, and what information to include in email messages.
![Closed](https://knowledge.hitachivantara.com/@api/deki/files/28988/transparent.gif?revision=1)
•Enable — Turns on email notifications.
•Host — The hostname or IP address of the email server.
•Port — The port on which the email server listens for email messages.
•Security — The security protocol used by the email server (SSL or STARTTLS) or None if the email server doesn’t use a security protocol.
•Authenticated — Enable this if the email server requires authentication, then specify:
oIn the Username field, the username for an email account that’s authorized to establish the connection between the system and the email server.
oIn the Password field, the password for the email account.
![Closed](https://knowledge.hitachivantara.com/@api/deki/files/28988/transparent.gif?revision=1)
You use the email notification message settings to configure a template for formatting all email notifications sent by the system.
•From — The email address from which you want email notifications to be sent.
•Subject — The email subject.
•Body — The email message body.
Message variablesThis table lists the variables you can use to construct the email notification template. When it sends an email notification, the system replaces the variables with event-specific information.
Variable | Description |
---|---|
$severity |
Event severity: INFO, WARNING, or SEVERITY |
$subject |
A short description of the event |
$message |
Event message text |
$userName |
Name of the user responsible for the event |
$objectId |
Unique identifier for component affected by the event |
$subsystem |
Category for the component affected by the event |
$objectSourceId |
Unique identifier of the internal system component or process that was the source of the event. Value is [unknown] for most events. |
![Closed](https://knowledge.hitachivantara.com/@api/deki/files/28988/transparent.gif?revision=1)
•Email addresses — A comma-separated list of email addresses to send notification emails to.
•Severity Filter — The event severities about which to send email notifications. Can be one or more of these: INFO, WARNING, SEVERITY.
Administration App instructions
1.Click on System Configuration.
2.Click on the Notifications .
3.Click on the Register Notification button.
4.In the Type field, select Email.
5.Enter a name for the notification rule.
6.Configure the SMTP settings and message settings for the notification rule.
7.Specify a comma-separated list of emails to send notifications to.
8.Click on the Create button.
Related CLI command(s)
createNotificationRule
For information on running CLI commands, see CLI reference.
REST API instructions
POST /notifications
For information, see the administrative REST API documentation page and click on notifications > POST /notifications.
Trademarks, Legal disclaimer, Third-party software in this documentation
© 2017 Hitachi Vantara Corporation. All rights reserved.