| Compatibility : | 3.3.0 |
| Editions : |    |
| Platforms : |         |
Used to configure the body of alert emails. Like most event emails, it can be
defined globally for all events using the
wrapper.event.default.email.body property,
or for a specific event using the
wrapper.event.<event_name>.email.body
property.
The body property is a bit special, in that its value allows you to define a
multiline message body. The end of a line is indicated with the text "\n".
If you wish to place a single backslash in the text, use a double backslash
"\\". Any other character following a single "\" is undefined and may change
in the future.
It is possible to reference any of the Wrapper's
default environment variables,
or event handler variables
from anyplace within the text.
The default value defines a simple, but useful message body:
Java Service Wrapper Event Notification\\n\\nHost: %WRAPPER_HOSTNAME%\\nApp Name: %WRAPPER_NAME%\\n %WRAPPER_DISPLAYNAME%\\n\\nEvent: %WRAPPER_EVENT_NAME%
|
When formatted in the message, this will result in a message body like the following:
Java Service Wrapper Event Notification
Host: myhost
App Name: myapp
MyApplication
Event: jvm_started
|
The following example will simply display the host name, application name, and event name.
| Example: |
wrapper.event.default.email.body=Host: %WRAPPER_HOSTNAME%\\nApp Name: %WRAPPER_NAME%\\nEvent: %WRAPPER_EVENT_NAME%
|
The "<event_name>" portion of the property name can
be either "default" or any the Wrapper's
Event Types.
It is possible to attach or append recent log activity to an email using the
wrapper.event.<event_name>.email.attach_log
property.
Please see the overview of Event Mails for examples.
|