The macros supported by location table contains reference of all macros 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 complete detailed list of built-in macros, grouped by application area.
See also: User macros supported by location
This list contains all details for each macro grouped by application area:
Note that to customize macro values (for example, shorten or extract specific substrings), you can use macro functions.
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.).