11.15 NotesMail

Use this Knowledge Script to send a mail message containing AppManager event information to one or more Lotus Domino/Notes email users. To use this script, you must have a Domino Notes server, and the Notes server must be on the computer initiating the Action, either on the management server or on the managed client.

By default, the event information includes the computer name of the managed client and the event severity. You can select additional information to include.

You can also construct a custom message to send.

This script raises an event if you select the custom message format but neglect to enter any text for the custom message body. Under these circumstances, the script continues to execute and uses the standard message format.

11.15.1 Setting Parameter Values

Set the following parameters as needed:

Parameter

How to Set It

Event Notification

Event severity -- Action warning

Set the event severity level, from 1 to 40, to indicate the importance of an event in which the NotesMail job returns a warning. The default is 35 (magenta event indicator).

Event severity -- Action failure

Set the event severity level, from 1 to 40, to indicate the importance of an event in which the NotesMail job fails. The default is 5 (red event indicator).

Severity Configuration

Minimum event severity for Action

Set the minimum event severity level, from 1 to 40, for an event that triggers this Action. The default is 1.

Maximum event severity for Action

Set the maximum event severity level, from 1 to 40, for an event that triggers this Action. The default is 40.

Action

List of recipients

Provide a list of recipients for the message, separated by commas (,) with no spaces, using the Notes username format (for example, user/company).

Sender name

Provide the mail sender name. It is displayed in the From field of the mail message that has the AppManager event information. The default is NetIQ AppManager.

Message format

Select the format you want to use for the message sent by this script:

  • Standard format generates a message based upon the selections you make from the Standard message options parameters.

  • Custom format generates a message based upon the subject and message body you supply in the Custom message options parameters.

The default is Standard.

Standard message options

Include date/timestamp?

Select Yes to include the date/timestamp in the standard message. The default is unselected.

Include JobID?

Select Yes to include the job ID in the standard message. The default is unselected.

Include agent computer name?

Select Yes to include the name of the agent computer in the standard message (the computer hosting the agent that initiated the Action). The default is Yes.

Include event severity?

Select Yes to include the severity of the event in the standard message. The default is Yes.

Include Knowledge Script name?

Select Yes to include the Knowledge Script name in the standard message (the Knowledge Script that initiated the Action). The default is unselected.

Include AppManager object name?

Select Yes to include the AppManager resource object name in the standard message (the AppManager resource object where the event was raised). The default is unselected.

Include AppManager event ID (only on MS Action)?

Select Yes to include the AppManager event ID in the standard message (possible only in cases when the Action is carried out by the management server). The default is unselected.

Include event detail message?

Select Yes to include the event detail message. The default is unselected.

Custom message options

Custom message subject

Provide the text you want to use for the custom message subject line.

Custom message body

Provide the text you want to include in your custom message.

You can use the keywords listed below to indicate the information you want to include in the body of your custom message. Add a space before and after keywords to ensure that the keywords display properly.

  • $ShortMsg$ (short event message)

  • $DetailMsg$ (detailed event message)

  • $Time$ (date and time of the event)

  • $JobID$ (ID of the job that raised the event)

  • $MachineName$ (name of the computer where the event was raised)

  • $Severity$ (severity of the event)

  • $KSName$ (name of the Knowledge Script that raised the event)

  • $ObjectName$ (name of the AppManager resource object where the event was raised)

  • $EventID$ (event ID)

For $ShortMsg$ and $DetailMsg$ you can use number and wildcard options to indicate specific portions of the text string to include. For example:

  • $DetailMsg$[5] includes the fifth word of the detailed event message

  • $ShortMsg$[1-5] includes the first through fifth words of the short message event

  • $DetailMsg$[*5] includes the first through fifth words of the detailed event message

  • $ShortMsg$[5*] includes the fifth through last words of the short event message

If you do not enter a word specifier, AppManager returns the entire string.

The following are examples of the types of messages you can construct using these keywords:

  • Event from $MachineName$: The $ShortMsg$[1-3] has failed. The last command was $DetailMsg$[4*].

  • A severity $Severity$ event has occurred! Call the owner of $MachineName$ immediately!