Action Macro Reference
All action configurations, event message templates, alarm messages, alarm keys, and notification templates support macro substitution for dynamic content.
Event and Object Macros
| Macro | Description |
|---|---|
|
Name of event source object |
|
IP address of event source object |
|
Unique ID of event source object in hexadecimal form |
|
Unique ID of event source object in decimal form |
|
Globally unique identifier (GUID) of event source object |
|
Event code |
|
Event name |
|
IP address of event source object in URL-compatible form (bracketed for IPv6) |
|
User name associated with the event |
|
Event severity code as number (0=Normal, 1=Warning, 2=Minor, 3=Major, 4=Critical) |
|
Event severity code as text |
|
Event message text |
|
Event timestamp as |
|
Event timestamp as seconds since epoch (Unix time) |
|
NetXMS server version |
|
Comment of event source object |
|
Alias of event source object |
|
Zone UIN of event source object |
|
Zone name of event source object |
Alarm Macros
These macros are populated when the action is triggered from an alarm-generating or alarm-resolving EPP rule.
%A and %K also resolve from the last-alarm data recorded for the event when no alarm is attached; only %y and %Y strictly require an alarm in context.
| Macro | Description |
|---|---|
|
Alarm message text |
|
Alarm key |
|
Alarm state (numeric): 0=Outstanding, 1=Acknowledged, 2=Resolved, 3=Terminated (state is the lower 4 bits, mask |
|
Alarm ID |
Event Parameter Macros
| Macro | Description |
|---|---|
|
Positional event parameters; when no event is in context (e.g., in object tools), positional object tool arguments are used instead |
|
Named event parameter |
|
Named event parameter with fallback default value if parameter is not set |
|
Named event parameter with format specifier (supports units and multipliers) |
|
Comma-separated list of user tags associated with the event |
Custom Attribute and Script Macros
| Macro | Description |
|---|---|
|
Custom attribute of the source object (the instance-specific attribute |
|
Custom attribute of the source object with fallback default value |
|
Return value of script library script named name |
Special Context Macros
| Macro | Description |
|---|---|
|
Description of the associated Data Collection Item (available whenever the event or alarm carries a DCI reference, such as threshold and DCI state events) |
|
Comment of the Data Collection Item (same availability as |
|
Custom message text set via |