Zabbix Documentation 2.2

3.04.04.45.0 (current)| In development:5.2 (devel)| Unsupported:1.82.02.22.43.23.44.2Guidelines

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
manual:config:macros [2015/07/30 06:17]
martins-v fixing the false statement about needing to quote parameter with macros
manual:config:macros [2015/07/30 06:20] (current)
martins-v fixing the false statement about needing to quote parameter with macros
Line 9: Line 9:
 In one of typical uses, a macro may be used in a template. Thus a trigger on a template may be named "​Processor load is too high on {HOST.NAME}"​. When the template is applied to the host, such as Zabbix server, the name will resolve to "​Processor load is too high on Zabbix server"​ when the trigger is displayed in the Monitoring section. In one of typical uses, a macro may be used in a template. Thus a trigger on a template may be named "​Processor load is too high on {HOST.NAME}"​. When the template is applied to the host, such as Zabbix server, the name will resolve to "​Processor load is too high on Zabbix server"​ when the trigger is displayed in the Monitoring section.
  
-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.+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 a full list of [[manual:​appendix:​macros:​supported_by_location|supported macros]] by location.