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 [2020/02/26 07:45]
marinagen 'single macro' fields defined (through footnotes)
manual:config:macros:lld_macros [2020/06/10 08:40] (current)
martins-v updating link target
Line 1: Line 1:
-==== Low-level discovery macros ====+==== Low-level discovery macros ====
  
 === Overview === === Overview ===
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<​sup>​[[lld_macros#​footnotes|1]]</​sup> ​ field+    * HTTP agent HTTP timeout<​sup>​[[lld_macros#​footnotes|1]]</​sup>​ field
   * for trigger prototypes in   * for trigger prototypes in
     * name     * name
Line 60: Line 60:
     * visible name     * visible name
     * host group prototype name     * host group prototype name
 +    * host macro value
     * (see the [[:​manual/​vm_monitoring/​discovery_fields|full list]])     * (see the [[:​manual/​vm_monitoring/​discovery_fields|full list]])
  
-In all those places LLD macros can be used inside user [[:manual/config/macros/​usermacros#​user_macro_context|macro context]].+In all those places LLD macros can be used inside ​static ​user [[manual:config:macros:​user_macros_context|macro context]].
  
 === Using macro functions === === Using macro functions ===
Line 75: Line 76:
  
 {{:​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]]