System events > The alerts.xml file

The alerts.xml file

The alerts.xml file is in <install directory>\conf. The default configuration allows certain events in the high, warning and error categories to publish to the user interface. You can edit the file to send the same events by email. This file is only for publishing events for Activator.

The default configuration of alerts.xml calls for publishing some but not all of the predefined events cataloged in Event tables. The default configuration reports events in the following general categories:

From an XML editor, you can edit the file to extend reporting to other categories of events.

Related topics

Send events by email

Use this procedure to configure alerts.xml to have Activator send events via email to any recipients. This procedure takes advantage of default settings and requires only minimal changes to alerts.xml to deliver events by email.

  1. Configure a community. Make sure to do the following:
  2. Make a copy of alerts.xml and keep it as a backup.
  3. Open alerts.xml for editing.
  4. Near the top of the file, find the Interval minutes element. You might want to edit the value. This element limits the number of emails that can be sent for the same event. For example, if messages are repeatedly rejected because of an unknown receiver error, only one email message is sent per hour if interval minutes is set to 60.
  5. Scroll to the bottom of the file. Here you can find commented-out elements as in the following example for specifying “from” and “to” addresses for emailed events.
  6. The following code shows address parameters at the bottom of the alerts.xml file.
  1. The first block of commented-out elements, identified by Community id="PC1", is for specifying “to” addresses with a specific community as the “from” address. A community routing ID is the value of the Community id element. By virtue of the routing ID, Activator uses the email address of the secure email protocol exchange for the community as the “from” address. Configuring this block is optional. It is useful if you have two or more communities.
  2. The second block of commented-out elements, identified by Community id="default", is for specifying default “from” and “to” addresses for emailed events. Configuring default addresses is required even if you use the optional first block. This is because some events are not associated with a community routing ID and the default “to” and “from” addresses must be used for such events.
  3. Uncomment the second block of commented-out elements for the default “to” and “from” addresses. Configuring this is required.
  4. Optionally, uncomment the first block of commented-out elements for a community-specific “from” address and one or more “to addresses.
  5. Use a community routing ID as the value of Community id.
  6. Activator uses the address of the secure email delivery exchange for the community as the “from” address. If such an address is not available, Activator uses the contact email in the community as the “from” address.
  7. Save and close alerts.xml.
  8. Restart Activator server.
  9. When an event defined in alerts.xml is triggered, email messages about the event are delivered to the specified “to” addresses.

Related topics

Editing alerts.xml

You can edit the alerts.xml file to alter the events that are published to the database or delivered by email. You must understand XML to change this file. The following describes some of the key elements in the file.

Related topics

Metadata for email events

The following metadata are available to all events in alerts.xml.

Metadata

Description

AlertDefinition.Name

Name of the alert definition

Event.Name

Name of event

Event.EventType

Type of event (usually same as Event.Name)

Event.EventLevel

Level of event (high, warning, error)

Event.Timestamp

Time event was triggered.

Event.ExtendedEventContent

Extra information that may be with the event

Event.NumberOfOccurances

Number of times the event has been published

The following metadata are available to events at the Messaging level (see Messaging) in the default configuration of alerts.xml. All of these fields names are included in generated email messages. Fields without data display as blank in email messages.

Related topics