The macros supported by location table contains reference of all macros (built-in, expression, and user-definable) that are supported in the specific location.
If all macros from a related group are supported, then only the group name is given. Click on each macro name or group name to see full details of the macros.
The macro details list contains a detailed list of all built-in macros, grouped by application area. Note that to customize macro values (for example, shorten or extract specific substrings), you can use macro functions.
Location | Supported macros | Comments | |
---|---|---|---|
Action | |||
Time period condition, Default operation step duration, Step duration | User-definable macros (global only) | A single macro has to fill the whole field; multiple macros/mix with text are not supported | |
Notifications and commands | |||
Trigger-based | Action macros Date/time macros {ESC.HISTORY} Event macros, Cause/symptom event macros Event update macros: {EVENT.UPDATE.HISTORY}, {EVENT.UPDATE.STATUS} Expression macro: {?EXPRESSION} {FUNCTION.VALUE} Host macros: {HOST.CONN}, {HOST.DESCRIPTION}, {HOST.DNS}, {HOST.HOST}, {HOST.ID}, {HOST.IP}, {HOST.NAME}, {HOST.PORT} Target host macros (commands only) Host inventory macros Item macros (except {ITEM.STATE}, {ITEM.STATE.ERROR}) Proxy macros Trigger macros: {TRIGGER.DESCRIPTION}, {TRIGGER.EVENTS.*}, {TRIGGER.EXPRESSION}, {TRIGGER.EXPRESSION.EXPLAIN}, {TRIGGER.EXPRESSION.RECOVERY}, {TRIGGER.ID}, {TRIGGER.HOSTGROUP.NAME}, {TRIGGER.NAME}, {TRIGGER.NAME.ORIG}, {TRIGGER.NSEVERITY}, {TRIGGER.SEVERITY}, {TRIGGER.STATUS}, {TRIGGER.TEMPLATE.NAME}, {TRIGGER.URL}, {TRIGGER.URL.NAME}, {TRIGGER.VALUE} User-definable macros |
See also: Using macros in messages | |
Problem update | Action macros Date/time macros {ESC.HISTORY} Event macros, Cause/symptom event macros, Recovery event macros Event update macros: all (except [{EVENT.UPDATE.NSEVERITY}, {EVENT.UPDATE.SEVERITY}) Expression macro: {?EXPRESSION} Function macros Host macros: {HOST.CONN}, {HOST.DESCRIPTION}, {HOST.DNS}, {HOST.HOST}, {HOST.ID}, {HOST.IP}, {HOST.NAME}, {HOST.PORT} Target host macros (commands only) Host inventory macros Item macros (except {ITEM.STATE}, {ITEM.STATE.ERROR}) Proxy macros Trigger macros: {TRIGGER.DESCRIPTION}, {TRIGGER.EVENTS.*}, {TRIGGER.EXPRESSION}, {TRIGGER.EXPRESSION.EXPLAIN}, {TRIGGER.EXPRESSION.RECOVERY}, {TRIGGER.ID}, {TRIGGER.HOSTGROUP.NAME}, {TRIGGER.NAME}, {TRIGGER.NAME.ORIG}, {TRIGGER.NSEVERITY}, {TRIGGER.SEVERITY}, {TRIGGER.STATUS}, {TRIGGER.TEMPLATE.NAME}, {TRIGGER.URL}, {TRIGGER.URL.NAME}, {TRIGGER.VALUE} {USER.FULLNAME} User-definable macros |
||
Problem recovery | Recovery event macros {FUNCTION.RECOVERY.VALUE} {TRIGGER.EXPRESSION.RECOVERY.EXPLAIN} |
||
Discovery | Action macros Date/time macros Discovery macros Event macros: {EVENT.AGE}, {EVENT.DATE}, {EVENT.ID}, {EVENT.OBJECT}, {EVENT.SOURCE}, {EVENT.TIME}, {EVENT.TIMESTAMP} Target host macros (commands only) Proxy macros |
||
Autoregistration | Action macros Date/time macros Event macros: {EVENT.AGE}, {EVENT.DATE}, {EVENT.ID}, {EVENT.OBJECT}, {EVENT.SOURCE}, {EVENT.TIME}, {EVENT.TIMESTAMP} Host macros: {HOST.HOST}, {HOST.IP}, {HOST.PORT}, {HOST.METADATA} Target host macros (commands only) Proxy macros |
||
Service-based | Action macros Date/time macros {ESC.HISTORY} Event macros: all except {EVENT.ACK.STATUS}, {EVENT.OPDATA} Service macros User-definable macros |
||
Service recovery | Event macros (except {EVENT.ACK.STATUS}, {EVENT.OPDATA}), Recovery event macros | ||
Service update | Action macros Date/time macros {ESC.HISTORY} Event macros (except {EVENT.ACK.STATUS}, {EVENT.OPDATA}) Event update macros: {EVENT.UPDATE.DATE}, {EVENT.UPDATE.MESSAGE}, {EVENT.UPDATE.NSEVERITY}, {EVENT.UPDATE.SEVERITY}, {EVENT.UPDATE.STATUS}, {EVENT.UPDATE.TIME}, {EVENT.UPDATE.TIMESTAMP} Service macros User-definable macros |
||
Internal notifications | Action macros Date/time macros {ESC.HISTORY} Event macros (except {EVENT.NSEVERITY}, {EVENT.SEVERITY}), Recovery event macros Host macros: {HOST.CONN}, {HOST.DESCRIPTION}, {HOST.DNS}, {HOST.HOST}, {HOST.IP}, {HOST.NAME}, {HOST.PORT} Host inventory macros Item macros: {ITEM.DESCRIPTION}, {ITEM.DESCRIPTION.ORIG}, {ITEM.ID}, {ITEM.KEY}, {ITEM.KEY.ORIG}, {ITEM.NAME}, {ITEM.NAME.ORIG}, {ITEM.VALUETYPE} Proxy macros |
||
Item-based | Item macros: {ITEM.STATE}, {ITEM.STATE.ERROR} | ||
LLD rule-based | Low-level discovery notification macros | ||
Trigger-based | Trigger macros: {TRIGGER.DESCRIPTION}, {TRIGGER.EXPRESSION}, {TRIGGER.EXPRESSION.RECOVERY}, {TRIGGER.HOSTGROUP.NAME}, {TRIGGER.ID}, {TRIGGER.NAME}, {TRIGGER.NAME.ORIG}, {TRIGGER.NSEVERITY}, {TRIGGER.SEVERITY}, {TRIGGER.STATE}, {TRIGGER.STATE.ERROR}, {TRIGGER.TEMPLATE.NAME}, {TRIGGER.URL}, {TRIGGER.URL.NAME} User-definable macros |
||
Alert script parameters | Alert macros User-definable macros (global only) |
||
Connector | |||
URL, Username, Password, Bearer token, HTTP proxy, SSL certificate, SSL key file, SSL key password field | User-definable macros (global only) | ||
Timeout field | User-definable macros (global only) | A single macro has to fill the whole field; multiple macros/mix with text are not supported. | |
Graph name | Expression macro: {?EXPRESSION} | Only the avg, last, max and min functions, with seconds as parameter are supported in this macro in this location. The {HOST.HOST<1-9>} macro can be used as host within the macro. For example, last(/{HOST.HOST}/ifAlias[{#SNMPINDEX}]) . |
|
Host, host prototype | |||
Interface IP/DNS | Host macros: {HOST.CONN}, {HOST.DNS}, {HOST.HOST}, {HOST.IP}, {HOST.NAME} User-definable macros 1 |
1 For IP address, a single macro has to fill the whole field; multiple macros/mix with text are not supported | |
Interface port | User-definable macros | A single macro has to fill the whole field; multiple macros/mix with text are not supported | |
SNMP community | User-definable macros | ||
SNMPv3 Context name, Security name, Authentication passphrase, Privacy passphrase | |||
IPMI username, password | |||
Item, item prototype, LLD rule | |||
Name | User-definable macros | Not supported in LLD rule names. | |
Description | User-definable macros | ||
Key parameters | Host macros: {HOST.CONN}, {HOST.DNS}, {HOST.HOST}, {HOST.IP}, {HOST.NAME}, {HOST.PORT} User-definable macros |
The supported {HOST.*} macros will resolve to the interface that is selected for the item. When used in items without interfaces they will resolve to either the Zabbix agent, SNMP, JMX or IPMI interface of the host in this order of priority or to 'UNKNOWN' if the host does not have any interface. | |
Update interval, Custom intervals, Timeout (available for supported item types), Store up to (for history/trends) fields | User-definable macros | A single macro has to fill the whole field; multiple macros/mix with text are not supported. | |
Delete lost resources, Disable lost resources fields | User-definable macros | These fields are supported for LLD rules only. A single macro has to fill the whole field; multiple macros/mix with text are not supported. |
|
Preprocessing step parameters (including custom scripts), custom error-handling parameters (Set value to and Set error to fields) |
User-definable macros | ||
Filter regular expressions | Host macros: {HOST.CONN}, {HOST.DNS}, {HOST.HOST}, {HOST.IP}, {HOST.NAME}, {HOST.PORT} User-definable macros |
These fields are supported for LLD rules only. | |
Override filter regular expressions | User-definable macros | These fields are supported for LLD rules only. | |
Override operations: Update interval, History storage period, Trend storage period (for item prototypes) | User-definable macros | These fields are supported for LLD rules only. A single macro has to fill the whole field; multiple macros/mix with text are not supported. |
|
Item types | |||
Browser item parameter names and values |
Host macros: {HOST.CONN}, {HOST.DNS}, {HOST.HOST}, {HOST.IP}, {HOST.NAME}, {HOST.PORT} Host inventory macros Item macros: {ITEM.ID}, {ITEM.KEY}, {ITEM.KEY.ORIG} User-definable macros |
||
Script item parameter names and values |
|||
Calculated/aggregate item formula (expression constants, function parameters, item key parameters, (aggregate item only) filter conditions (host group name and tag name)) |
User-definable macros | ||
Database monitor item Username, Password, SQL query fields |
User-definable macros | ||
HTTP agent item URL, Query fields, Request body, Headers (names and values), SSL certificate file, SSL key file fields |
Host macros: {HOST.CONN}, {HOST.DNS}, {HOST.HOST}, {HOST.IP}, {HOST.NAME}, {HOST.PORT} Item macros: {ITEM.ID}, {ITEM.KEY}, {ITEM.KEY.ORIG} User-definable macros |
URLs that contain a secret macro will not work, as the macro in them will be resolved as "******" | |
HTTP agent item HTTP Proxy field |
Item macros: {ITEM.ID}, {ITEM.KEY}, {ITEM.KEY.ORIG} User-definable macros |
||
HTTP agent item Required status codes, HTTP authentication username/password, SSL key password fields |
User-definable macros | ||
HTTP agent item Allowed hosts field |
Host macros: {HOST.CONN}, {HOST.DNS}, {HOST.HOST}, {HOST.IP}, {HOST.NAME}, {HOST.PORT} User-definable macros |
||
JMX agent item Endpoint field |
Host macros: {HOST.CONN}, {HOST.DNS}, {HOST.HOST}, {HOST.IP}, {HOST.PORT} User-definable macros |
||
Trapper item Allowed hosts field |
|||
SNMP agent item SNMP OID field |
User-definable macros | ||
SSH and Telnet item script |
Host macros: {HOST.CONN}, {HOST.DNS}, {HOST.HOST}, {HOST.IP}, {HOST.NAME}, {HOST.PORT} User-definable macros |
||
SSH agent item Username, Public key file, Private key file, Password fields |
User-definable macros | ||
Telnet agent item Username, Password fields |
User-definable macros | ||
Map | |||
URL, URL name | Host macros: {HOST.CONN}, {HOST.DESCRIPTION}, {HOST.DNS}, {HOST.HOST}, {HOST.ID}, {HOST.IP}, {HOST.NAME}, {HOST.PORT} {HOSTGROUP.ID} Host inventory macros Map macros {TRIGGER.ID} |
||
Element label | Expression macro: {?EXPRESSION} 1 Host macros: {HOST.CONN}, {HOST.DESCRIPTION}, {HOST.DNS}, {HOST.HOST}, {HOST.ID}, {HOST.IP}, {HOST.NAME}, {HOST.PORT} {HOSTGROUP.ID} Host inventory macros Map macros Trigger macros: {TRIGGER.EVENTS.*}, {TRIGGER.ID}, {TRIGGER.PROBLEM.EVENTS.*}, {TRIGGERS.ACK}, {TRIGGERS.PROBLEM.ACK}, {TRIGGERS.PROBLEM.UNACK}, {TRIGGERS.UNACK} |
1 Only the avg, last, max and min functions, with seconds as parameter are supported in this macro in this location. The {HOST.HOST<1-9>} macro can be used as host within the macro. For example, last(/{HOST.HOST}/ifAlias[{#SNMPINDEX}]) . |
|
Link label | Expression macro: {?EXPRESSION} 1 | ||
Shape label | Expression macro: {?EXPRESSION} 1 | ||
Text field in map shapes | {MAP.NAME} | ||
Network discovery | |||
Update interval field | User-definable macros (global only) | A single macro has to fill the whole field; multiple macros/mix with text are not supported. | |
SNMP community, SNMP OID fields | User-definable macros (global only) | ||
SNMPv3 Context name, Security name, Authentication passphrase, Privacy passphrase fields | |||
Proxy | |||
Interface port, Address for active agents port, Timeouts for item types fields | User-definable macros (global only) | A single macro has to fill the whole field; multiple macros/mix with text are not supported. | |
Proxy group | |||
Failover period, Minimum number of proxies fields | User-definable macros (global only) | A single macro has to fill the whole field; multiple macros/mix with text are not supported. | |
Scripts | |||
Manual event action | Date/time macros Event macros, Cause/symptom event macros, Recovery event macros (if recovery took place) Event update macros: {EVENT.UPDATE.HISTORY}, {EVENT.UPDATE.STATUS} Expression macro: {?EXPRESSION} {FUNCTION.VALUE} Host macros: {HOST.CONN} 1, {HOST.DESCRIPTION}, {HOST.DNS} 1, {HOST.HOST} 1, {HOST.ID} 2, {HOST.IP} 1, {HOST.NAME} 1, {HOST.PORT} 1 Host inventory macros Item macros (except {ITEM.STATE}, {ITEM.STATE.ERROR}) {MANUALINPUT} 3 Proxy macros Trigger macros: {TRIGGER.DESCRIPTION}, {TRIGGER.EVENTS.*}, {TRIGGER.EXPRESSION}, {TRIGGER.EXPRESSION.EXPLAIN}, {TRIGGER.EXPRESSION.RECOVERY}, {TRIGGER.EXPRESSION.RECOVERY.EXPLAIN}, {TRIGGER.HOSTGROUP.NAME}, {TRIGGER.ID}, {TRIGGER.NAME}, {TRIGGER.NAME.ORIG}, {TRIGGER.NSEVERITY}, {TRIGGER.SEVERITY}, {TRIGGER.STATUS}, {TRIGGER.TEMPLATE.NAME}, {TRIGGER.URL}, {TRIGGER.URL.NAME}, {TRIGGER.VALUE} Username macros 1 User-definable macros (global only) 1 |
1 Including confirmation text 2 Including confirmation text only for URL script type 3 Including URL field and confirmation text only for URL script type |
|
Manual host action | Expression macro: {?EXPRESSION} Host macros: {HOST.CONN} 1, {HOST.DESCRIPTION}, {HOST.DNS} 1, {HOST.HOST} 1, {HOST.ID} 2, {HOST.IP} 1, {HOST.NAME} 1, {HOST.PORT} 1 Host inventory macros 3 {MANUALINPUT} 4 Username macros 1 User-definable macros (global only) 1 |
1 Including confirmation text 2 Including confirmation text only for URL script type 3 Supported for Zabbix server and Zabbix proxy 4 Including URL field and confirmation text only for URL script type |
|
Tag name and value | Host macros: {HOST.CONN}, {HOST.DNS}, {HOST.HOST}, {HOST.ID}, {HOST.IP}, {HOST.NAME}, {HOST.PORT} Host inventory macros Item macros: {ITEM.LASTVALUE*}, {ITEM.LOG.*}, {ITEM.VALUE*} Trigger macros: {TRIGGER.ID} (trigger tag value only) User-definable macros |
Tag name and value macros are resolved during the event generation process only. | |
Trigger | |||
Name | Host macros: {HOST.CONN}, {HOST.DNS}, {HOST.HOST}, {HOST.IP}, {HOST.NAME}, {HOST.PORT} Item macros: {ITEM.LASTVALUE*}, {ITEM.LOG.*}, {ITEM.VALUE*} Positional macros/references: $1...$9 User-definable macros |
||
Event name | Date/time macros: {TIME}, {TIMESTAMP} Expression macro: {?EXPRESSION} Function macros Host macros: {HOST.CONN}, {HOST.DNS}, {HOST.HOST}, {HOST.IP}, {HOST.NAME}, {HOST.PORT} Item macros: {ITEM.LASTVALUE*}, {ITEM.LOG.*}, {ITEM.VALUE*} Trigger macros: {TRIGGER.EXPRESSION.EXPLAIN} |
||
Operational data | Host macros: {HOST.CONN}, {HOST.DNS}, {HOST.HOST}, {HOST.IP}, {HOST.NAME}, {HOST.PORT} Item macros: {ITEM.LASTVALUE*}, {ITEM.LOG.*}, {ITEM.VALUE*} User-definable macros |
||
Expression | {TRIGGER.VALUE} User-definable macros 1 |
1 Only in constants and function parameters; secret macros are not supported | |
Tag for matching, Menu entry name, Menu entry URL fields | User-definable macros | URLs that contain a secret macro will not work, as the macro in them will be resolved as "******". | |
Description | Host macros: {HOST.CONN}, {HOST.DNS}, {HOST.HOST}, {HOST.IP}, {HOST.NAME}, {HOST.PORT} Item macros: {ITEM.LASTVALUE*}, {ITEM.LOG.*}, {ITEM.VALUE*} User-definable macros |
||
URL | {EVENT.ID} Host macros: {HOST.CONN}, {HOST.DNS}, {HOST.HOST}, {HOST.ID}, {HOST.IP}, {HOST.NAME}, {HOST.PORT} Item macros: {ITEM.LASTVALUE*}, {ITEM.LOG.*}, {ITEM.VALUE*} {TRIGGER.ID} |
||
User parameter commands | Positional macros/references: $1...$9 |
||
Web scenario | |||
Name, Agent, HTTP proxy fields | User-definable macros | ||
Update interval field | User-definable macros | A single macro has to fill the whole field; multiple macros/mix with text are not supported. | |
Variables, Headers, SSL certificate, SSL key file fields | Host macros: {HOST.CONN}, {HOST.DNS}, {HOST.HOST}, {HOST.IP}, {HOST.NAME}, {HOST.PORT} User-definable macros |
||
User, Password, SSL key password fields | User-definable macros | ||
Web scenario step Name, Variables (values only) fields |
User-definable macros | ||
Web scenario step Timeout, Required status codes fields |
User-definable macros | A single macro has to fill the whole field; multiple macros/mix with text are not supported. | |
Web scenario step URL, Headers (names and values), Required string fields |
Host macros: {HOST.CONN}, {HOST.DNS}, {HOST.HOST}, {HOST.IP}, {HOST.NAME}, {HOST.PORT} User-definable macros |
||
Web scenario step Post field |
Host macros: {HOST.CONN}, {HOST.DNS}, {HOST.HOST}, {HOST.IP}, {HOST.NAME}, {HOST.PORT} | ||
Webhook media type | |||
URL, URL name | {EVENT.TAGS.<tag name>} | ||
Parameter | Alert macros Expression macro: {?EXPRESSION} |
||
JavaScript script, JavaScript script parameter name | User-definable macros (global only) | A single macro has to fill the whole field; multiple macros/mix with text are not supported. | |
JavaScript script parameter value | User-definable macros (global only | ||
Widgets | |||
Gauge widget Description field |
Host macros: {HOST.CONN}, {HOST.DESCRIPTION}, {HOST.DNS}, {HOST.HOST}, {HOST.ID}, {HOST.IP}, {HOST.NAME}, {HOST.PORT} Host inventory macros Item macros (except {ITEM.STATE.ERROR}) User-definable macros (global only) |
||
Honeycomb widget Primary/secondary label field |
|||
Item value widget Description field |
|||
Top hosts widget Text data column |
Host macros: {HOST.CONN}, {HOST.DESCRIPTION}, {HOST.DNS}, {HOST.HOST}, {HOST.ID}, {HOST.IP}, {HOST.NAME}, {HOST.PORT} Host inventory macros User-definable macros (global only) |
||
URL (Dynamic) widget URL field |
Host macros: {HOST.CONN}, {HOST.DNS}, {HOST.HOST}, {HOST.ID}, {HOST.IP}, {HOST.NAME}, {HOST.PORT} User-definable macros |
||
Other locations | |||
Working time field | User-definable macros (global only) | A single macro has to fill the whole field; multiple macros/mix with text are not supported. | |
Timeouts for item types field (global setting) | |||
User media When active field |
|||
Email media type Username, Password fields |
User-definable macros (global only) | Secret macros are recommended. |
This list contains details for each built-in macro grouped by application area:
The numeric ID of the triggered action.
The name of the triggered action.
The Default message value from action configuration.
The Send to value from user media configuration.
The Default subject value from action configuration.
The current date in yyyy.mm.dd.
format.
The current time in hh:mm:ss
format.
The current time in UNIX timestamp format.
The IP address of the discovered device.
Available always, does not depend on host being added.
The DNS name of the discovered device.
Available always, does not depend on host being added.
The status of the discovered device (UP/DOWN).
The time since the last change of discovery status for a particular device.
For example: 1h 29m 01s.
For devices with status DOWN, this is the period of their downtime.
The name of the discovery rule that discovered the presence or absence of device/service.
The name of the discovered service.
For example: HTTP.
The port of the discovered service.
For example: 80.
The status of the discovered service (UP/DOWN).
The time since the last change of discovery status for a particular service.
For example: 1h 29m 01s.
For services with status DOWN, this is the period of their downtime.
The log of previously sent notifications, their escalation step and status (sent, in progress or failed).
The acknowledgment status of the event (Yes/No).
The age of the event that triggered an action, with precision down to a second.
Useful in escalated messages.
The date of the event that triggered an action.
The duration of the event (time difference between problem and recovery events), with precision down to a second.
Useful in problem recovery messages.
The numeric ID of the event that triggered an action.
The name of the event that triggered an action.
The numeric value of the event severity.
Possible values: 0 - Not classified, 1 - Information, 2 - Warning, 3 - Average, 4 - High, 5 - Disaster.
The numeric value of the event object.
Possible values: 0 - Trigger, 1 - Discovered host, 2 - Discovered service, 3 - Autoregistration, 4 - Item, 5 - Low-level discovery rule.
The operational data of the underlying trigger of the problem.
The name of the event severity.
The numeric value of the event source.
Possible values: 0 - Trigger, 1 - Discovery, 2 - Autoregistration, 3 - Internal, 4 - Service.
The verbal value of the event that triggered an action.
A comma-separated list of event tags.
Expanded to an empty string if no tags exist.
A JSON array containing event tag objects.
Expanded to an empty array if no tags exist.
The event tag value referenced by the tag name.
A tag name containing non-alphanumeric characters (including non-English multibyte-UTF characters) must be double quoted. Quotes and backslashes inside a quoted tag name must be escaped with a backslash.
The time of the event that triggered an action.
The UNIX timestamp of the event that triggered an action.
The numeric value of the event that triggered an action.
Possible values: 1 - problem, 0 - recovering.
The acknowledgment status of the cause event (Yes/No).
Used in the context of a symptom event.
The age of the cause event, with precision down to a second.
Useful in escalated messages.
Used in the context of a symptom event.
The date of the cause event.
Used in the context of a symptom event.
The duration of the cause event (time difference between problem and recovery events), with precision down to a second.
Useful in problem recovery messages.
Used in the context of a symptom event.
The numeric ID of the cause event.
Used in the context of a symptom event.
The name of the cause event.
Used in the context of a symptom event.
The numeric value of the cause event severity.
Possible values: 0 - Not classified, 1 - Information, 2 - Warning, 3 - Average, 4 - High, 5 - Disaster.
Used in the context of a symptom event.
The numeric value of the cause event object.
Possible values: 0 - Trigger, 1 - Discovered host, 2 - Discovered service, 3 - Autoregistration, 4 - Item, 5 - Low-level discovery rule.
Used in the context of a symptom event.
The operational data of the underlying trigger of the cause problem.
Used in the context of a symptom event.
The name of the cause event severity.
Possible values: Not classified, Information, Warning, Average, High, Disaster.
Used in the context of a symptom event.
The numeric value of the cause event source.
Possible values: 0 - Trigger, 1 - Discovery, 2 - Autoregistration, 3 - Internal.
Used in the context of a symptom event.
The verbal value of the cause event.
Used in the context of a symptom event.
A comma-separated list of cause event tags.
Expanded to an empty string if no tags exist.
Used in the context of a symptom event.
A JSON array containing cause event tag objects.
Expanded to an empty array if no tags exist.
Used in the context of a symptom event.
The cause event tag value referenced by the tag name.
A tag name containing non-alphanumeric characters (including non-English multibyte-UTF characters) must be double quoted. Quotes and backslashes inside a quoted tag name must be escaped with a backslash.
Used in the context of a symptom event.
The time of the cause event.
Used in the context of a symptom event.
The UNIX timestamp of the cause event.
Used in the context of a symptom event.
The log of cause problem updates (acknowledgments, etc).
Used in the context of a symptom event.
The numeric value of the cause event
Possible values: 1 - Problem, 0 - Recovering.
Used in the context of a symptom event.
The list of symptom events. Includes the following details: host name, event name, severity, age, service tags and values.
This macro is used in the context of the cause event and returns information about symptom events.
The date of the recovery event.
The numeric ID of the recovery event.
The name of the recovery event.
The verbal value of the recovery event.
A comma-separated list of recovery event tags. Expanded to an empty string if no tags exist.
A JSON array containing recovery event tag objects. Expanded to an empty arrahy if no tags exist.
The time of the recovery event.
The UNIX timestamp of the recovery event.
The numeric value of the recovery event.
Human-readable name of the action(s) performed during problem update.
Resolves to the following values: acknowledged, commented, changed severity from (original severity) to (updated severity) and closed (depending on how many actions are performed in one update).
A JSON array containing details of the action(s) performed during problem update.
Possible JSON property values:
- true (for acknowledge
, unacknowledge
, close
, unsuppress
, cause
, and symptom
properties);
- <message string> (for message
property);
- timestamp (for suppress_until
and timestamp
properties) or 0 (for suppress_until
property if suppressed indefinitely);
- 0, 1, 2, 3, 4, 5 (for old
and new
severity properties).
For example: {"acknowledge":true,"message":"Monthly maintenance.","severity":{"old":2,"new":1},"suppress_until":1730851199,"timestamp":1730822048}
The date of the event update (acknowledgment, etc)
Deprecated name: {ACK.DATE}
The log of problem updates (acknowledgments, etc).
Deprecated name: {EVENT.ACK.HISTORY}
The problem update message.
Deprecated name: {ACK.MESSAGE}
The numeric value of the new event severity set during problem update operation.
The name of the new event severity set during problem update operation.
The Numeric value of the problem update status.
Possible values: 0 - Webhook was called because of problem/recovery event, 1 - Update operation.
The time of the event update (acknowledgment, etc)
Deprecated name: {ACK.TIME}
The UNIX timestamp of the event update (acknowledgment, etc)
The value of the Nth item-based function in the trigger expression at the time of the event.
Only functions with /host/key
as the first parameter are counted.
This macro may be used with a numeric index e.g. {FUNCTION.VALUE<1-9>} to point to the first, second, third, etc. function in a trigger expression. See indexed macros.
The value of the Nth item-based function in the recovery expression at the time of the event.*
Only functions with /host/key
s as the first parameter are counted.
This macro may be used with a numeric index e.g. {FUNCTION.RECOVERY.VALUE<1-9>} to point to the first, second, third, etc. function in a trigger expression. See indexed macros.
The host IP address or DNS name, depending on host settings.
In global scripts, interface IP/DNS fields and web scenarios the macro will resolve to the main agent interface. If an agent interface is not defined, the main SNMP interface will be used. If an SNMP interface is also not defined, the main JMX interface will be used. If a JMX interface is not defined either, the main IPMI interface will be used. If the host does not have any interface, the macro resolves to 'UNKNOWN'.
This macro may be used with a numeric index as {HOST.CONN<1-9>} to point to the first, second, third, etc. host in a trigger expression. See indexed macros.
The host description.
This macro may be used with a numeric index as {HOST.DESCRIPTION<1-9>} to point to the first, second, third, etc. host in a trigger expression. See indexed macros.
The host DNS name.
In global scripts, interface IP/DNS fields and web scenarios the macro will resolve to the main agent interface. If an agent interface is not defined, the main SNMP interface will be used. If an SNMP interface is also not defined, the main JMX interface will be used. If a JMX interface is not defined either, the main IPMI interface will be used. If the host does not have any interface, the macro resolves to 'UNKNOWN'.
This macro may be used with a numeric index as {HOST.DNS<1-9>} to point to the first, second, third, etc. host in a trigger expression. See indexed macros.
The technical host name.br> Macro functions are not supported for this macro if it is used as a placeholder in the first parameter of a history function, for example, last(/{HOST.HOST}/{ITEM.KEY})
.
{HOSTNAME<1-9>}
is deprecated.
This macro may be used with a numeric index as {HOST.HOST<1-9>} to point to the first, second, third, etc. host in a trigger expression. See indexed macros.
The host ID.
This macro may be used with a numeric index as {HOST.ID<1-9>} to point to the first, second, third, etc. host in a trigger expression. See indexed macros.
The host IP address.
In global scripts, interface IP/DNS fields and web scenarios the macro will resolve to the main agent interface. If an agent interface is not defined, the main SNMP interface will be used. If an SNMP interface is also not defined, the main JMX interface will be used. If a JMX interface is not defined either, the main IPMI interface will be used. If the host does not have any interface, the macro resolves to 'UNKNOWN'.
{IPADDRESS<1-9>}
is deprecated.
This macro may be used with a numeric index as {HOST.IP<1-9>} to point to the first, second, third, etc. host in a trigger expression. See indexed macros.
The host metadata.
Used only for active agent autoregistration.
The visible host name.
This macro may be used with a numeric index as {HOST.NAME<1-9>} to point to the first, second, third, etc. host in a trigger expression. See indexed macros.
The host (agent) port.
In global scripts, interface IP/DNS fields and web scenarios the macro will resolve to the main agent interface. If an agent interface is not defined, the main SNMP interface will be used. If an SNMP interface is also not defined, the main JMX interface will be used. If a JMX interface is not defined either, the main IPMI interface will be used. If the host does not have any interface, the macro resolves to 'UNKNOWN'.
This macro may be used with a numeric index as {HOST.PORT<1-9>} to point to the first, second, third, etc. host in a trigger expression. See indexed macros.
The IP address or DNS name of the target host.
The DNS name of the target host.
The technical name of the target host.
The IP address of the target host.
The visible name of the target host.
The host group ID.
The Alias field in host inventory.
This macro may be used with a numeric index e.g. {INVENTORY.ALIAS<1-9>} to point to the first, second, third, etc. host in a trigger expression. See indexed macros.
The Asset tag field in host inventory.
This macro may be used with a numeric index e.g. {INVENTORY.ASSET.TAG<1-9>} to point to the first, second, third, etc. host in a trigger expression. See indexed macros.
The Chassis field in host inventory.
This macro may be used with a numeric index e.g. {INVENTORY.CHASSIS<1-9>} to point to the first, second, third, etc. host in a trigger expression. See indexed macros.
The Contact field in host inventory.
{PROFILE.CONTACT<1-9>}
is deprecated.
This macro may be used with a numeric index e.g. {INVENTORY.CONTACT<1-9>} to point to the first, second, third, etc. host in a trigger expression. See indexed macros.
The Contract number field in host inventory.
This macro may be used with a numeric index e.g. {INVENTORY.CONTRACT.NUMBER<1-9>} to point to the first, second, third, etc. host in a trigger expression. See indexed macros.
The Deployment status field in host inventory.
This macro may be used with a numeric index e.g. {INVENTORY.DEPLOYMENT.STATUS<1-9>} to point to the first, second, third, etc. host in a trigger expression. See indexed macros.
The Hardware field in host inventory.
{PROFILE.HARDWARE<1-9>}
is deprecated.
This macro may be used with a numeric index e.g. {INVENTORY.HARDWARE<1-9>} to point to the first, second, third, etc. host in a trigger expression. See indexed macros.
The Hardware (Full details) field in host inventory.
This macro may be used with a numeric index e.g. {INVENTORY.HARDWARE.FULL<1-9>} to point to the first, second, third, etc. host in a trigger expression. See indexed macros.
The Host subnet mask field in host inventory.
This macro may be used with a numeric index e.g. {INVENTORY.HOST.NETMASK<1-9>} to point to the first, second, third, etc. host in a trigger expression. See indexed macros.
The Host networks field in host inventory.
This macro may be used with a numeric index e.g. {INVENTORY.HOST.NETWORKS<1-9>} to point to the first, second, third, etc. host in a trigger expression. See indexed macros.
The Host router field in host inventory.
This macro may be used with a numeric index e.g. {INVENTORY.HOST.ROUTER<1-9>} to point to the first, second, third, etc. host in a trigger expression. See indexed macros.
The Hardware architecture field in host inventory.
This macro may be used with a numeric index e.g. {INVENTORY.HW.ARCH<1-9>} to point to the first, second, third, etc. host in a trigger expression. See indexed macros.
The Date hardware decommissioned field in host inventory.
This macro may be used with a numeric index e.g. {INVENTORY.HW.DATE.DECOMM<1-9>} to point to the first, second, third, etc. host in a trigger expression. See indexed macros.
The Date hardware maintenance expires field in host inventory.
This macro may be used with a numeric index e.g. {INVENTORY.HW.DATE.EXPIRY<1-9>} to point to the first, second, third, etc. host in a trigger expression. See indexed macros.
The Date hardware installed field in host inventory.
This macro may be used with a numeric index e.g. {INVENTORY.HW.DATE.INSTALL<1-9>} to point to the first, second, third, etc. host in a trigger expression. See indexed macros.
The Date hardware purchased field in host inventory.
This macro may be used with a numeric index e.g. {INVENTORY.HW.DATE.PURCHASE<1-9>} to point to the first, second, third, etc. host in a trigger expression. See indexed macros.
The Installer name field in host inventory.
This macro may be used with a numeric index e.g. {INVENTORY.INSTALLER.NAME<1-9>} to point to the first, second, third, etc. host in a trigger expression. See indexed macros.
The Location field in host inventory.
{PROFILE.LOCATION<1-9>}
is deprecated.
This macro may be used with a numeric index e.g. {INVENTORY.LOCATION<1-9>} to point to the first, second, third, etc. host in a trigger expression. See indexed macros.
The Location latitude field in host inventory.
This macro may be used with a numeric index e.g. {INVENTORY.LOCATION.LAT<1-9>} to point to the first, second, third, etc. host in a trigger expression. See indexed macros.
The Location longitude field in host inventory.
This macro may be used with a numeric index e.g. {INVENTORY.LOCATION.LON<1-9>} to point to the first, second, third, etc. host in a trigger expression. See indexed macros.
The MAC address A field in host inventory.
{PROFILE.MACADDRESS<1-9>}
is deprecated.
This macro may be used with a numeric index e.g. {INVENTORY.MACADDRESS.A<1-9>} to point to the first, second, third, etc. host in a trigger expression. See indexed macros.
The MAC address B field in host inventory.
This macro may be used with a numeric index e.g. {INVENTORY.MACADDRESS.B<1-9>} to point to the first, second, third, etc. host in a trigger expression. See indexed macros.
The Model field in host inventory.
This macro may be used with a numeric index e.g. {INVENTORY.MODEL<1-9>} to point to the first, second, third, etc. host in a trigger expression. See indexed macros.
The Name field in host inventory.
{PROFILE.NAME<1-9>}
is deprecated.
This macro may be used with a numeric index e.g. {INVENTORY.NAME<1-9>} to point to the first, second, third, etc. host in a trigger expression. See indexed macros.
The Notes field in host inventory.
{PROFILE.NOTES<1-9>}
is deprecated.
This macro may be used with a numeric index e.g. {INVENTORY.NOTES<1-9>} to point to the first, second, third, etc. host in a trigger expression. See indexed macros.
The OOB IP address field in host inventory.
This macro may be used with a numeric index e.g. {INVENTORY.OOB.IP<1-9>} to point to the first, second, third, etc. host in a trigger expression. See indexed macros.
The OOB subnet mask field in host inventory.
This macro may be used with a numeric index e.g. {INVENTORY.OOB.NETMASK<1-9>} to point to the first, second, third, etc. host in a trigger expression. See indexed macros.
The OOB router field in host inventory.
This macro may be used with a numeric index e.g. {INVENTORY.OOB.ROUTER<1-9>} to point to the first, second, third, etc. host in a trigger expression. See indexed macros.
The OS field in host inventory.
{PROFILE.OS<1-9>}
is deprecated.
This macro may be used with a numeric index e.g. {INVENTORY.OS<1-9>} to point to the first, second, third, etc. host in a trigger expression. See indexed macros.
The OS (Full details) field in host inventory.
This macro may be used with a numeric index e.g. {INVENTORY.OS.FULL<1-9>} to point to the first, second, third, etc. host in a trigger expression. See indexed macros.
The OS (Short) field in host inventory.
This macro may be used with a numeric index e.g. {INVENTORY.OS.SHORT<1-9>} to point to the first, second, third, etc. host in a trigger expression. See indexed macros.
The Primary POC cell field in host inventory.
This macro may be used with a numeric index e.g. {INVENTORY.POC.PRIMARY.CELL<1-9>} to point to the first, second, third, etc. host in a trigger expression. See indexed macros.
The Primary POC email field in host inventory.
This macro may be used with a numeric index e.g. {INVENTORY.POC.PRIMARY.EMAIL<1-9>} to point to the first, second, third, etc. host in a trigger expression. See indexed macros.
The Primary POC name field in host inventory.
This macro may be used with a numeric index e.g. {INVENTORY.POC.PRIMARY.NAME<1-9>} to point to the first, second, third, etc. host in a trigger expression. See indexed macros.
The Primary POC notes field in host inventory.
This macro may be used with a numeric index e.g. {INVENTORY.POC.PRIMARY.NOTES<1-9>} to point to the first, second, third, etc. host in a trigger expression. See indexed macros.
The Primary POC phone A field in host inventory.
This macro may be used with a numeric index e.g. {INVENTORY.POC.PRIMARY.PHONE.A<1-9>} to point to the first, second, third, etc. host in a trigger expression. See indexed macros.
The Primary POC phone B field in host inventory.
This macro may be used with a numeric index e.g. {INVENTORY.POC.PRIMARY.PHONE.B<1-9>} to point to the first, second, third, etc. host in a trigger expression. See indexed macros.
The Primary POC screen name field in host inventory.
This macro may be used with a numeric index e.g. {INVENTORY.POC.PRIMARY.SCREEN<1-9>} to point to the first, second, third, etc. host in a trigger expression. See indexed macros.
The Secondary POC cell field in host inventory.
This macro may be used with a numeric index e.g. {INVENTORY.POC.SECONDARY.CELL<1-9>} to point to the first, second, third, etc. host in a trigger expression. See indexed macros.
The Secondary POC email field in host inventory.
This macro may be used with a numeric index e.g. {INVENTORY.POC.SECONDARY.EMAIL<1-9>} to point to the first, second, third, etc. host in a trigger expression. See indexed macros.
The Secondary POC name field in host inventory.
This macro may be used with a numeric index e.g. {INVENTORY.POC.SECONDARY.NAME<1-9>} to point to the first, second, third, etc. host in a trigger expression. See indexed macros.
The Secondary POC notes field in host inventory.
This macro may be used with a numeric index e.g. {INVENTORY.POC.SECONDARY.NOTES<1-9>} to point to the first, second, third, etc. host in a trigger expression. See indexed macros.
The Secondary POC phone A field in host inventory.
This macro may be used with a numeric index e.g. {INVENTORY.POC.SECONDARY.PHONE.A<1-9>} to point to the first, second, third, etc. host in a trigger expression. See indexed macros.
The Secondary POC phone B field in host inventory.
This macro may be used with a numeric index e.g. {INVENTORY.POC.SECONDARY.PHONE.B<1-9>} to point to the first, second, third, etc. host in a trigger expression. See indexed macros.
The Secondary POC screen name field in host inventory.
This macro may be used with a numeric index e.g. {INVENTORY.POC.SECONDARY.SCREEN<1-9>} to point to the first, second, third, etc. host in a trigger expression. See indexed macros.
The Serial number A field in host inventory.
{PROFILE.SERIALNO<1-9>}
is deprecated.
This macro may be used with a numeric index e.g. {INVENTORY.SERIALNO.A<1-9>} to point to the first, second, third, etc. host in a trigger expression. See indexed macros.
The Serial number B field in host inventory.
This macro may be used with a numeric index e.g. {INVENTORY.SERIALNO.B<1-9>} to point to the first, second, third, etc. host in a trigger expression. See indexed macros.
The Site address A field in host inventory.
This macro may be used with a numeric index e.g. {INVENTORY.SITE.ADDRESS.A<1-9>} to point to the first, second, third, etc. host in a trigger expression. See indexed macros.
The Site address B field in host inventory.
This macro may be used with a numeric index e.g. {INVENTORY.SITE.ADDRESS.B<1-9>} to point to the first, second, third, etc. host in a trigger expression. See indexed macros.
The Site address C field in host inventory.
This macro may be used with a numeric index e.g. {INVENTORY.SITE.ADDRESS.C<1-9>} to point to the first, second, third, etc. host in a trigger expression. See indexed macros.
The Site city field in host inventory.
This macro may be used with a numeric index e.g. {INVENTORY.SITE.CITY<1-9>} to point to the first, second, third, etc. host in a trigger expression. See indexed macros.
The Site country field in host inventory.
This macro may be used with a numeric index e.g. {INVENTORY.SITE.COUNTRY<1-9>} to point to the first, second, third, etc. host in a trigger expression. See indexed macros.
The Site notes field in host inventory.
This macro may be used with a numeric index e.g. {INVENTORY.SITE.NOTES<1-9>} to point to the first, second, third, etc. host in a trigger expression. See indexed macros.
The Site rack location field in host inventory.
This macro may be used with a numeric index e.g. {INVENTORY.SITE.RACK<1-9>} to point to the first, second, third, etc. host in a trigger expression. See indexed macros.
The Site state/province field in host inventory.
This macro may be used with a numeric index e.g. {INVENTORY.SITE.STATE<1-9>} to point to the first, second, third, etc. host in a trigger expression. See indexed macros.
The Site ZIP/postal field in host inventory.
This macro may be used with a numeric index e.g. {INVENTORY.SITE.ZIP<1-9>} to point to the first, second, third, etc. host in a trigger expression. See indexed macros.
The Software field in host inventory.
{PROFILE.SOFTWARE<1-9>}
is deprecated.
This macro may be used with a numeric index e.g. {INVENTORY.SOFTWARE<1-9>} to point to the first, second, third, etc. host in a trigger expression. See indexed macros.
The Software application A field in host inventory.
This macro may be used with a numeric index e.g. {INVENTORY.SOFTWARE.APP.A<1-9>} to point to the first, second, third, etc. host in a trigger expression. See indexed macros.
The Software application B field in host inventory.
This macro may be used with a numeric index e.g. {INVENTORY.SOFTWARE.APP.B<1-9>} to point to the first, second, third, etc. host in a trigger expression. See indexed macros.
The Software application C field in host inventory.
This macro may be used with a numeric index e.g. {INVENTORY.SOFTWARE.APP.C<1-9>} to point to the first, second, third, etc. host in a trigger expression. See indexed macros.
The Software application D field in host inventory.
This macro may be used with a numeric index e.g. {INVENTORY.SOFTWARE.APP.D<1-9>} to point to the first, second, third, etc. host in a trigger expression. See indexed macros.
The Software application E field in host inventory.
This macro may be used with a numeric index e.g. {INVENTORY.SOFTWARE.APP.E<1-9>} to point to the first, second, third, etc. host in a trigger expression. See indexed macros.
The Software (Full details) field in host inventory.
This macro may be used with a numeric index e.g. {INVENTORY.SOFTWARE.FULL<1-9>} to point to the first, second, third, etc. host in a trigger expression. See indexed macros.
The Tag field in host inventory.
{PROFILE.TAG<1-9>}
is deprecated.
This macro may be used with a numeric index e.g. {INVENTORY.TAG<1-9>} to point to the first, second, third, etc. host in a trigger expression. See indexed macros.
The Type field in host inventory.
{PROFILE.DEVICETYPE<1-9>}
is deprecated.
This macro may be used with a numeric index e.g. {INVENTORY.TYPE<1-9>} to point to the first, second, third, etc. host in a trigger expression. See indexed macros.
The Type (Full details) field in host inventory.
This macro may be used with a numeric index e.g. {INVENTORY.TYPE.FULL<1-9>} to point to the first, second, third, etc. host in a trigger expression. See indexed macros.
The URL A field in host inventory.
This macro may be used with a numeric index e.g. {INVENTORY.URL.A<1-9>} to point to the first, second, third, etc. host in a trigger expression. See indexed macros.
The URL B field in host inventory.
This macro may be used with a numeric index e.g. {INVENTORY.URL.B<1-9>} to point to the first, second, third, etc. host in a trigger expression. See indexed macros.
The URL C field in host inventory.
This macro may be used with a numeric index e.g. {INVENTORY.URL.C<1-9>} to point to the first, second, third, etc. host in a trigger expression. See indexed macros.
The Vendor field in host inventory.
This macro may be used with a numeric index e.g. {INVENTORY.VENDOR<1-9>} to point to the first, second, third, etc. host in a trigger expression. See indexed macros.
The description of the Nth item in the trigger expression that caused a notification.
This macro may be used with a numeric index as {ITEM.DESCRIPTION<1-9>} to point to the first, second, third, etc. host in a trigger expression. See indexed macros.
The original description (with macros unresolved) of the Nth item in the trigger expression that caused a notification.
This macro may be used with a numeric index as {ITEM.DESCRIPTION.ORIG<1-9>} to point to the first, second, third, etc. host in a trigger expression. See indexed macros.
The numeric ID of the Nth item in the trigger expression that caused a notification.
This macro may be used with a numeric index as {ITEM.ID<1-9>} to point to the first, second, third, etc. host in a trigger expression. See indexed macros.
The key of the Nth item in the trigger expression that caused a notification.
Macro functions are not supported for this macro if it is used as a placeholder in the first parameter of a history function, for example, last(/{HOST.HOST}/{ITEM.KEY})
.
{TRIGGER.KEY}
is deprecated.
This macro may be used with a numeric index as {ITEM.KEY<1-9>} to point to the first, second, third, etc. host in a trigger expression. See indexed macros.
The original key (with macros unresolved) of the Nth item in the trigger expression that caused a notification.
This macro may be used with a numeric index as {ITEM.KEY.ORIG<1-9>} to point to the first, second, third, etc. host in a trigger expression. See indexed macros.
The latest value of the Nth item in the trigger expression that caused a notification.
It will resolve to *UNKNOWN* in the frontend if the latest history value has been collected more than the Max history display period time ago (set in the Administration → General menu section).
When used in the problem name, the macro will not resolve to the latest item value when viewing problem events; instead, it will keep the item value from the time when the problem happened.
When used in notifications, in some cases the macro might not resolve to the latest item value at the moment the trigger fired. For example, if an item quickly receives two values, "A" and "B", and the trigger fires for "A", notifications might show "B" as the latest value due to a slight processing delay - the latest item value changed between the time the trigger fired and when the notification was created. To avoid this, you can use the {ITEM.VALUE} macro, which resolves to the value at the moment the trigger fires, ensuring the correct value is used in the notification.
It is alias to last(/{HOST.HOST}/{ITEM.KEY})
.
The resolved value for text/log items is truncated to 20 characters by the frontend in the following locations:
- Operational data;
- Trigger description;
- Trigger URLs;
- Trigger URL labels;
- Description of the item value widget.
To resolve to a full value, you may use macro functions, as no values are truncated by the server. For example: {{ITEM.LASTVALUE}.regsub("(.*)", \1)}
This macro may be used with a numeric index e.g. {ITEM.LASTVALUE<1-9>} to point to the first, second, third, etc. item in a trigger expression. See indexed macros.
The time that elapsed between the latest item value collection and macro evaluation.
Displayed in a human-readable format (e.g. 1m 45s).
This macro may be used with a numeric index e.g. {ITEM.LASTVALUE.AGE<1-9>} to point to the first, second, third, etc. item in a trigger expression. See indexed macros.
The date when the latest item value was collected.
Displayed in a YYYYMMDD
format.
Server time zone is used in trigger names (in Monitoring -> Problems list), event names, and tag names and values. In all other cases user time zone is used.
This macro may be used with a numeric index e.g. {ITEM.LASTVALUE.DATE<1-9>} to point to the first, second, third, etc. item in a trigger expression. See indexed macros.
The time when the latest item value was collected.
Displayed in an HHMMSS
format.
Server time zone is used in trigger names (in Monitoring -> Problems list), event names, and tag names and values. In all other cases user time zone is used.
This macro may be used with a numeric index e.g. {ITEM.LASTVALUE.TIME<1-9>} to point to the first, second, third, etc. item in a trigger expression. See indexed macros.
The UNIX timestamp when the latest item value was collected.
This macro may be used with a numeric index e.g. {ITEM.LASTVALUE.TIMESTAMP<1-9>} to point to the first, second, third, etc. item in a trigger expression. See indexed macros.
The age of the log event.
With precision down to a second.
This macro may be used with a numeric index e.g. {ITEM.LOG.AGE<1-9>} to point to the first, second, third, etc. item in a trigger expression. See indexed macros.
The date when the log entry was written to the log.
This macro may be used with a numeric index e.g. {ITEM.LOG.DATE<1-9>} to point to the first, second, third, etc. item in a trigger expression. See indexed macros.
The ID of the event in the event log.
For Windows event log monitoring only.
This macro may be used with a numeric index e.g. {ITEM.LOG.EVENTID<1-9>} to point to the first, second, third, etc. item in a trigger expression. See indexed macros.
The numeric severity of the event in the event log.
For Windows event log monitoring only.
This macro may be used with a numeric index e.g. {ITEM.LOG.NSEVERITY<1-9>} to point to the first, second, third, etc. item in a trigger expression. See indexed macros.
The verbal severity of the event in the event log.
For Windows event log monitoring only.
This macro may be used with a numeric index e.g. {ITEM.LOG.SEVERITY<1-9>} to point to the first, second, third, etc. item in a trigger expression. See indexed macros.
The source of the event in the event log.
For Windows event log monitoring only.
This macro may be used with a numeric index e.g. {ITEM.LOG.SOURCE<1-9>} to point to the first, second, third, etc. item in a trigger expression. See indexed macros.
The time when the log entry was written to the log.
This macro may be used with a numeric index e.g. {ITEM.LOG.TIME<1-9>} to point to the first, second, third, etc. item in a trigger expression. See indexed macros.
The UNIX timestamp when the log entry was written to the log.
This macro may be used with a numeric index e.g. {ITEM.LOG.TIMESTAMP<1-9>} to point to the first, second, third, etc. item in a trigger expression. See indexed macros.
The name of the item with all macros resolved.
This macro may be used with a numeric index e.g. {ITEM.NAME<1-9>} to point to the first, second, third, etc. item in a trigger expression. See indexed macros.
The original name (with macros unresolved) of the item.
This macro may be used with a numeric index e.g. {ITEM.NAME.ORIG<1-9>} to point to the first, second, third, etc. item in a trigger expression. See indexed macros.
The latest state of the Nth item in the trigger expression that caused a notification.
Possible values: Not supported, Normal.
This macro may be used with a numeric index e.g. {ITEM.STATE<1-9>} to point to the first, second, third, etc. item in a trigger expression. See indexed macros.
The error message with details why an item became unsupported.
If an item goes into the unsupported state and then immediately gets supported again the error field can be empty.
Resolved to either:
1) the historical (at-the-time-of-event) value of the Nth item in the trigger expression, if used in the context of trigger status change, for example, when displaying events or sending notifications.
2) the latest value of the Nth item in the trigger expression, if used without the context of trigger status change, for example, when displaying a list of triggers in a pop-up selection window. In this case works the same as {ITEM.LASTVALUE}
In the first case it will resolve to *UNKNOWN* if the history value has already been deleted or has never been stored.
In the second case, and in the frontend only, it will resolve to *UNKNOWN* if the latest history value has been collected more than the Max history display period time ago (set in the Administration→General menu section).
The resolved value for text/log items is truncated to 20 characters by the frontend in the following locations:
- Operational data;
- Trigger description;
- Trigger URLs;
- Trigger URL labels;
- Description of the item value widget.
To resolve to a full value, you may use macro functions, as no values are truncated by the server. For example: {{ITEM.VALUE}.regsub("(.*)", \1)}
This macro may be used with a numeric index e.g. {ITEM.VALUE<1-9>} to point to the first, second, third, etc. item in a trigger expression. See indexed macros.
The time that elapsed between the item value collection and macro evaluation.
Displayed in a human-readable format (e.g. 1m 45s).
This macro may be used with a numeric index e.g. {ITEM.VALUE.AGE<1-9>} to point to the first, second, third, etc. item in a trigger expression. See indexed macros.
The date when the item value was collected.
Displayed in a YYYYMMDD
format.
The server time zone is used in trigger names (in Monitoring -> Problems list), event names, and tag names and values. In all other cases user time zone is used.
This macro may be used with a numeric index e.g. {ITEM.VALUE.DATE<1-9>} to point to the first, second, third, etc. item in a trigger expression. See indexed macros.
The time when the item value was collected.
Displayed in an HHMMSS
format.
The server time zone is used in trigger names (in Monitoring -> Problems list), event names, and tag names and values. In all other cases user time zone is used.
This macro may be used with a numeric index e.g. {ITEM.VALUE.TIME<1-9>} to point to the first, second, third, etc. item in a trigger expression. See indexed macros.
The UNIX timestamp when the item value was collected.
This macro may be used with a numeric index e.g. {ITEM.VALUE.TIMESTAMP<1-9>} to point to the first, second, third, etc. item in a trigger expression. See indexed macros.
The value type of the Nth item in the trigger expression that caused a notification.
Possible values: 0 - Numeric float, 1 - Character, 2 - Log, 3 - Numeric unsigned, 4 - Text.
This macro may be used with a numeric index e.g. {ITEM.VALUETYPE<1-9>} to point to the first, second, third, etc. item in a trigger expression. See indexed macros.
The description of the low-level discovery rule that caused a notification.
The original description (with macros unresolved) of the low-level discovery rule that caused a notification.
The numeric ID of the low-level discovery rule that caused a notification.
The key of the low-level discovery rule that caused a notification.
The original key (with macros unresolved) of the low-level discovery rule that caused a notification.
The name of the low-level discovery rule that caused a notification.
The original name (with macros unresolved) of the low-level discovery rule that caused a notification.
The latest state of the low-level discovery rule.
Possible values: Not supported, Normal.
This macro may be used with a numeric index e.g. {LLDRULE.STATE<1-9>} to point to the first, second, third, etc. item in a trigger expression. See indexed macros.
The error message with details why the low-level discovery rule became unsupported.
If a low-level discovery rule goes into the unsupported state and then immediately gets supported again the error field can be empty.
The network map ID.
The network map name.
The proxy description.
Resolves to either:
1) proxy of the Nth item in the trigger expression (in trigger-based notifications). You may use indexed macros here.
2) proxy, which executed discovery (in discovery notifications). Use {PROXY.DESCRIPTION} here, without indexing.
3) proxy to which an active agent registered (in autoregistration notifications). Use {PROXY.DESCRIPTION} here, without indexing.
This macro may be used with a numeric index e.g. {PROXY.DESCRIPTION<1-9>} to point to the first, second, third, etc. item in a trigger expression. See indexed macros.
The proxy name.
Resolves to either:
1) proxy of the Nth item in the trigger expression (in trigger-based notifications). You may use indexed macros here.
2) proxy, which executed discovery (in discovery notifications). Use {PROXY.NAME} here, without indexing.
3) proxy to which an active agent registered (in autoregistration notifications). Use {PROXY.NAME} here, without indexing.
This macro may be used with a numeric index e.g. {PROXY.NAME<1-9>} to point to the first, second, third, etc. item in a trigger expression. See indexed macros.
The manual input value specified by user at script execution time.
The service description with macros resolved.
The numeric ID of the service that triggered an action.
The service name with macros resolved.
The list of trigger problem events that caused a service to fail, sorted by severity and host name.
Includes the following details: host name, event name, severity, age, service tags and values.
A comma-separated list of service event tags.
Service event tags can be defined in the service configuration tags section. Expanded to an empty string if no tags exist.
A JSON array containing service event tag objects.
Service event tags can be defined in the service configuration tags section. Expanded to an empty array if no tags exist.
The service event tag value referenced by the tag name.
The service event tags can be defined in the service configuration tags section.
A tag name containing non-alphanumeric characters (including non-English multibyte-UTF characters) must be double quoted. Quotes and backslashes inside a quoted tag name must be escaped with a backslash.
The trigger description.
All macros supported in a trigger description will be expanded if {TRIGGER.DESCRIPTION}
is used in notification text.
{TRIGGER.COMMENT}
is deprecated.
The number of acknowledged events for a map element in maps, or for the trigger which generated current event in notifications.
The number of acknowledged problem events for all triggers disregarding their state.
The number of unacknowledged problem events for all triggers disregarding their state.
The number of unacknowledged events for a map element in maps, or for the trigger which generated current event in notifications.
The trigger expression.
A partially-evaluated trigger expression.
Item-based functions are evaluated and replaced by the results at the time of event generation whereas all other functions are displayed as written in the expression. Can be used for debugging trigger expressions.
The trigger recovery expression if OK event generation in trigger configuration is set to "Recovery expression"; otherwise an empty string is returned.
A partially-evaluated trigger recovery expression.
Item-based functions are evaluated and replaced by the results at the time of event generation whereas all other functions are displayed as written in the expression. Can be used for debugging trigger recovery expressions.
A sorted (by SQL query), comma-space separated list of host groups in which the trigger is defined.
The numeric trigger ID which triggered this action.
The trigger name with macros resolved.
Note that {EVENT.NAME}
can be used in actions to display the triggered event/problem name with macros resolved.
The original trigger name (with macros unresolved).
The numerical trigger severity.
Possible values: 0 - Not classified, 1 - Information, 2 - Warning, 3 - Average, 4 - High, 5 - Disaster.
The number of acknowledged problem events for triggers in problem state.
The number of unacknowledged problem events for triggers in problem state.
The trigger severity name.
Can be defined in Administration > General > Trigger displaying options.
The latest state of the trigger.
Possible values: Unknown, Normal.
The error message with details why a trigger became unsupported.
If a trigger goes into the unsupported state and then immediately gets supported again the error field can be empty.
The trigger value at the time of operation step execution.
Possible values: Problem, OK.
{STATUS}
is deprecated.
A sorted (by SQL query), comma-space separated list of templates in which the trigger is defined, or *UNKNOWN* if the trigger is defined in a host.
The trigger URL.
The label for the trigger URL.
The current numeric trigger value.
Possible values: 0 - trigger is in OK status, 1 - trigger is in Problem status.
The number of acknowledged triggers for a map element, disregarding trigger state.
A trigger is considered to be acknowledged if all of its problem events are acknowledged.
The number of acknowledged problem triggers for a map element.
A trigger is considered to be acknowledged if all of its problem events are acknowledged.
The number of unacknowledged problem triggers for a map element.
A trigger is considered to be unacknowledged if at least one of its problem events is unacknowledged.
The number of unacknowledged triggers for a map element, disregarding trigger state.
A trigger is considered to be unacknowledged if at least one of its problem events is unacknowledged.
The name, surname and username of the user who added event acknowledgment or started the script.
The name of the user who started the script.
The surname of the user who started the script.
The username of the user who started the script.
{USER.ALIAS}
is now deprecated.
The indexed macro syntax {MACRO<1-9>} can only reference the N-th item, function, or host in a trigger's Expression field:
In the context of triggers, indexed macros always refer to the Expression field of the trigger configuration, not the Recovery expression. For example, in a recovery event, {ITEM.VALUE2} will resolve to the value of the second item from the problem expression at the time of recovery.
The {HOST.HOST<1-9>} macro is also supported within the {?func(/host/key,param)}
expression macro in graph names. For example, {?func(/{HOST.HOST2}/key,param)}
in a graph name will resolve to the host of the second item in the graph.
Indexed macros will not resolve in any other context beyond the cases mentioned here. For other contexts, use macros without an index ({HOST.HOST}, {HOST.IP}, etc.).