Zabbix Documentation 3.2

3.04.04.24.4 (current)| In development:5.0 (devel)| Unsupported:1.82.02.22.43.23.4Guidelines

User Tools

Site Tools


manual:appendix:macros:supported_by_location

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Previous revision
manual:appendix:macros:supported_by_location [2017/10/10 08:11]
manual:appendix:macros:supported_by_location [2019/01/18 08:32] (current)
martins-v fixing some formatting issues
Line 1: Line 1:
 +==== 1 Supported macros ====
 +
 +=== Overview ===
 +
 +The table contains a complete list of [[:​manual/​config/​macros|macros]] supported by Zabbix.
 +
 +^Macro ​ ^Supported in  ^Description ​ |
 +|{ACTION.ID} ​                           |-> Trigger-based notifications and commands\\ -> Discovery notifications\\ ​ -> Auto-registration notifications\\ ​ -> Internal notifications ​ |//Numeric ID of the triggered action.//\\ Supported since 2.2.0. ​ |
 +|{ACTION.NAME} ​                         |-> Trigger-based notifications and commands\\ -> Discovery notifications\\ ​ -> Auto-registration notifications\\ ​ -> Internal notifications ​ |//Name of the triggered action.//\\ Supported since 2.2.0. ​ |
 +|{ALERT.MESSAGE} ​                       |-> Alert script parameters ​ |//'​Default message'​ value from action configuration.//​\\ Supported since 3.0.0. ​ |
 +|{ALERT.SENDTO} ​                        ​|->​ Alert script parameters ​ |//'​Send to' value from user media configuration.//​\\ Supported since 3.0.0. ​ |
 +|{ALERT.SUBJECT} ​                       |-> Alert script parameters ​ |//'​Default subject'​ value from action configuration.//​\\ Supported since 3.0.0. ​ |
 +|{DATE} ​                                ​|->​ Trigger-based notifications and commands\\ -> Discovery notifications\\ ​ -> Auto-registration notifications\\ ​ -> Internal notifications ​ |//Current date in yyyy.mm.dd. format.// ​ |
 +|{DISCOVERY.DEVICE.IPADDRESS} ​          ​|->​ Discovery notifications ​ |//IP address of the discovered device.//\\ Available always, does not depend on host being added. ​ |
 +|{DISCOVERY.DEVICE.DNS} ​                ​|->​ Discovery notifications ​ |//DNS name of the discovered device.//\\ Available always, does not depend on host being added. ​ |
 +|{DISCOVERY.DEVICE.STATUS} ​             |-> Discovery notifications ​ |//Status of the discovered device//: can be either UP or DOWN.  |
 +|{DISCOVERY.DEVICE.UPTIME} ​             |-> Discovery notifications ​ |//Time since the last change of discovery status for a particular device.//\\ For example: 1h 29m.\\ For devices with status DOWN, this is the period of their downtime. |
 +|{DISCOVERY.RULE.NAME} ​                 |-> Discovery notifications ​ |//Name of the discovery rule that discovered the presence or absence of the device or service.// ​ |
 +|{DISCOVERY.SERVICE.NAME} ​              ​|->​ Discovery notifications ​ |//Name of the service that was discovered.//​\\ For example: HTTP.  |
 +|{DISCOVERY.SERVICE.PORT} ​              ​|->​ Discovery notifications ​ |//Port of the service that was discovered.//​\\ For example: 80.  |
 +|{DISCOVERY.SERVICE.STATUS} ​            ​|->​ Discovery notifications ​ |//Status of the discovered service:// can be either UP or DOWN. |
 +|{DISCOVERY.SERVICE.UPTIME} ​            ​|->​ Discovery notifications ​ |//Time since the last change of discovery status for a particular service.//​\\ For example: 1h 29m.\\ For services with status DOWN, this is the period of their downtime. ​ |
 +|{ESC.HISTORY} ​                         |-> Trigger-based notifications and commands\\ -> Internal notifications ​ |//​Escalation history. Log of previously sent messages.//​\\ Shows previously sent notifications,​ on which escalation step they were sent and their status (//sent//, //in progress// or //​failed//​). ​ |
 +|{EVENT.ACK.HISTORY} ​                   |-> Trigger-based notifications and commands ​ |//Log of acknowledgements on the problem.// ​ |
 +|{EVENT.ACK.STATUS} ​                    ​|->​ Trigger-based notifications and commands ​ |//​Acknowledgement status of the event (Yes/​No)//​. ​ |
 +|{EVENT.AGE} ​                           |-> Trigger-based notifications and commands\\ -> Discovery notifications\\ ​ -> Auto-registration notifications\\ ​ -> Internal notifications ​ |//Age of the event that triggered an action.//\\ Useful in escalated messages. ​ |
 +|{EVENT.DATE} ​                          ​|->​ Trigger-based notifications and commands\\ -> Discovery notifications\\ ​ -> Auto-registration notifications\\ ​ -> Internal notifications ​ |//Date of the event that triggered an action.// ​ |
 +|{EVENT.ID} ​                            ​|->​ Trigger-based notifications and commands\\ -> Discovery notifications\\ ​ -> Auto-registration notifications\\ ​ -> Internal notifications ​ |//Numeric ID of the event that triggered an action.// ​ |
 +|{EVENT.RECOVERY.DATE} ​                 |-> Trigger-based notifications\\ -> Internal notifications ​ |//Date of the recovery event.//\\ Can be used in [[manual:​config:​notifications:​action#​configuring_an_action|recovery]] messages only.\\ Supported since 2.2.0. ​ |
 +|{EVENT.RECOVERY.ID} ​                   |-> Trigger-based notifications\\ -> Internal notifications ​ |//Numeric ID of the recovery event.//\\ Can be used in [[manual:​config:​notifications:​action#​configuring_an_action|recovery]] messages only. Supported since 2.2.0. ​ |
 +|{EVENT.RECOVERY.STATUS} ​               |-> Trigger-based notifications\\ -> Internal notifications ​ |//Verbal value of the recovery event.//\\ Can be used in [[manual:​config:​notifications:​action#​configuring_an_action|recovery]] messages only. Supported since 2.2.0. ​ |
 +|{EVENT.RECOVERY.TAGS} ​                          ​|->​ Trigger-based notifications and commands ​ |//A comma separated list of recovery event tags.// Expanded to an empty string if no tags exist.\\ Supported since 3.2.0. ​ |
 +|{EVENT.RECOVERY.TIME} ​                 |-> Trigger-based notifications\\ -> Internal notifications ​ |//Time of the recovery event.//\\ Can be used in [[manual:​config:​notifications:​action#​configuring_an_action|recovery]] messages only.\\ Supported since 2.2.0. ​ |
 +|{EVENT.RECOVERY.VALUE} ​                ​|->​ Trigger-based notifications\\ -> Internal notifications ​ |//Numeric value of the recovery event.//\\ Can be used in [[manual:​config:​notifications:​action#​configuring_an_action|recovery]] messages only.\\ Supported since 2.2.0. ​ |
 +|{EVENT.STATUS} ​                        ​|->​ Trigger-based notifications and commands\\ -> Discovery notifications\\ ​ -> Auto-registration notifications\\ ​ -> Internal notifications ​ |//Verbal value of the event that triggered an action.//\\ Supported since 2.2.0. ​ |
 +|{EVENT.TAGS} ​                          ​|->​ Trigger-based notifications and commands ​ |//A comma separated list of event tags.// Expanded to an empty string if no tags exist.\\ Supported since 3.2.0. ​ |
 +|{EVENT.TIME} ​                          ​|->​ Trigger-based notifications and commands\\ -> Discovery notifications\\ ​ -> Auto-registration notifications\\ ​ -> Internal notifications ​ |//Time of the event that triggered an action.// ​ |
 +|{EVENT.VALUE} ​                         |-> Trigger-based notifications and commands\\ -> Discovery notifications\\ ​ -> Auto-registration notifications\\ ​ -> Internal notifications ​ |//Numeric value of the event that triggered an action (1 for problem, 0 for recovering).//​\\ Supported since 2.2.0. ​ |
 +|{HOST.CONN[[supported_by_location#​indexed_macros|<​1-9>​]]} ​                      ​|->​ Trigger-based notifications and commands\\ -> Internal notifications\\ -> Global scripts (including confirmation text)\\ -> Icon labels in maps<​sup>​[[supported_by_location#​footnotes|1]]</​sup>​\\ -> Item key parameters<​sup>​[[supported_by_location#​footnotes|2]]</​sup>​\\ -> Host interface IP/DNS\\ -> Database monitoring additional parameters<​sup>​[[supported_by_location#​footnotes|5]]</​sup>​\\ -> SSH and Telnet scripts<​sup>​[[supported_by_location#​footnotes|5]]</​sup>​\\ -> Web monitoring<​sup>​[[supported_by_location#​footnotes|6]]</​sup>​\\ -> Low-level discovery rule filter regular expressions<​sup>​[[supported_by_location#​footnotes|8]]</​sup>​\\ -> URL field of dynamic URL screen element<​sup>​[[supported_by_location#​footnotes|8]]</​sup>​\\ -> Trigger names and descriptions\\ -> Trigger URLs<​sup>​[[supported_by_location#​footnotes|10]]</​sup> ​ |//Host IP address or DNS name, depending on host settings//<​sup>​[[supported_by_location#​footnotes|3]]</​sup>​.\\ Supported in trigger names since 2.0.0. ​ | 
 +|{HOST.DESCRIPTION[[supported_by_location#​indexed_macros|<​1-9>​]]} ​               |-> Trigger-based notifications and commands\\ -> Internal notifications\\ -> Icon labels in maps<​sup>​[[supported_by_location#​footnotes|1]]</​sup> ​ |//Host description.//​\\ Supported since 2.4.0. ​ |
 +|{HOST.DNS[[supported_by_location#​indexed_macros|<​1-9>​]]} ​                       |-> Trigger-based notifications and commands\\ -> Internal notifications\\ -> Global scripts (including confirmation text)\\ -> Icon labels in maps<​sup>​[[supported_by_location#​footnotes|1]]</​sup>​\\ -> Item key parameters<​sup>​[[supported_by_location#​footnotes|2]]</​sup>​\\ -> Host interface IP/DNS\\ -> Database monitoring additional parameters<​sup>​[[supported_by_location#​footnotes|5]]</​sup>​\\ -> SSH and Telnet scripts<​sup>​[[supported_by_location#​footnotes|5]]</​sup>​\\ -> Web monitoring<​sup>​[[supported_by_location#​footnotes|6]]</​sup>​\\ -> Low-level discovery rule filter regular expressions<​sup>​[[supported_by_location#​footnotes|8]]</​sup>​\\ -> URL field of dynamic URL screen element<​sup>​[[supported_by_location#​footnotes|8]]</​sup>​\\ -> Trigger names and descriptions\\ -> Trigger URLs<​sup>​[[supported_by_location#​footnotes|10]]</​sup> ​ |//Host DNS name//<​sup>​[[supported_by_location#​footnotes|3]]</​sup>​.\\ Supported in trigger names since 2.0.0. ​ |
 +|{HOST.HOST[[supported_by_location#​indexed_macros|<​1-9>​]]} ​                      ​|->​ Trigger-based notifications and commands\\ -> Auto registration notifications\\ -> Internal notifications\\ -> Global scripts (including confirmation text)\\ -> Item key parameters\\ -> Icon labels in maps<​sup>​[[supported_by_location#​footnotes|1]]</​sup>​\\ -> Host interface IP/DNS\\ -> Database monitoring additional parameters<​sup>​[[supported_by_location#​footnotes|5]]</​sup>​\\ -> SSH and Telnet scripts<​sup>​[[supported_by_location#​footnotes|5]]</​sup>​\\ -> Web monitoring<​sup>​[[supported_by_location#​footnotes|6]]</​sup>​\\ -> Low-level discovery rule filter regular expressions<​sup>​[[supported_by_location#​footnotes|8]]</​sup>​\\ -> URL field of dynamic URL screen element<​sup>​[[supported_by_location#​footnotes|8]]</​sup>​\\ -> Trigger names and descriptions\\ -> Trigger URLs <​sup>​[[supported_by_location#​footnotes|10]]</​sup> ​ |//Host name.//\\ ''​{HOSTNAME<​1-9>​}''​ is deprecated. ​ |
 +|{HOST.ID[[supported_by_location#​indexed_macros|<​1-9>​]]} ​                        ​|->​ Map URLs\\ -> URL field of dynamic URL screen element<​sup>​[[supported_by_location#​footnotes|8]]</​sup>​\\ -> Trigger URLs<​sup>​[[supported_by_location#​footnotes|10]]</​sup> ​ |//Host ID.//  |
 +|{HOST.IP[[supported_by_location#​indexed_macros|<​1-9>​]]} ​                        ​|->​ Trigger-based notifications and commands\\ -> Auto registration notifications\\ -> Internal notifications\\ -> Global scripts (including confirmation text)\\ -> Icon labels in maps<​sup>​[[supported_by_location#​footnotes|1]]</​sup>​\\ -> Item key parameters<​sup>​[[supported_by_location#​footnotes|2]]</​sup>​\\ -> Host interface IP/DNS\\ -> Database monitoring additional parameters<​sup>​[[supported_by_location#​footnotes|5]]</​sup>​\\ -> SSH and Telnet scripts<​sup>​[[supported_by_location#​footnotes|5]]</​sup>​\\ -> Web monitoring<​sup>​[[supported_by_location#​footnotes|6]]</​sup>​\\ -> Low-level discovery rule filter regular expressions<​sup>​[[supported_by_location#​footnotes|8]]</​sup>​\\ -> URL field of dynamic URL screen element<​sup>​[[supported_by_location#​footnotes|8]]</​sup>​\\ -> Trigger names and descriptions\\ -> Trigger URLs<​sup>​[[supported_by_location#​footnotes|10]]</​sup> ​  ​|//​Host IP address//<​sup>​[[supported_by_location#​footnotes|3]]</​sup>​.\\ Supported since 2.0.0. ''​{IPADDRESS<​1-9>​}''​ is deprecated. ​ |
 +|{HOST.METADATA} ​                       |-> Auto registration notifications ​ |//Host metadata.//​\\ Used only for active agent auto-registration. Supported since 2.2.0. ​ |
 +|{HOST.NAME[[supported_by_location#​indexed_macros|<​1-9>​]]} ​                      ​|->​ Trigger-based notifications and commands\\ -> Auto registration notifications\\ -> Internal notifications\\ -> Global scripts (including confirmation text)\\ -> Icon labels in maps<​sup>​[[supported_by_location#​footnotes|1]]</​sup>​\\ -> Item key parameters\\ -> Host interface IP/DNS\\ -> Database monitoring additional parameters<​sup>​[[supported_by_location#​footnotes|5]]</​sup>​\\ -> SSH and Telnet scripts<​sup>​[[supported_by_location#​footnotes|5]]</​sup>​\\ -> Web monitoring<​sup>​[[supported_by_location#​footnotes|6]]</​sup>​\\ -> Low-level discovery rule filter regular expressions<​sup>​[[supported_by_location#​footnotes|8]]</​sup>​\\ -> URL field of dynamic URL screen element<​sup>​[[supported_by_location#​footnotes|8]]</​sup>​\\ -> Trigger names and descriptions\\ -> Trigger URLs<​sup>​[[supported_by_location#​footnotes|10]]</​sup> ​  ​|//​Visible host name.//\\ Supported since 2.0.0. ​ |
 +|{HOST.PORT[[supported_by_location#​indexed_macros|<​1-9>​]]} ​                      ​|->​ Trigger-based notifications and commands\\ -> Auto registration notifications\\ -> Internal notifications\\ -> Trigger names and descriptions\\ -> Trigger URLs<​sup>​[[supported_by_location#​footnotes|10]]</​sup> ​ |//Host (agent) port//<​sup>​[[supported_by_location#​footnotes|3]]</​sup>​.\\ Supported in auto-registration since 2.0.0.\\ Supported in trigger names, trigger descriptions,​ internal and trigger-based notifications since 2.2.2. ​ |
 +|{HOSTGROUP.ID} ​                        ​|->​ Map URLs  |//Host group ID.//  |
 +|{INVENTORY.ALIAS[[supported_by_location#​indexed_macros|<​1-9>​]]} ​                ​|->​ Trigger-based notifications\\ -> Internal notifications ​ |//Alias field in host inventory.// ​ |
 +|{INVENTORY.ASSET.TAG[[supported_by_location#​indexed_macros|<​1-9>​]]} ​            ​|->​ Trigger-based notifications\\ -> Internal notifications ​ |//Asset tag field in host inventory.// ​ |
 +|{INVENTORY.CHASSIS[[supported_by_location#​indexed_macros|<​1-9>​]]} ​              ​|->​ Trigger-based notifications\\ -> Internal notifications ​ |//Chassis field in host inventory.// ​ |
 +|{INVENTORY.CONTACT[[supported_by_location#​indexed_macros|<​1-9>​]]} ​              ​|->​ Trigger-based notifications\\ -> Internal notifications ​ |//Contact field in host inventory.//​\\ ''​{PROFILE.CONTACT<​1-9>​}''​ is deprecated. ​ |
 +|{INVENTORY.CONTRACT.NUMBER[[supported_by_location#​indexed_macros|<​1-9>​]]} ​      ​|->​ Trigger-based notifications\\ -> Internal notifications ​ |//Contract number field in host inventory.// ​ |
 +|{INVENTORY.DEPLOYMENT.STATUS[[supported_by_location#​indexed_macros|<​1-9>​]]} ​    ​|->​ Trigger-based notifications\\ -> Internal notifications ​ |//​Deployment status field in host inventory.// ​ |
 +|{INVENTORY.HARDWARE[[supported_by_location#​indexed_macros|<​1-9>​]]} ​             |-> Trigger-based notifications\\ -> Internal notifications ​ |//Hardware field in host inventory.//​\\ ''​{PROFILE.HARDWARE<​1-9>​}''​ is deprecated. ​ |
 +|{INVENTORY.HARDWARE.FULL[[supported_by_location#​indexed_macros|<​1-9>​]]} ​        ​|->​ Trigger-based notifications\\ -> Internal notifications ​ |//Hardware (Full details) field in host inventory.// ​ |
 +|{INVENTORY.HOST.NETMASK[[supported_by_location#​indexed_macros|<​1-9>​]]} ​         |-> Trigger-based notifications\\ -> Internal notifications ​ |//Host subnet mask field in host inventory.// ​ |
 +|{INVENTORY.HOST.NETWORKS[[supported_by_location#​indexed_macros|<​1-9>​]]} ​        ​|->​ Trigger-based notifications\\ -> Internal notifications ​ |//Host networks field in host inventory.// ​ |
 +|{INVENTORY.HOST.ROUTER[[supported_by_location#​indexed_macros|<​1-9>​]]} ​          ​|->​ Trigger-based notifications\\ -> Internal notifications ​ |//Host router field in host inventory.// ​ |
 +|{INVENTORY.HW.ARCH[[supported_by_location#​indexed_macros|<​1-9>​]]} ​              ​|->​ Trigger-based notifications\\ -> Internal notifications ​ |//Hardware architecture field in host inventory.// ​ |
 +|{INVENTORY.HW.DATE.DECOMM[[supported_by_location#​indexed_macros|<​1-9>​]]} ​       |-> Trigger-based notifications\\ -> Internal notifications ​ |//Date hardware decommissioned field in host inventory.// ​ |
 +|{INVENTORY.HW.DATE.EXPIRY[[supported_by_location#​indexed_macros|<​1-9>​]]} ​       |-> Trigger-based notifications\\ -> Internal notifications |//Date hardware maintenance expires field in host inventory.// ​ |
 +|{INVENTORY.HW.DATE.INSTALL[[supported_by_location#​indexed_macros|<​1-9>​]]} ​      ​|->​ Trigger-based notifications\\ -> Internal notifications ​ |//Date hardware installed field in host inventory.// ​ |
 +|{INVENTORY.HW.DATE.PURCHASE[[supported_by_location#​indexed_macros|<​1-9>​]]} ​     |-> Trigger-based notifications\\ -> Internal notifications ​ |//Date hardware purchased field in host inventory.// ​ |
 +|{INVENTORY.INSTALLER.NAME[[supported_by_location#​indexed_macros|<​1-9>​]]} ​       |-> Trigger-based notifications\\ -> Internal notifications ​ |//​Installer name field in host inventory.// ​ |
 +|{INVENTORY.LOCATION[[supported_by_location#​indexed_macros|<​1-9>​]]} ​             |-> Trigger-based notifications\\ -> Internal notifications ​ |//Location field in host inventory.//​\\ ''​{PROFILE.LOCATION<​1-9>​}''​ is deprecated. ​ |
 +|{INVENTORY.LOCATION.LAT[[supported_by_location#​indexed_macros|<​1-9>​]]} ​         |-> Trigger-based notifications\\ -> Internal notifications ​ |//Location latitude field in host inventory.// ​ |
 +|{INVENTORY.LOCATION.LON[[supported_by_location#​indexed_macros|<​1-9>​]]} ​         |-> Trigger-based notifications\\ -> Internal notifications ​ |//Location longitude field in host inventory.// ​ |
 +|{INVENTORY.MACADDRESS.A[[supported_by_location#​indexed_macros|<​1-9>​]]} ​         |-> Trigger-based notifications\\ -> Internal notifications ​ |//MAC address A field in host inventory.//​\\ ''​{PROFILE.MACADDRESS<​1-9>​}''​ is deprecated. ​ |
 +|{INVENTORY.MACADDRESS.B[[supported_by_location#​indexed_macros|<​1-9>​]]} ​         |-> Trigger-based notifications\\ -> Internal notifications ​ |//MAC address B field in host inventory.// ​ |
 +|{INVENTORY.MODEL[[supported_by_location#​indexed_macros|<​1-9>​]]} ​                ​|->​ Trigger-based notifications\\ -> Internal notifications ​ |//Model field in host inventory.// ​ |
 +|{INVENTORY.NAME[[supported_by_location#​indexed_macros|<​1-9>​]]} ​                 |-> Trigger-based notifications\\ -> Internal notifications ​ |//Name field in host inventory.//​ ''​{PROFILE.NAME<​1-9>​}''​ is deprecated. ​ |
 +|{INVENTORY.NOTES[[supported_by_location#​indexed_macros|<​1-9>​]]} ​                ​|->​ Trigger-based notifications\\ -> Internal notifications ​ |//Notes field in host inventory.//​ ''​{PROFILE.NOTES<​1-9>​}''​ is deprecated. ​ |
 +|{INVENTORY.OOB.IP[[supported_by_location#​indexed_macros|<​1-9>​]]} ​               |-> Trigger-based notifications\\ -> Internal notifications ​ |//OOB IP address field in host inventory.// ​ |
 +|{INVENTORY.OOB.NETMASK[[supported_by_location#​indexed_macros|<​1-9>​]]} ​          ​|->​ Trigger-based notifications\\ -> Internal notifications ​ |//OOB subnet mask field in host inventory.// ​ |
 +|{INVENTORY.OOB.ROUTER[[supported_by_location#​indexed_macros|<​1-9>​]]} ​           |-> Trigger-based notifications\\ -> Internal notifications ​ |//OOB router field in host inventory.// ​ |
 +|{INVENTORY.OS[[supported_by_location#​indexed_macros|<​1-9>​]]} ​                   |-> Trigger-based notifications\\ -> Internal notifications ​ |//OS field in host inventory.//​\\ ''​{PROFILE.OS<​1-9>​}''​ is deprecated. ​ |
 +|{INVENTORY.OS.FULL[[supported_by_location#​indexed_macros|<​1-9>​]]} ​              ​|->​ Trigger-based notifications\\ -> Internal notifications ​ |//OS (Full details) field in host inventory.//​|
 +|{INVENTORY.OS.SHORT[[supported_by_location#​indexed_macros|<​1-9>​]]} ​             |-> Trigger-based notifications\\ -> Internal notifications ​ |//OS (Short) field in host inventory.//​|
 +|{INVENTORY.POC.PRIMARY.CELL[[supported_by_location#​indexed_macros|<​1-9>​]]} ​     |-> Trigger-based notifications\\ -> Internal notifications ​ |//Primary POC cell field in host inventory.//​|
 +|{INVENTORY.POC.PRIMARY.EMAIL[[supported_by_location#​indexed_macros|<​1-9>​]]} ​    ​|->​ Trigger-based notifications\\ -> Internal notifications ​ |//Primary POC email field in host inventory.//​|
 +|{INVENTORY.POC.PRIMARY.NAME[[supported_by_location#​indexed_macros|<​1-9>​]]} ​     |-> Trigger-based notifications\\ -> Internal notifications ​ |//Primary POC name field in host inventory.//​|
 +|{INVENTORY.POC.PRIMARY.NOTES[[supported_by_location#​indexed_macros|<​1-9>​]]} ​    ​|->​ Trigger-based notifications\\ -> Internal notifications ​ |//Primary POC notes field in host inventory.//​|
 +|{INVENTORY.POC.PRIMARY.PHONE.A[[supported_by_location#​indexed_macros|<​1-9>​]]} ​  ​|->​ Trigger-based notifications\\ -> Internal notifications ​ |//Primary POC phone A field in host inventory.//​|
 +|{INVENTORY.POC.PRIMARY.PHONE.B[[supported_by_location#​indexed_macros|<​1-9>​]]} ​  ​|->​ Trigger-based notifications\\ -> Internal notifications ​ |//Primary POC phone B field in host inventory.//​|
 +|{INVENTORY.POC.PRIMARY.SCREEN[[supported_by_location#​indexed_macros|<​1-9>​]]} ​   |-> Trigger-based notifications\\ -> Internal notifications ​ |//Primary POC screen name field in host inventory.//​|
 +|{INVENTORY.POC.SECONDARY.CELL[[supported_by_location#​indexed_macros|<​1-9>​]]} ​   |-> Trigger-based notifications\\ -> Internal notifications ​ |//​Secondary POC cell field in host inventory.//​|
 +|{INVENTORY.POC.SECONDARY.EMAIL[[supported_by_location#​indexed_macros|<​1-9>​]]} ​  ​|->​ Trigger-based notifications\\ -> Internal notifications ​ |//​Secondary POC email field in host inventory.//​|
 +|{INVENTORY.POC.SECONDARY.NAME[[supported_by_location#​indexed_macros|<​1-9>​]]} ​   |-> Trigger-based notifications\\ -> Internal notifications ​ |//​Secondary POC name field in host inventory.//​|
 +|{INVENTORY.POC.SECONDARY.NOTES[[supported_by_location#​indexed_macros|<​1-9>​]]} ​  ​|->​ Trigger-based notifications\\ -> Internal notifications ​ |//​Secondary POC notes field in host inventory.//​|
 +|{INVENTORY.POC.SECONDARY.PHONE.A[[supported_by_location#​indexed_macros|<​1-9>​]]} |-> Trigger-based notifications\\ -> Internal notifications ​ |//​Secondary POC phone A field in host inventory.//​|
 +|{INVENTORY.POC.SECONDARY.PHONE.B[[supported_by_location#​indexed_macros|<​1-9>​]]} |-> Trigger-based notifications\\ -> Internal notifications ​ |//​Secondary POC phone B field in host inventory.//​|
 +|{INVENTORY.POC.SECONDARY.SCREEN[[supported_by_location#​indexed_macros|<​1-9>​]]} ​ |-> Trigger-based notifications\\ -> Internal notifications ​ |//​Secondary POC screen name field in host inventory.//​|
 +|{INVENTORY.SERIALNO.A[[supported_by_location#​indexed_macros|<​1-9>​]]} ​           |-> Trigger-based notifications\\ -> Internal notifications ​ |//Serial number A field in host inventory.//​\\ ''​{PROFILE.SERIALNO<​1-9>​}''​ is deprecated.|
 +|{INVENTORY.SERIALNO.B[[supported_by_location#​indexed_macros|<​1-9>​]]} ​           |-> Trigger-based notifications\\ -> Internal notifications ​ |//Serial number B field in host inventory.//​|
 +|{INVENTORY.SITE.ADDRESS.A[[supported_by_location#​indexed_macros|<​1-9>​]]} ​       |-> Trigger-based notifications\\ -> Internal notifications ​ |//Site address A field in host inventory.//​|
 +|{INVENTORY.SITE.ADDRESS.B[[supported_by_location#​indexed_macros|<​1-9>​]]} ​       |-> Trigger-based notifications\\ -> Internal notifications ​ |//Site address B field in host inventory.//​|
 +|{INVENTORY.SITE.ADDRESS.C[[supported_by_location#​indexed_macros|<​1-9>​]]} ​       |-> Trigger-based notifications\\ -> Internal notifications ​ |//Site address C field in host inventory.//​|
 +|{INVENTORY.SITE.CITY[[supported_by_location#​indexed_macros|<​1-9>​]]} ​            ​|->​ Trigger-based notifications\\ -> Internal notifications ​ |//Site city field in host inventory.//​|
 +|{INVENTORY.SITE.COUNTRY[[supported_by_location#​indexed_macros|<​1-9>​]]} ​         |-> Trigger-based notifications\\ -> Internal notifications ​ |//Site country field in host inventory.//​|
 +|{INVENTORY.SITE.NOTES[[supported_by_location#​indexed_macros|<​1-9>​]]} ​           |-> Trigger-based notifications\\ -> Internal notifications ​ |//Site notes field in host inventory.//​|
 +|{INVENTORY.SITE.RACK[[supported_by_location#​indexed_macros|<​1-9>​]]} ​            ​|->​ Trigger-based notifications\\ -> Internal notifications ​ |//Site rack location field in host inventory.//​|
 +|{INVENTORY.SITE.STATE[[supported_by_location#​indexed_macros|<​1-9>​]]} ​           |-> Trigger-based notifications\\ -> Internal notifications ​ |//Site state/​province field in host inventory.//​|
 +|{INVENTORY.SITE.ZIP[[supported_by_location#​indexed_macros|<​1-9>​]]} ​             |-> Trigger-based notifications\\ -> Internal notifications ​ |//Site ZIP/postal field in host inventory.//​|
 +|{INVENTORY.SOFTWARE[[supported_by_location#​indexed_macros|<​1-9>​]]} ​             |-> Trigger-based notifications\\ -> Internal notifications ​ |//Software field in host inventory.//​ ''​{PROFILE.SOFTWARE<​1-9>​}''​ is deprecated.|
 +|{INVENTORY.SOFTWARE.APP.A[[supported_by_location#​indexed_macros|<​1-9>​]]} ​       |-> Trigger-based notifications\\ -> Internal notifications ​ |//Software application A field in host inventory.//​|
 +|{INVENTORY.SOFTWARE.APP.B[[supported_by_location#​indexed_macros|<​1-9>​]]} ​       |-> Trigger-based notifications\\ -> Internal notifications ​ |//Software application B field in host inventory.//​|
 +|{INVENTORY.SOFTWARE.APP.C[[supported_by_location#​indexed_macros|<​1-9>​]]} ​       |-> Trigger-based notifications\\ -> Internal notifications ​ |//Software application C field in host inventory.//​|
 +|{INVENTORY.SOFTWARE.APP.D[[supported_by_location#​indexed_macros|<​1-9>​]]} ​       |-> Trigger-based notifications\\ -> Internal notifications ​ |//Software application D field in host inventory.//​|
 +|{INVENTORY.SOFTWARE.APP.E[[supported_by_location#​indexed_macros|<​1-9>​]]} ​       |-> Trigger-based notifications\\ -> Internal notifications ​ |//Software application E field in host inventory.//​|
 +|{INVENTORY.SOFTWARE.FULL[[supported_by_location#​indexed_macros|<​1-9>​]]} ​        ​|->​ Trigger-based notifications\\ -> Internal notifications ​ |//Software (Full details) field in host inventory.//​|
 +|{INVENTORY.TAG[[supported_by_location#​indexed_macros|<​1-9>​]]} ​                  ​|->​ Trigger-based notifications\\ -> Internal notifications ​ |//Tag field in host inventory.//​ ''​{PROFILE.TAG<​1-9>​}''​ is deprecated.|
 +|{INVENTORY.TYPE[[supported_by_location#​indexed_macros|<​1-9>​]]} ​                 |-> Trigger-based notifications\\ -> Internal notifications ​ |//Type field in host inventory.//​ ''​{PROFILE.DEVICETYPE<​1-9>​}''​ is deprecated.|
 +|{INVENTORY.TYPE.FULL[[supported_by_location#​indexed_macros|<​1-9>​]]} ​            ​|->​ Trigger-based notifications\\ -> Internal notifications ​ |//Type (Full details) field in host inventory.//​|
 +|{INVENTORY.URL.A[[supported_by_location#​indexed_macros|<​1-9>​]]} ​                ​|->​ Trigger-based notifications\\ -> Internal notifications ​ |//URL A field in host inventory.//​|
 +|{INVENTORY.URL.B[[supported_by_location#​indexed_macros|<​1-9>​]]} ​                ​|->​ Trigger-based notifications\\ -> Internal notifications ​ |//URL B field in host inventory.//​|
 +|{INVENTORY.URL.C[[supported_by_location#​indexed_macros|<​1-9>​]]} ​                ​|->​ Trigger-based notifications\\ -> Internal notifications ​ |//URL C field in host inventory.//​|
 +|{INVENTORY.VENDOR[[supported_by_location#​indexed_macros|<​1-9>​]]} ​               |-> Trigger-based notifications\\ -> Internal notifications ​ |//Vendor field in host inventory.//​|
 +|{ITEM.DESCRIPTION[[supported_by_location#​indexed_macros|<​1-9>​]]} ​               |-> Trigger-based notifications\\ -> Internal notifications ​ |//​Description of the Nth item in the trigger expression that caused a notification.//​ Supported since 2.0.0.|
 +|{ITEM.ID[[supported_by_location#​indexed_macros|<​1-9>​]]} ​                        ​|->​ Trigger-based notifications\\ -> Internal notifications ​ |//Numeric ID of the Nth item in the trigger expression that caused a notification.//​ Supported since 1.8.12.|
 +|{ITEM.KEY[[supported_by_location#​indexed_macros|<​1-9>​]]} ​                       |-> Trigger-based notifications\\ -> Internal notifications ​ |//Key of the Nth item in the trigger expression that caused a notification.//​ Supported since 2.0.0.\\ ''​{TRIGGER.KEY}''​ is deprecated.|
 +|{ITEM.KEY.ORIG[[supported_by_location#​indexed_macros|<​1-9>​]]} ​                  ​|->​ Trigger-based notifications\\ -> Internal notifications ​ |//Original key (with macros not expanded) of the Nth item in the trigger expression that caused a notification.//​ Supported since 2.0.6.|
 +|{ITEM.LASTVALUE[[supported_by_location#​indexed_macros|<​1-9>​]]} ​                 |-> Trigger-based notifications\\ -> Trigger names and descriptions\\ -> Event tags and values ​ |//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 //​ZBX_HISTORY_PERIOD//​ time ago (defined in [[:​manual/​web_interface/​definitions|defines.inc.php]]).\\ Supported since 1.4.3. It is alias to ''​%%{{%%HOST.HOST}:​{ITEM.KEY}.last()}''​\\ \\ [[:​manual/​config/​macros/​macro_functions|Customizing]] the macro value is supported for this macro; starting with Zabbix 3.2.0. ​ |
 +|{ITEM.LOG.AGE[[supported_by_location#​indexed_macros|<​1-9>​]]} ​                   |-> Trigger-based notifications ​ |//Age of the log item event.// ​ |
 +|{ITEM.LOG.DATE[[supported_by_location#​indexed_macros|<​1-9>​]]} ​                  ​|->​ Trigger-based notifications ​ |//Date of the log item event.// ​  |
 +|{ITEM.LOG.EVENTID[[supported_by_location#​indexed_macros|<​1-9>​]]} ​               |-> Trigger-based notifications ​ |//ID of the event in the event log.//\\ For Windows event log monitoring only.  |
 +|{ITEM.LOG.NSEVERITY[[supported_by_location#​indexed_macros|<​1-9>​]]} ​             |-> Trigger-based notifications ​ |//Numeric severity of the event in the event log.//\\ For Windows event log monitoring only.  |
 +|{ITEM.LOG.SEVERITY[[supported_by_location#​indexed_macros|<​1-9>​]]} ​              ​|->​ Trigger-based notifications ​ |//Verbal severity of the event in the event log.//\\ For Windows event log monitoring only.  |
 +|{ITEM.LOG.SOURCE[[supported_by_location#​indexed_macros|<​1-9>​]]} ​                ​|->​ Trigger-based notifications ​ |//Source of the event in the event log.//\\ For Windows event log monitoring only.  |
 +|{ITEM.LOG.TIME[[supported_by_location#​indexed_macros|<​1-9>​]]} ​                  ​|->​ Trigger-based notifications ​ |//Time of the log item event.// ​  |
 +|{ITEM.NAME[[supported_by_location#​indexed_macros|<​1-9>​]]} ​                      ​|->​ Trigger-based notifications\\ -> Internal notifications ​ |//Name of the Nth item in the trigger expression that caused a notification.// ​ |
 +|{ITEM.NAME.ORIG[[supported_by_location#​indexed_macros|<​1-9>​]]} ​                 |-> Trigger-based notifications\\ -> Internal notifications ​ |//Original name (with macros not expanded) of the Nth item in the trigger expression that caused a notification.//​ Supported since 2.0.6. ​ |
 +|{ITEM.STATE[[supported_by_location#​indexed_macros|<​1-9>​]]} ​                     |-> Item-based internal notifications ​ |//The latest state of the Nth item in the trigger expression that caused a notification.//​ Possible values: **Not supported** and **Normal**.\\ Supported since 2.2.0. ​ |
 +|{ITEM.VALUE[[supported_by_location#​indexed_macros|<​1-9>​]]} ​                     |-> Trigger-based notifications\\ -> Trigger names and descriptions\\ -> Event tags and values ​ |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 //​ZBX_HISTORY_PERIOD//​ time ago (defined in [[:​manual/​web_interface/​definitions|defines.inc.php]]). \\ Supported since 1.4.3.\\ \\ [[:​manual/​config/​macros/​macro_functions|Customizing]] the macro value is supported for this macro, starting with Zabbix 3.2.0. ​ |
 +|{LLDRULE.DESCRIPTION} ​                 |-> LLD-rule based internal notifications ​ |//​Description of the low-level discovery rule which caused a notification.//​\\ Supported since 2.2.0. ​ |
 +|{LLDRULE.ID} ​                          ​|->​ LLD-rule based internal notifications ​ |//Numeric ID of the low-level discovery rule which caused a notification.//​\\ Supported since 2.2.0. ​ |
 +|{LLDRULE.KEY} ​                         |-> LLD-rule based internal notifications ​ |//Key of the low-level discovery rule which caused a notification.//​\\ Supported since 2.2.0. ​ |
 +|{LLDRULE.KEY.ORIG} ​                    ​|->​ LLD-rule based internal notifications ​ |//Original key (with macros not expanded) of the low-level discovery rule which caused a notification.//​\\ Supported since 2.2.0. ​ |
 +|{LLDRULE.NAME} ​                        ​|->​ LLD-rule based internal notifications ​ |//Name of the low-level discovery rule which caused a notification.//​\\ Supported since 2.2.0. ​ |
 +|{LLDRULE.NAME.ORIG} ​                   |-> LLD-rule based internal notifications ​ |//Original name (with macros not expanded) of the low-level discovery rule which caused a notification.//​\\ Supported since 2.2.0. ​ |
 +|{LLDRULE.STATE} ​                       |-> LLD-rule based internal notifications ​ |//The latest state of the low-level discovery rule.// Possible values: **Not supported** and **Normal**.\\ Supported since 2.2.0. ​ |
 +|{MAP.ID} ​                              ​|->​ Map URLs  |//Network map ID.//|
 +|{PROXY.DESCRIPTION[[supported_by_location#​indexed_macros|<​1-9>​]]} ​              ​|->​ Trigger-based notifications and commands\\ -> Discovery notifications\\ ​ -> Auto-registration notifications\\ ​ -> Internal notifications ​ |//​Description of the proxy//. Resolves to either:\\ 1) proxy of the Nth item in the trigger expression (in trigger-based notifications). You may use [[:​manual/​appendix/​macros/​supported_by_location#​indexed_macros|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 auto-registration notifications). Use {PROXY.DESCRIPTION} here, without indexing.\\ Supported since 2.4.0.|
 +|{PROXY.NAME[[supported_by_location#​indexed_macros|<​1-9>​]]} ​                     |-> Trigger-based notifications and commands\\ -> Discovery notifications\\ ​ -> Auto-registration notifications\\ ​ -> Internal notifications ​ |//Name of the proxy//. Resolves to either:\\ 1) proxy of the Nth item in the trigger expression (in trigger-based notifications). You may use [[:​manual/​appendix/​macros/​supported_by_location#​indexed_macros|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 auto-registration notifications). Use {PROXY.NAME} here, without indexing.\\ Supported since 1.8.4.|
 +|{TIME} ​                                ​|->​ Trigger-based notifications and commands\\ -> Discovery notifications\\ ​ -> Auto-registration notifications\\ ​ -> Internal notifications ​ |//Current time in hh:​mm:​ss.//​|
 +|{TRIGGER.DESCRIPTION} ​                 |-> Trigger-based notifications\\ -> Trigger-based internal notifications ​ |//Trigger description.//​ Supported since 2.0.4.\\ Starting with 2.2.0, all macros supported in a trigger description will be expanded if ''​{TRIGGER.DESCRIPTION}''​ is used in notification text.\\ ''​{TRIGGER.COMMENT}''​ is deprecated.|
 +|{TRIGGER.EVENTS.ACK} ​                  ​|->​ Trigger-based notifications\\ -> Icon labels in maps<​sup>​[[supported_by_location#​footnotes|1]]</​sup> ​ |//Number of acknowledged events for a map element in maps, or for the trigger which generated current event in notifications.//​ Supported since 1.8.3.|
 +|{TRIGGER.EVENTS.PROBLEM.ACK} ​          ​|->​ Trigger-based notifications\\ -> Icon labels in maps<​sup>​[[supported_by_location#​footnotes|1]]</​sup> ​ |//Number of acknowledged PROBLEM events for all triggers disregarding their state.// Supported since 1.8.3.|
 +|{TRIGGER.EVENTS.PROBLEM.UNACK} ​        ​|->​ Trigger-based notifications\\ -> Icon labels in maps<​sup>​[[supported_by_location#​footnotes|1]]</​sup> ​ |//Number of unacknowledged PROBLEM events for all triggers disregarding their state.// Supported since 1.8.3.|
 +|{TRIGGER.EVENTS.UNACK} ​                ​|->​ Trigger-based notifications\\ -> Icon labels in maps<​sup>​[[supported_by_location#​footnotes|1]]</​sup> ​ |//Number of unacknowledged events for a map element in maps, or for the trigger which generated current event in notifications.//​ Supported in map element labels since 1.8.3.|
 +|{TRIGGER.HOSTGROUP.NAME} ​              ​|->​ Trigger-based notifications\\ -> Trigger-based internal notifications ​ |//A sorted (by SQL query), comma-space separated list of host groups in which the trigger is defined.// Supported since 2.0.6.|
 +|{TRIGGER.PROBLEM.EVENTS.PROBLEM.ACK} ​  ​|->​ Icon labels in maps<​sup>​[[supported_by_location#​footnotes|1]]</​sup> ​ |//Number of acknowledged PROBLEM events for triggers in PROBLEM state.// Supported since 1.8.3.|
 +|{TRIGGER.PROBLEM.EVENTS.PROBLEM.UNACK} |-> Icon labels in maps<​sup>​[[supported_by_location#​footnotes|1]]</​sup> ​ |//Number of unacknowledged PROBLEM events for triggers in PROBLEM state.// Supported since 1.8.3.|
 +|{TRIGGER.EXPRESSION} ​                  ​|->​ Trigger-based notifications\\ -> Trigger-based internal notifications ​ |//Trigger expression.//​ Supported since 1.8.12.|
 +|{TRIGGER.EXPRESSION.RECOVERY} ​         |-> Trigger-based notifications\\ -> Trigger-based internal notifications ​ |//Trigger recovery expression//​ if //OK event generation//​ in [[:​manual/​config/​triggers/​trigger|trigger configuration]] is set to '​Recovery expression';​ otherwise an empty string is returned.\\ Supported since 3.2.0.|
 +|{TRIGGER.ID} ​                          ​|->​ Trigger-based notifications\\ -> Trigger-based internal notifications\\ -> Map URLs\\ -> Trigger URLs  |//Numeric trigger ID which triggered this action.//\\ Supported in trigger URLs since Zabbix 1.8.8. ​ |
 +|{TRIGGER.NAME} ​                        ​|->​ Trigger-based notifications\\ -> Trigger-based internal notifications ​ |//Name of the trigger.//|
 +|{TRIGGER.NAME.ORIG} ​                   |-> Trigger-based notifications\\ -> Trigger-based internal notifications ​ |//Original name (with macros not expanded) of the trigger.// Supported since 2.0.6.|
 +|{TRIGGER.NSEVERITY} ​                   |-> Trigger-based notifications\\ -> Trigger-based internal notifications ​ |//​Numerical trigger severity.// Possible values: 0 - Not classified, 1 - Information,​ 2 - Warning, 3 - Average, 4 - High, 5  - Disaster.\\ Supported starting from Zabbix 1.6.2.|
 +|{TRIGGER.SEVERITY} ​                    ​|->​ Trigger-based notifications\\ -> Trigger-based internal notifications ​ |//Trigger severity name.// Can be defined in //​Administration -> General -> Trigger severities//​.|
 +|{TRIGGER.STATE} ​                       |-> Trigger-based internal notifications ​ |//The latest state of the trigger.// Possible values: **Unknown** and **Normal**.\\ Supported since 2.2.0. ​ |
 +|{TRIGGER.STATUS} ​                      ​|->​ Trigger-based notifications ​ |//Current trigger value.// Can be either PROBLEM or OK.\\ ''​{STATUS}''​ is deprecated.|
 +|{TRIGGER.TEMPLATE.NAME} ​               |-> Trigger-based notifications\\ -> Trigger-based internal notifications ​ |//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.// Supported since 2.0.6.|
 +|{TRIGGER.URL} ​                         |-> Trigger-based notifications\\ -> Trigger-based internal notifications ​ |//Trigger URL.//|
 +|{TRIGGER.VALUE} ​                       |-> Trigger-based notifications\\ -> Trigger expressions ​ |//Current trigger numeric value//: 0 - trigger is in OK state, 1 - trigger is in PROBLEM state.|
 +|{TRIGGERS.UNACK} ​                      ​|->​ Icon labels in maps<​sup>​[[supported_by_location#​footnotes|1]]</​sup> ​ |//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.|
 +|{TRIGGERS.PROBLEM.UNACK} ​              ​|->​ Icon labels in maps<​sup>​[[supported_by_location#​footnotes|1]]</​sup> ​ |//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.\\ Supported since 1.8.3.|
 +|{TRIGGERS.ACK} ​                        ​|->​ Icon labels in maps<​sup>​[[supported_by_location#​footnotes|1]]</​sup> ​ |//Number of acknowledged triggers for a map element, disregarding trigger state.//\\ A trigger is considered to be acknowledged if all of it's PROBLEM events are acknowledged.\\ Supported since 1.8.3.|
 +|{TRIGGERS.PROBLEM.ACK} ​                ​|->​ Icon labels in maps<​sup>​[[supported_by_location#​footnotes|1]]</​sup> ​ |//Number of acknowledged PROBLEM triggers for a map element.//​\\ A trigger is considered to be acknowledged if all of it's PROBLEM events are acknowledged.\\ Supported since 1.8.3.|
 +|{host:​key.func(param)} ​                ​|->​ Trigger-based notifications\\ -> Icon labels and link labels in maps<​sup>​[[supported_by_location#​footnotes|1]]</​sup>​ <​sup>​[[supported_by_location#​footnotes|4]]</​sup>​\\ -> Graph names<​sup>​[[supported_by_location#​footnotes|7]]</​sup>​\\ -> Trigger expressions<​sup>​[[supported_by_location#​footnotes|9]]</​sup> ​ |//Simple macros, as used in building trigger [[manual:​config:​triggers:​expression|expressions]]//​.|
 +|{$MACRO} ​                              ​|->​ See: [[:​manual/​appendix/​macros/​supported_by_location#​additional_support_for_user_macros|Additional support for user macros]] ​ |//​[[manual:​config:​macros:​usermacros|User-definable]] macros.//\\ Supported in item and trigger names since 1.8.4.\\ Supported in global script commands and confirmation texts since Zabbix 2.2.0.|
 +|{#​MACRO} ​                              ​|->​ See: [[:​manual/​config/​macros/​lld_macros|Low-level discovery macros]] ​ |//​Low-level discovery macros.//\\ Supported since 2.0.0. ​ |
 +
 +== Footnotes ==
 +
 +<​sup>​**1**</​sup>​ Macros for map labels are supported since 1.8.
 +
 +<​sup>​**2**</​sup>​ The ''​{HOST.*}''​ macros supported in item key parameters 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, since Zabbix 3.2.2. In Zabbix 3.2.0, 3.2.1 they will not resolve when used in items without interfaces e.g. "​Zabbix agent (active)",​ "​Calculated"​ etc.
 +
 +<​sup>​**3**</​sup>​ In remote commands, global scripts, interface IP/DNS fields and web scenarios the macro will resolve to the main agent interface, however, if it is not present, the main SNMP interface will be used. If SNMP is also not present, the main JMX interface will be used. If JMX is not present either, the main IPMI interface will be used.
 +
 +<​sup>​**4**</​sup>​ Only the **avg**, **last**, **max** and **min** functions, with seconds as parameter are supported in this macro in map labels.
 +
 +<​sup>​**5**</​sup>​ Supported since 2.0.3.
 +
 +<​sup>​**6**</​sup>​ Supported since Zabbix 2.2.0. ''​{HOST.*}''​ macros are supported in web scenario //Name//, //​Variables//,​ //​Headers//,​ //SSL certificate file// and //SSL key file// fields and in scenario step //Name//, //URL//, //Post//, //Headers// and //Required string// fields. ​
 +
 +<​sup>​**7**</​sup>​ Supported since Zabbix 2.2.0. Only the **avg**, **last**, **max** and **min** functions, with seconds as parameter are supported within this macro in graph names. The {HOST.HOST<​1-9>​} macro can be used as host within the macro. For example:
 +   * {Cisco switch:​ifAlias[{#​SNMPINDEX}].last()}
 +   * %%{{%%HOST.HOST}:​ifAlias[{#​SNMPINDEX}].last()}
 +
 +<​sup>​**8**</​sup>​ Supported since 2.4.0.
 +
 +<​sup>​**9**</​sup>​ While supported to build trigger expressions,​ simple macros may not be used inside each other.
 +
 +<​sup>​**10**</​sup>​ Supported since 3.0.0.
 +
 +=== Indexed macros ===
 +
 +The indexed macro syntax of {MACRO**<​1-9>​**} is limited to the context of **trigger expressions**. It can be used to reference hosts in the order in which they appear in the expression. Macros like {HOST.IP1}, {HOST.IP2}, {HOST.IP3} will resolve to the IP of the first, second and third host in the trigger expression (providing the trigger expression contains those hosts).
 +
 +Additionally the {HOST.HOST<​1-9>​} macro is also supported within the ''​{host:​key.func(param)}''​ macro in **graph names**. For example, ''​%%{{%%HOST.HOST2}:​key.func()}''​ in the graph name will refer to the host of the second item in the graph.
 +
 +<note warning>​Use macros **without** index (i. e.{HOST.HOST},​ {HOST.IP}, etc) in all other contexts.</​note>​
 +
 +=== Additional support for user macros ===
 +
 +In addition to the locations listed, [[manual:​config:​macros:​usermacros|user-definable]] macros since Zabbix 2.0 are supported in numerous other locations:
 +
 +  * Hosts
 +    * Interface IP/DNS
 +    * Interface port
 +
 +  * Passive proxy
 +    * Interface port
 +
 +  * Items and item prototypes
 +    * Name (since Zabbix 1.8.4)
 +    * Key parameters ​
 +    * SNMPv3 context name
 +    * SNMPv3 security name
 +    * SNMPv3 auth pass
 +    * SNMPv3 priv pass
 +    * SNMPv1/v2 community
 +    * SNMP OID
 +    * SNMP port
 +    * SSH username
 +    * SSH public key
 +    * SSH private key
 +    * SSH password
 +    * SSH script (since Zabbix 2.0.3)
 +    * Telnet username
 +    * Telnet password
 +    * Telnet script (since Zabbix 2.0.3)
 +    * Calculated item [[manual:​config:​items:​itemtypes:​calculated#​configurable_fields|formula]]
 +    * Trapper item "​Allowed hosts" field (//since Zabbix 2.2//)
 +    * Database monitoring additional parameters (since Zabbix 2.0.3)
 +
 +  * Discovery
 +      * SNMPv3 context name
 +      * SNMPv3 security name
 +      * SNMPv3 auth pass
 +      * SNMPv3 priv pass
 +      * SNMPv1/v2 community
 +      * SNMP OID
 + 
 +  * Low-level discovery rule
 +      * Name (since Zabbix 1.8.4)
 +      * Key parameters
 +      * SNMPv3 context name
 +      * SNMPv3 security name
 +      * SNMPv3 auth pass
 +      * SNMPv3 priv pass
 +      * SNMPv1/v2 community
 +      * SNMP OID
 +      * SNMP port
 +      * SSH username
 +      * SSH public key
 +      * SSH private key
 +      * SSH password
 +      * SSH script (since Zabbix 2.0.3)
 +      * Telnet username
 +      * Telnet password
 +      * Telnet script (since Zabbix 2.0.3)
 +      * Trapper item “Allowed hosts” field (since Zabbix 2.2)
 +      * Database monitoring additional parameters (since Zabbix 2.0.3)
 +      * Filter regular expressions (since Zabbix 2.4)
 +  ​
 +  * Web scenario (since Zabbix 2.2.0)
 +      * Name 
 +      * Agent 
 +      * HTTP proxy 
 +      * Variables ​
 +      * Headers ​
 +      * Step name 
 +      * Step URL 
 +      * Step post variables ​
 +      * Step headers ​
 +      * Required string ​
 +      * Required status codes 
 +      * Authentication (user and password) ​
 +      * SSL certificate file
 +      * SSL key file 
 +      * SSL key password ​
 +     
 + 
 +  * Triggers
 +      * Name (since Zabbix 1.8.4)
 +      * Expression (only in constants and function parameters)
 +      * Description
 +      * URLs (since Zabbix 3.0)
 +
 +  * Trigger-based notifications (since Zabbix 2.4)
 +  ​
 +  * Trigger-based internal notifications (since Zabbix 2.4)
 + 
 +  * Event tags (since Zabbix 3.2.2) ​
 +      * Tag name 
 +      * Tag value 
 +      * Tag for matching ​
 +
 +  * Global scripts (including confirmation text) (since Zabbix 2.2.0)
 +
 +  * URL field of dynamic URL screen element (since Zabbix 2.4)