Alert Actions Macros |
|
|
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 attribute that triggered the alert. Each macro listed in the tables below contains information about what triggered the alert. Some macros are "general" or "common" - these can be used for any object, and some are "object-specific" macros that are specific to the object, such as databases or files, etc.
General MacrosThe macros listed in the table below can be used with alert actions on any object.
Object Specific Macros Click the following sections to display the list of macros that can be used with alert actions specifically for their respective object type.
|
Macros |
Description |
|---|---|
%{SEN_COMMANDLINE} |
Command line being executed and analyzed. |
%{SEN_EXITSTATUSCODE} |
Exit status returned by the system after executing the command. |
Macros |
Description |
|---|---|
%{SEN_DATABASENAME} |
Name of the database the SQL query is sent to. For example, the database name for SQL Server, or the Oracle SID for Oracle. |
%{SEN_DATABASETYPE} |
Type of the database. |
%{SEN_QUERY} |
SQL statement sent for execution. |
Macros |
Description |
|---|---|
%{SEN_FILENAME} |
Name of the monitored file as entered in CMA. |
%{SEN_MONITOREDFILE} |
Current file being monitored. |
Macros |
Description |
|---|---|
%{SEN_FILESYSTEM} |
Name of the monitored file system. |
Macros |
Description |
|---|---|
%{SEN_FOLDER} |
Name of the folder being monitored. |
%{SEN_OLDESTREMAININGINFOLDER} |
Name of the oldest remaining file in the folder. |
Macros |
Description |
|---|---|
%{SEN_AVAILABILITYCHECKS} |
List of availability checks, separated by commas. |
%{SEN_CREDENTIALSLIST} |
List of credentials, separated by commas. |
%{SEN_SIGNATUREFILES} |
List of signatures files, separated by commas. |
%{SEN_TCPPORT} |
Port number used to perform the TCP availability check. |
Macros |
Description |
|---|---|
%{SEN_FORMULA} |
User-defined formula used to calculate the parameter value. |
Macros |
Description |
|---|---|
%{SEN_COMMANDLINE} |
Process command line being searched for, as entered in CMA. |
%{SEN_MATCHINGPROCESSES} |
List of all the processes that match the search criteria. |
%{SEN_PIDFILE} |
Path to the PID file whose corresponding process is being monitored. |
%{SEN_PROCESSNAME} |
Process name being searched for, as entered in CMA. |
%{SEN_USERID} |
Process user ID being searched for, as entered in CMA. |
%{SEN_WORSTPROCESS_COMMANDLINE} |
Command line of the first worst process. |
%{SEN_WORSTPROCESS_NAME} |
Name of the first worst process. |
%{SEN_WORSTPROCESS_PID} |
PID of the first worst process. |
%{SEN_WORSTPROCESS_PPID} |
PPID of the first worst process. |
%{SEN_WORSTPROCESS_STATE} |
State of the first worst process. |
%{SEN_WORSTPROCESS_USERNAME} |
Username of the first worst process. |
%{SEN_WORSTPROCESSES} |
A list of worst processes, semicolon delimited, containing PID, process name, username, PPID, state and command line. |
Macros |
Description |
|---|---|
%{SEN_CONTENT} |
Content of the OID being polled. |
%{SEN_OID} |
SNMP OID being polled. |
Macros |
Description |
|---|---|
%{SEN_CONTENT} |
Content of the found trap. |
%{SEN_ENTERPRISEID} |
Enterprise ID (OID) of the SNMP traps being looked for. |
%{SEN_FOUNDIP} |
Actual originating IP address of the trap that has been received. |
%{SEN_FOUNDTRAPNUMBER} |
Actual SNMP trap number that has been received and matches the entered criteria. |
%{SEN_TRAPNUMBER} |
SNMP Trap numbers (specific numbers) being looked for. |
Macros |
Description |
|---|---|
%{SEN_LASTMATCHINGLINE} |
Last line that matches with the String search criteria. |
%{SEN_LASTMATCHINGLINES} |
Last 10 lines that match with the String search criteria. |
%{SEN_STRING1} |
First regular expression being searched for. |
%{SEN_STRING2} |
Second regular expressions being searched for. |
Macros |
Description |
|---|---|
%{SEN_HTTPMETHOD} |
Displays whether the GET or POST request type is used to perform the query. |
%{SEN_URL} |
URL of the targeted Web page. |
Macros |
Description |
|---|---|
%{SEN_NAMESPACE} |
Namespace of the WBEM query. |
%{SEN_QUERY} |
Executed WBEM query. |
Macros |
Description |
|---|---|
%{SEN_MATCHINGEVENTS} |
List of matching events. |
%{SEN_PROVIDER} |
Name of the event provider. |
%{SEN_EVENTID} |
Monitored event IDs as configured in the Monitor. |
%{SEN_EVENTLOG} |
Name of the monitored event log. |
%{SEN_CONTENT} |
Message content of the last matching event. |
%{SEN_RECORDNUMBER} |
Last matching event record number. |
Macros |
Description |
|---|---|
%{SEN_PERFORMANCECOUNTER} |
Windows performance counter being monitored. |
%{SEN_PERFORMANCEINSTANCE} |
Windows performance object instances being monitored. |
%{SEN_PERFORMANCEOBJECT} |
Windows performance object name being monitored. |
Macros |
Description |
|---|---|
%{SEN_SERVICENAME} |
Name of the monitored Windows service. |
Macros |
Description |
|---|---|
%{SEN_NAMESPACE} |
Namespace of the WMI query. |
%{SEN_QUERY} |
Executed WMI query. |