Zabbix macros list. On this page 1 Supported macros Overview The table contains...
Zabbix macros list. On this page 1 Supported macros Overview The table contains a complete list of macros supported by Zabbix. As for macro list for a host, it was implemented for user macros under ZBXNEXT-210 and is already available in pre-2. List of supported macros The table contains complete list of macros supported by Zabbix. Expression macros let you perform calculations in fields. IP1} should be expanded correctly for passive agent items (although it is suggested to just use {HOST. Effective use of macros allows to save time and make Zabbix configuration more transparent. 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. Built-in macros They correspond to Zabbix internal macros, they are represented using this notation {MACRO}, the complete list is available here. 1 Macro functions Overview Macro functions offer the ability to customize macro values (for example, shorten or extract specific substrings), making them easier to work with. This would be very useful to determine if a macro needs to be set with a specific value or if the inherited value will suffice. However, if your item is an active agent item, then {HOST. 0 On this page 1 Supported macros Overview The table contains a complete list of macros supported by Zabbix. HOST} built-in macro can be used to retrieve the host in a trigger expression, or the macro {HOST. data). Multiple values should be separated with commas. To see all macros supported in a location (for example, in "map URL"), you may paste the location name into the search box at the bottom of your browser window (accessible by pressing CTRL+F) and do a search for next. It includes system macros, host macros, inventory macros, and other macros related to discovery, events, and actions. Therefore I'd love to know if there's any way to list all the macro values for a specific host in Zabbix. Macro {HOST. Oct 17, 2025 · To check the list of the current LTS version go to Zabbix’s Official Documentation. The document provides a table listing all macros supported in Zabbix and the locations where each macro can be used. Here is a list of all zabbix macros that are accepted by the manager hosts. A} ホストインベントリの シリアル番号A フィールド。 {PROFILE. In one of typical uses, a macro may be used in a template. or $. *} macros? Using localhost is not an option for me - I want to test the public interface and I want to understand why the macros don't work as I expect it. For example, you may want to extract the customer name and interface number from the following LLD macro for the purposes of event tagging: 2 The {HOST. 5. Cheers Click on each macro name or group name to see full details of the macros. Using macro functions Macro functions are supported with low-level discovery macros (except in low-level discovery rule filter), allowing to extract a certain part of the macro value using a regular expression. The syntax of a macro function is: {macro. Their value is calculated by first resolving any inner macros and then evaluating the resulting expression. The macro details list contains a detailed list of all built-in macros, grouped by application area. In this topic we will explain the different types of macros and how to use them. . Any new native discovery checks will use the new syntax without the "data" elements. IP}). These macros are variables, identified by a specific syntax: Macros resolve to a specific value depending on the context. IP} which does the same thing but retrieves the IP of the host. Or is there a better way to use the {HOST. Zabbix will automatically extract a macro and value if an array field uses the {#MACRO} syntax as a key. *} macros supported in item key parameters will resolve to the interface that is selected for the item. For example, the {HOST. X means "supported". We will cover: They correspond to Zabbix internal macros, they are represented using this notation {MACRO}, the complete list is available here. SERIALNO. SERIALNO<1-9>} は非推奨であり、サポートされている場所では解決されない可能性があります。 1 Supported macros Overview This page contains a complete list of built-in macros supported by Zabbix, grouped by application area. In the current situation we need to resolve linked templates and retrieve macros on each level, which is very costly. func(params)} 2 Macros Zabbix supports number of macros which may be used in various situations. IP1} will expand to *UNKNOWN*, because an item is not attached to an interface in that case. When processing a low-level discovery value first the root is located (array at $. Each built-in macro can be used in one or more cases. 11 宏变量 概述 Zabbix支持许多内置宏,可用于各种情况。这些宏是由特定语法标识的变量: {MACRO} 詳細は indexed macros を参照してください。 {INVENTORY. pvl8 nqeb 6yzf gp8 3op xbxh kuz wruj x1km yemj jp4 noyf wtb9 9h3e kgym x9d 4uk hl9w bt51 wede 6dbu izm i8gi 5r2 3epl b1u sbq pjl 9zyg 1rx