16.4 Event mail format information file (eventmail.properties)
This file specifies the event email format.
Format
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE properties SYSTEM "http://java.sun.com/dtd/properties.dtd"> <properties> <comment>Event mail properties</comment> <!-- Mail subject --> <entry key="mail_subject">mail-subject</entry> <!-- Mail header --> <!-- Create data by replacing the following parameter characters enclosed in curly brackets { } with the corresponding data: {EVENT_COUNT} : Number of events --> <entry key="mailheader">mail-header</entry> <!-- Mail footer --> <entry key="mailfooter">mail-footer</entry> <!-- Mail format --> <!-- Create data by replacing the following parameter characters enclosed in curly brackets { } with the corresponding data: {STATUS} : Whether the event is checked {ALERT_LEVEL} : Severity {MESSAGE_ID} : Event number {MESSAGE_CONTENT} : Event description {NOTE} : Detailed information for the event {EVENT_DATE} : Date and time when the event was registered {MESSAGE_TYPE} : Event type {EVENT_ORIGIN} : Source of the event --> <entry key="mailformat">mail-format</entry> </properties>
Setting items
The following describes the setting items of the event email format information file:
Setting item |
Description |
---|---|
mail_subject |
Specify the email subject name. |
mailheader |
Specify the email header. |
mailfooter |
Specify the email footer. |
mailformat |
Specify the email text. |
The table below lists the parameter characters you can use to specify event email. The parameter characters used in the file are replaced with the corresponding data when an email is sent.
Parameter character |
Description |
---|---|
{EVENT_COUNT} |
Number of events |
{STATUS} |
Whether the event is checked |
{ALERT_LEVEL} |
Severity |
{MESSAGE_ID} |
Event number |
{MESSAGE_CONTENT} |
Event description |
{NOTE} |
Detailed information for the event |
{EVENT_DATE} |
Date and time when the event was registered |
{MESSAGE_TYPE} |
Event type |
{EVENT_ORIGIN} |
Source of the event |
Example
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE properties SYSTEM "http://java.sun.com/dtd/properties.dtd"> <properties> <comment>Event mail properties</comment> <!-- Mail subject --> <entry key="mail_subject">Event Mail Information</entry> <!-- Mail header --> <!-- Create data by replacing the following parameter characters enclosed in curly brackets { } with the corresponding data. {EVENT_COUNT} : Number of events --> <entry key="mailheader"><![CDATA[Number of events: {EVENT_COUNT}]]></entry> <!-- Mail footer --> <entry key="mailfooter"><![CDATA[ //////////////////////////////////// * Company: XXXXXXX * Address: XXXXXXXXX X-X-X * MAIL: XXXXXX@XXX.XX.XX * TEL: XXX-XXXX-XXXX //////////////////////////////////// ]]></entry> <!-- Mail format --> <!-- Create data by replacing the following parameter characters enclosed in curly brackets { } with the corresponding data. {STATUS} : Whether the event is checked {ALERT_LEVEL} : Severity {MESSAGE_ID} : Event number {MESSAGE_CONTENT} : Event description {NOTE} : Detailed information for the event {EVENT_DATE} : Date and time when the event was registered {MESSAGE_TYPE} : Event type {EVENT_ORIGIN} : Source of the event --> <entry key="mailformat"><![CDATA[ Whether the event is checked : {STATUS} Severity : {ALERT_LEVEL} Event number : {MESSAGE_ID} Event description : {MESSAGE_CONTENT} Detailed information for the event : {NOTE} Date and time when the event was registered : {EVENT_DATE} Event type : {MESSAGE_TYPE} Source of the event : {EVENT_ORIGIN} ]]></entry> </properties>