ManageEngine® Applications Manager Chapter 7.4.8 Replaceable Tags |
||
Alarm Configuration can be further enhanced by 'Replaceable Tags'. An email
action is configured, if, for e.g., Tomcat Server goes down. While creating
the E-Mail action, you can specify the "Message" as "This resource
is running $HOSTNAME at port $PORT". If the Tomcat Server goes down, then
email action is triggered with a message that contains the actual name of the
Host and Port Number. Hereby the Dollar Tags are replaced with the host in which
the tomcat server is running and the exact port of the tomcat server.
Further, if you want Applications Manager to pass arguments to Custom Scripts,
which would be invoked as part of 'Execute Program Action', you can make use
of Replaceable Tags.
For e.g., in 'Execute Program Action' , you can give the value for 'Program
To Execute' to be
<run.bat $HOSTIP $MONITORNAME $PORT>
If the action is invoked then the $tags would be replaced with the then actual
values say
<run.bat 191.167.111.27 MyServer 9090>
Find below the dollar tag parameters that can be associated with their probable values.
Tags |
Values |
$MONITORNAME |
Name of the Monitor |
$ATTRIBUTE |
Various Attributes like Health, Availability, etc., |
$SEVERITYASNUMBER |
1 (Critical/Down) |
$SEVERITY |
Critical, Warning, Clear, Up and Down |
$HOSTIP |
The IP Address of the Host |
$MONITORTYPE |
Various Monitor Types like Tomcat-server, MYSQL-DB-server, Script Monitor, etc., |
$OBJECTNAME |
MBean Object name when associated to Custom Monitor attributes |
$HOSTNAME |
Name of the Host |
$PORT |
Port Number |
$DATE |
Date |
$OID |
SNMP OID |
$RCAMESSAGE |
Root Cause Message |
Limitation of Dollar tags
$ATTRIBUTE $DATE $MONITORNAME $MONITORTYPE $RCAMESSAGE $SEVERITY $SEVERITYASNUMBER |
These attributes will work for all the monitors / monitor groups |
$HOSTIP $HOSTNAME $PORT |
These attributes will not work for Monitor groups / URL / URL sequence monitor / QEngine Script Monitor / Script Monitor / WMI counters / Web Services. |
$OBJECTNAME | This will work only for JMX custom attributes |
$OID | This will work only for SNMP custom attributes |
$HOSTIP, $HOSTNAME | These will not work for Ping monitor and File Monitor. |
Note: The $ tags will not be replaced when you execute the actions manually.
Perform Java Action |
Associating Threshold and Action with Attributes |