Zabbix Documentation 2.0

3.04.04.4 (current)| In development:5.0 (devel)| Unsupported:1.82.02.22.43.23.44.2Guidelines

User Tools

Site Tools


manual:config:macros:usermacros

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:usermacros [2014/02/14 08:17]
martins-v clarifying use of user macros
manual:config:macros:usermacros [2015/05/05 07:56] (current)
asaveljevs [Example 1] fixed net.tcp.service item key
Line 11: Line 11:
   * trigger names   * trigger names
   * trigger expression parameters and constants (see examples)   * trigger expression parameters and constants (see examples)
-  * several other [[2.0/manual/appendix/macros/supported_by_location#​additional_support_for_user_macros|locations]]+  * several other [[manual:appendix:macros:supported_by_location#​additional_support_for_user_macros|locations]]
  
 The following characters are allowed in the macro names: **A-Z** , **0-9** , **_** , **.** The following characters are allowed in the macro names: **A-Z** , **0-9** , **_** , **.**
Line 45: Line 45:
 Use of host-level macro in the "​Status of SSH daemon"​ item key: Use of host-level macro in the "​Status of SSH daemon"​ item key:
  
-**net.tcp.service[ssh,​{$SSH_PORT}]**+**net.tcp.service[ssh,,​{$SSH_PORT}]**
  
 This item can be assigned to multiple hosts, providing that the value of **{$SSH_PORT}** is defined on those hosts. This item can be assigned to multiple hosts, providing that the value of **{$SSH_PORT}** is defined on those hosts.
Line 67: Line 67:
 Note that a macro can be used as a parameter of trigger function, in this example function **min()**. Note that a macro can be used as a parameter of trigger function, in this example function **min()**.
  
-<note important>​User macros in a trigger ​expression ​will be expanded ​if referencing a parameter or constant. They are NOT supported for referencing the host name, item key, function ​or operator.</​note>​+<note important>​In trigger ​expressions user macros ​will expand ​if referencing a parameter or constant. They will NOT expand if referencing the host, item key, functionoperator ​or another trigger expression.</​note>​