Zabbix Documentation 4.4

3.04.05.0 (current)| In development:5.2 (devel)| Unsupported:1.82.02.22.43.23.44.24.4Guidelines

User Tools

Site Tools


manual:config:macros:lld_macros

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
manual:config:macros:lld_macros [2019/08/14 11:17]
Andrejs.Griscenko [ZBXNEXT-4942] added support of LLD macros in trigger prototype operational data
manual:config:macros:lld_macros [2020/03/31 10:43] (current)
marinagen backslash in macro functions in key parameters
Line 21: Line 21:
   * in the low-level discovery rule filter   * in the low-level discovery rule filter
   * for item prototypes in   * for item prototypes in
-    * names+    * name
     * key parameters     * key parameters
-    * units +    * unit 
-    * update ​intervals +    * update ​interval<​sup>​[[lld_macros#​footnotes|1]]</​sup> ​ 
-    * history storage ​periods +    * history storage ​period<​sup>​[[lld_macros#​footnotes|1]]</​sup> ​ 
-    * trend storage ​periods+    * trend storage ​period<​sup>​[[lld_macros#​footnotes|1]]</​sup> ​
     * item value preprocessing steps     * item value preprocessing steps
-    * SNMP OIDs +    * SNMP OID 
-    * IPMI sensor ​fields +    * IPMI sensor ​field 
-    * calculated item formulas +    * calculated item formula 
-    * SSH and Telnet ​scripts +    * SSH script ​and Telnet ​script 
-    * database monitoring SQL queries +    * database monitoring SQL query 
-    * JMX item endpoint ​fields +    * JMX item endpoint ​field 
-    * descriptions+    * description
     * HTTP agent URL field     * HTTP agent URL field
     * HTTP agent HTTP query fields field     * HTTP agent HTTP query fields field
Line 46: Line 46:
     * HTTP agent HTTP SSL key file field     * HTTP agent HTTP SSL key file field
     * HTTP agent HTTP SSL key password field     * HTTP agent HTTP SSL key password field
-    * HTTP agent HTTP timeout field+    * HTTP agent HTTP timeout<​sup>​[[lld_macros#​footnotes|1]]</​sup> ​field
   * for trigger prototypes in   * for trigger prototypes in
-    * names+    * name
     * operational data     * operational data
     * expression (only in constants and function parameters)     * expression (only in constants and function parameters)
-    * URLs +    * URL 
-    * descriptions +    * description 
-    * event tag names and values+    * event tag name and value
   * for graph prototypes in   * for graph prototypes in
-    * names+    * name
   * for host prototypes in   * for host prototypes in
-    * names +    * name 
-    * visible ​names +    * visible ​name 
-    * host group prototype ​names+    * host group prototype ​name
     * (see the [[:​manual/​vm_monitoring/​discovery_fields|full list]])     * (see the [[:​manual/​vm_monitoring/​discovery_fields|full list]])
  
Line 75: Line 75:
  
 {{:​manual:​config:​macros:​lld_macro_function.png|}} {{:​manual:​config:​macros:​lld_macro_function.png|}}
 +
 +Note, that commas are not allowed in unquoted item [[:​manual/​config/​items/​item/​key#​key_parameters|key parameters]],​ so the parameter containing a macro function has to be quoted. The backslash (''​\''​) character should be used to escape double quotes inside the parameter. Example:
 +  net.if.in["​{{#​IFALIAS}.regsub(\"​(.*)_([0-9]+)\",​ \1)}",​bytes]
  
 For more information on macro function syntax, see: [[:​manual/​config/​macros/​macro_functions|Macro functions]] For more information on macro function syntax, see: [[:​manual/​config/​macros/​macro_functions|Macro functions]]
  
 Macro functions are supported in low-level discovery macros since Zabbix 4.0. Macro functions are supported in low-level discovery macros since Zabbix 4.0.
 +
 +== Footnotes ==
 +
 +<​sup>​**1**</​sup>​ In the fields marked with <​sup>​[[lld_macros#​footnotes|1]]</​sup>​ a single macro has to fill the whole field. Multiple macros in a field or macros mixed with text are not supported.