How Variable Substitution Affects Actions
Action text strings can include variable references, where you include pertinent information from the data source in the alert text.
For example, the alert text:
Disk space on ${Instance} is at ${% Free Space}%
might display as:
Disk space on C: is at 10.2%
when generated. Or, if you call a script named ClearTempFiles.exe
in an action whose data source provides information on disk partitions, you can specify the following command syntax:
ClearTempFiles.exe ${Instance}
and the agent inserts the name of the logical drive into the command line.
Variable substitution can cause actions to be taken more than once. If an action raises an alert with a variable reference, a new alert is generated at each test evaluation when the text message is different until the alert is cleared, even if the action that raises the alert was configured to take place only once.