Áú»¢¶Ä²©

This is the documentation page for an unsupported version of Áú»¢¶Ä²©.
Is this not what you were looking for? Switch to the current version or choose one from the drop-down menu.
Table of Contents

10 Macros

Overview

Áú»¢¶Ä²© supports a number of built-in macros which may be used in various situations. These 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 Áú»¢¶Ä²© configuration more transparent.

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 Áú»¢¶Ä²© server, the name will resolve to "Processor load is too high on Áú»¢¶Ä²© 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 Áú»¢¶Ä²© will take care of any ambiguous special symbols, if present in the resolved macro.

Besides built-in macros Áú»¢¶Ä²© also supports user-defined macros, user-defined macros with context and macros for low-level discovery.

See also: