Here’s a breakdown of the most‐commonly used substitution (macro) variables you can drop into your Monitor Alert message templates in ConnectWise Automate. Just wrap them in $(... ) and Automate will replace them at runtime.
1) Agent (Computer) Details
• (AgentID) – internal ID of the agent
• (AgentName) – display name of the computer
• (IPAddress) – primary IPv4
• (AgentGUID) – unique system GUID
• (OSName) – e.g. “Windows Server 2019”
• (OSVersion) – OS build/version
• (SystemUptime) – how long the machine’s been up
2) Site / Location
• (SiteID) – internal site ID
• (SiteName) – site (client) name
• (Locati
•
3) Monitor Details
• (MonitorID) – unique monitor ID
• (MonitorName) – name of the monitor
• – description text
• – e.g. “Performance”
• – group if you use grouping
• – the threshold you set
• – units (%, MB, etc.)
• – current measured value
• – e.g. “Warning”/“Critical”
4) Alert / State Info
• (AlertCount) – how many times it’s triggered
• (FirstAlertDate) – timestamp of 1st failure
• – most recent failure time
• – alias for FirstAlertDate
• – when it recovered
• – times alerts were suppressed
5) Auto-Ticketing (if enabled)
• (TicketID) – internal ticket key
• (TicketNumber) – public ticket #
• – direct link to the ticket
•
•
•
•
6) Common System Metrics
You can also reference built-in stats (if your monitor gathers them):
• (TotalMemory) / (FreeMemory) /
•
• – free space on C: (MB)
• – free % on C:
• …or swap for any drive letter you’re monitoring
7) Custom Fields
If you’ve defined custom fields on your agents or monitors you can call them with:
• (CustomField1), (CustomField2), etc.
Example Alert Message
text
ALERT on $(AgentName)$ ($(IPAddress)$)
Monitor: $(MonitorName)$ ($(MonitorID)$)
Threshold: $(MonitorThresholdValue)$(MonitorThresholdType)
Current Value: $(MonitorValue)$(MonitorThresholdType)
First Seen: $(FirstAlertDate)$ Count: $(AlertCount)$
Ticket: $(TicketNumber)$ – $(TicketURL)$
That covers the bulk of what you’ll use day-to-day. For the complete list (and any new variables in your Automate version), see your Automate Help under System > Message Variables or hit the ConnectWise Automate online documentation.
User
is there a variable to show the Group the client is in?
Assistant
First—let’s be clear which “group” you mean:
The monitor group you’ve assigned that monitor to
The site (customer) group you use in Automate to bucket clients
Some other CW-Manage “company group” you’ve synced in via PSA
Here are the built-in macros for #1 and #2. If you really meant #3 or something custom, see the bottom section.
Monitor Group
• $(MonitorGroup)$
– Renders the Group name you assigned that monitor to.
Site (Customer) Group
If you’re using Site Groups in Automate (under System ► Setup ► Site Groups), you get:
• $(SiteGroupID)$
• $(SiteGroupName)$
If you meant the CW-Manage Company Group (PSA side), there isn’t a native Automate macro.
• You’d either expose it via a Custom Field on the Site/Agent and then use $(CustomFieldX)$
• Or extend your Automate⇄Manage integration to push that value into a custom Automate field.
Let me know which group you’re after or if you need a custom-field workaround! 😃