Documentation forSolarWinds Platform

Example messages using variables

This SolarWinds Platform topic applies only to the following products:

Hybrid Cloud Observability EssentialsHybrid Cloud Observability Advanced


The following examples illustrate messages that you can create using variables. You can use variables in the message body or the subject. You can also use variables in alert conditions.

SolarWinds recommends using the variable picker by clicking Insert Variable.

Message with variables

Message with resolved variables

Previous reboot was at ${N=SwisEntity;M=Previous(LastBoot)}. Previous reboot was at 10/29/2014 12:02:00 PM.

Alert: The SNMP Community string used to query ${N=SwisEntity;M=Caption} has been changed from ${N=SwisEntity;M=Previous(Community)} to ${N=SwisEntity;M=Community}.

Alert: The SNMP Community string used to query Houston_backup has been changed from 1234 to 5678.

Alert: ${N=SwisEntity;M=Caption} has exceptionally high response time. Average Response Time is ${N=SwisEntity;M=AvgResponseTime} and is varying from ${N=SwisEntity;M=MinResponseTime} to ${N=SwisEntity;M=MaxResponseTime}.

Alert: DevOP_VMs has exceptionally high response time. Average Response Time is 1200 ms and is varying from 500 ms to 1700 ms.

Current packet loss for ${N=SwisEntity;M=Caption} is ${N=SwisEntity;M=PercentLoss}. Average Response time is ${N=SwisEntity;M=AvgResponseTime} and is varying from ${N=SwisEntity;M=MinResponseTime} to ${N=SwisEntity;M=MaxResponseTime}.

Current packet loss for MainWebServer is 43%. Average Response time is 500 ms and is varying from 200 ms to 800 ms.

You can also manually add a repeater when you expect multiple objects to be included in an alert. For example, if you have an alert set up to notify you when 5 nodes go down, you can use <<< >>> to repeat both text and variables. See the examples below.

This message with no repeater displays every node that is down in a separate sentence: ${N=SwisEntity;M=Caption} is ${N=SwisEntity;M=Status;F=Status}.

This message displays only the text included in the repeater, in this case each node that is down: <<< ${N=SwisEntity;M=Caption}>>> is ${N=SwisEntity;M=Status;F=Status}.

This message displays each node that is down and the status of each node: <<< ${N=SwisEntity;M=Caption} is ${N=SwisEntity;M=Status;F=Status}.>>>

When using a repeater, you cannot use the PREVIOUS variable.

Using macro formatters

Be aware that using macro formatters can significantly change the macro result. For example:

${N=Generic;M=Date;F=Date} - Tuesday, December 2, 2014

${N=Generic;M=Date;F=OriginalValue} - 12/2/2014

These formatters are available in the UI from the macro variable picker, and a different set of formatters is available depending on the variable value type.