Alert Actions Macros

Home  Previous  Next

A macro is a variable whose value is replaced when an Alert Action is triggered. Macros can be used to customize the content of each Alert Action.

For example: %{VALUE} is replaced by the actual current value of the parameter that triggered the alert. When used in the text field for a PATROL event Alert Action, the percentage value is replaced by the actual current value of the parameter that triggered the alert.

Each macro listed in the tables below contains information about what triggered the PATROL alert.

Macros

Description

%{HOSTNAME}

Name of the computer monitored with the PATROL Agent

%{PARAMETER_NAME}

Name of the parameter that triggered the alert

%{VALUE}

Formatted value (with unit) of the parameter that triggered the alert

%{OBJECT_ID}

PATROL internal ID of the instance that triggered the alert

%{OBJECT_LABEL}

Display name of the instance that triggered the alert

%{OBJECT_CLASS}

Class of the instance that triggered the alert

%{PARENT_...}

Gets the parent's object of a macro

%{PARENT_ID}

PATROL internal ID of the object that the faulty instance is attached to

%{PARENT_LABEL}

Display name of the object that the faulty instance is attached to

%{PARENT_CLASS}

Class of the object that the faulty instance is attached to

%{DATE}

Current date in the YYYY-MM-dd format

%{TIME}

Current time in the HH:MM:SS format

%{ASCTIME:…}

Current date and time formatted as specified in the macro

%{/…}

Recommended for advanced users only

Provides an internal instance variable name to be inserted. The path is relative to the object triggering the alert

%{NEWLINE}

Linefeed. This is useful to produce multi-line information