Notification (CALL)

Notification objects are customized messages and requests that can be assigned to other executable objects. When the execution of an object triggers a Notification, either an e-mail or an online message is sent. The Notification provides information or requires user interaction as a reaction to the execution of the object.

As an administrator or as a developer and object designer, you create Notifications and assign them to executable objects. There are four different templates for creating Notifications, depending on the type of content you need. For each template you can choose the message type, which further determines the content.

As an operator, you receive Notifications and react to them accordingly. They are either e-mails or online messages. You access the online messages through the Requests area in the menu bar. For more information, see Requests.

Example: A Job usually needs few minutes to finish successfully. If it takes longer, something might have gone wrong. You want to be informed of this situation as soon as possible. For this purpose, you create a Notification object and assign it to the Job. You do this in the Actions on Runtime Deviations section on the Runtime Page of the object definition.

This page includes the following:

Notification Templates

When you create a Notification object, you must select a template: ALARM, MAIL, SLM or STANDARD. All templates except STANDARD come with some predefined settings and a template-specific script on the Process page. You can change the predefined settings.

Content

The script determines the content of the message that is sent. The script uses script variables that read data (task name, runID, and so forth) from the objects that they refer to, and write it to the message text. The message text is delivered in the language that you have selected at login.

Type of Message

When you define the settings of the Notification object, you select the type of message that it will send. It can be Request, Message, Alert or E-mail.

Escalation

You can configure Alerts and Requests to triggers an escalation. Given certain conditions (the request that they send remains unattended or is rejected), another Notification object is sent.

ALARM

The ALARM template is designed to produce requests in case situations in which you want to send an alert message. The user who executes the object to which the ALARM is assigned is automatically specified as the receiver of the message.

Predefined Settings

The following parameters are set by default on the Notification page:

For script examples, see Examples of Notification Object Scripting.

MAIL

MAIL Notifications are templates for sending e-mail messages.

Prerequisites

For more information, see UC_CLIENT_SETTINGS - Various Client Settings.

Predefined Settings

The following parameters are set by default in the Notification page. You can change them, if necessary:

SLM

SLO objects specify actions that the system should carry out if a service (executable objects) is fulfilled/not fulfilled. Sending Notifications is one of the possibilities.

The following SLM Notification templates are available and ready to use:

Predefined Settings

The Automation Engine provides the following script variables in relation with SLO objects. They retrieve data from the monitored services. They also provide the reasons why the required criteria were not fulfilled:

For more information, see Service Level Objective (SLO).

STANDARD

STANDARD Notifications are useful if you want to define your own messages.

Predefined Settings

The following parameters are set by default in the Notification page:

Defining Notification Objects

A Notification object definition is made up of the following pages:

To Define the Notification-Specific Settings

  1. On the Notification page, define the Recipients of the notifications.

    The script in ALARM Notifications is configured to set the user who executes the object as recipient of the messages. You can specify additional ones here.

    Allowed input: Select a User or pick a variable

    1. In Recipients, select a User or a User Group. Either type the name of the user or select it from the list. You can also enter an e-mail address.
    2. Optionally, select a Calendar and one of the Calendar events that are assigned to it. The Notification is sent when this Calendar condition applies.
    3. Click Add to assign this combination of recipients and dates. You can add as many combinations as you need.
  2. If you select a template other than STANDARD, the Subject and body of the text in the Message section are predefined.

    To change them, do the following:

    1. Type the Subject or click the variable icon to insert one. If you leave it empty, an e-mail subject is created automatically. This subject is as follows:

      Name of the Notification object + RunID + Client.

    2. Enter the body of the Message. You can use variables. There is no limit as to the number of characters you can use.

    Important! If you create your texts using the Automation Engine scripting language on the Process page, these settings are ignored.

  3. The Settings vary depending on the selected template.

    1. The Priority serves for information purposes only. It is displayed in the e-mails and in the online messages.
    2. The Type determines how it is sent and whether it can be escalated or not.
    3. Optionally, activate SNMP connection to create an SNMP trap when a Notification starts.

      Prerequisites:

      • SNMP must be installed on the computer and must run as a service.
      • The AE SNMP sub Agent must be installed.
      • The SNMP connection must be activated in the Automation Engine INI file (ucsrv.ini) by setting the SNMP parameter to snmp=2.

      This option is not available for e-mail Notifications.

      Tip: Use the state of the art JMX solution rather than the SNMP technology. SNMP uses the less secure UPD network protocol and does not support the whole range of AE functions.

  4. Activate Send Additional E-mail to inform the users (recipients of the message) that the Notification has been triggered. The addresses in the User object definitions are applied. If two addresses have been defined for the responsible User, the e-mail is sent to both of them.

    You can also specify that reports should be attached to the e-mail:

    1. (Job objects only) In Attach Reports, enter the RunID of the task that triggered the e-mail.

      A file is sent per report type. The name of the file is as follows:

      RunID.report type.txt.

      Example:002523059.LOG.txt.

      The Source options are displayed, where you indicate where the reports should be taken from:

      • Database

        Only the default Job reports that are stored in the Automation Engine database are attached.

      • External Files

        Files that are stored in the Agent computer are attached. This also applies to the Job report if it has been stored as a file. It applies to registered output files too, if available.

        The recipient must have the Access to reports right for external reports (EXTREP) and Jobs. Otherwise, the files are not attached and an error message is written to the notification report.

        The Agent on which the Job has been executed must be active and the files must exist.

      • All

        Both reports from the database and from the Agent computer are attached. If the same report is available in both, it is sent only once.

        If data is available in the Agent, two e-mails are sent, one from the Automation Engine and another one from the Agent.

    2. In AE Attachment, specify the path and the name of the file that should be attached. It must be stored in a directory that can be accessed by the E-mail connection.

      Maximum length: 255 characters. If you use variables, the length of the path must not be longer than 255 characters when the variables are resolved.

  5. The Escalate option is not available for e-mail Notifications. For all others, you can define the time after which a second Notification is sent if there is no response.

  6. If you activate Quit current Notification, sending the follow-up Notification automatically closes the original one with the status ENDED_ESCALATED.

Triggering Notifications

You can configure objects to send Notifications as follows:

Information from the Read Buffer

Notification that start as a result of the conditions that are defined for tasks in Workflows or Schedules contain detailed system information. This information can be read in the script of the Notification from the Read Buffer. For this purpose, the :READ script statement is used.

Examples

:READ &UC_CAUSE_NAME,,
:READ &UC_CAUSE_NR,,
:READ &UC_CAUSE_STATE,,
:READ &UC_CAUSE_RETCODE,,

Reacting to Notifications

If there are messages or requests that you should process, the notifications area on the menu bar draws your attention to them, see Requests.

Depending on the type of notification you receive, there are various ways to react to them:

See also: