Zabbix Documentation 3.2

3.04.04.2 (current)In development:4.4 (devel)Unsupported:1.82.02.22.43.23.4

User Tools

Site Tools


manual:config: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 [2015/07/30 06:20]
martins-v fixing the false statement about needing to quote parameter with macros
manual:config:macros [2016/09/28 09:16] (current)
martins-v consistent formatting
Line 1: Line 1:
-===== - #Macros =====+===== - #Macros =====
  
 === Overview === === Overview ===
  
-Zabbix supports a number of macros which may be used in various situations. Macros are variables, identified by a **{MACRO}** syntax, and resolve to a specific value depending on the context.+Zabbix supports a number of macros which may be used in various situations. Macros are variables, identified by a specific syntax: 
 + 
 +  ​{MACRO} ​ 
 +   
 +Macros ​resolve to a specific value depending on the context.
  
 Effective use of macros allows to save time and make Zabbix configuration more transparent. ​ Effective use of macros allows to save time and make Zabbix configuration more transparent. ​
Line 11: Line 15:
 Macros may be used in item key parameters. A macro may be used for only a part of the parameter, for example ''​item.key[server_{HOST.HOST}_local]''​. Double-quoting the parameter is not necessary as Zabbix will take care of any ambiguous special symbols, if present in the resolved macro. Macros may be used in item key parameters. A macro may be used for only a part of the parameter, for example ''​item.key[server_{HOST.HOST}_local]''​. Double-quoting the parameter is not necessary as Zabbix will take care of any ambiguous special symbols, if present in the resolved macro.
  
-See a full list of [[manual:appendix:​macros:​supported_by_location|supported macros]] by location.+See also:
  
-You can also configure ​your own [[manual:​config:​macros:​usermacros|user macros]].+  * full list [[:​manual/​appendix/​macros/​supported_by_location|of supported macros]] 
 +  * macro [[:​manual/​config/​macros/​macro_functions|functions]] 
 +  * how to configure [[manual:​config:​macros:​usermacros|user macros]]