[英]Using MACROS in Zabbix
I have a big problem with MACROS in Zabbix. 我在Zabbix中使用MACROS遇到了很大的问题。 I want to define some MACROS in a host like {$IP1}, {$IP2} and so on. 我想在主机中定义一些MACROS,例如{$ IP1},{$ IP2}等。 I wonder to know Why I cannot use them in the following areas: Application name, Graph name, Item key. 我想知道为什么我不能在以下领域使用它们:应用程序名称,图形名称,项目键。 Any help is appreciated. 任何帮助表示赞赏。
These are called user macros (or variables) in Zabbix. 这些在Zabbix中称为用户宏(或变量)。 The areas you listed regarding them: 您列出的有关他们的领域:
key[{$IP1}]
项目密钥-项目密钥本身不支持,但是项目密钥参数(例如key[{$IP1}]
If the question is why it's not supported - well, either because there has been limited interest, or because there are technical difficulties in supporting them. 如果问题是为什么它不被支持-很好,要么是因为兴趣有限,要么是技术支持困难。
See the manual on usermacros . 请参阅usermacros上的手册 。
The questions sounds a bit like you might want the low level discovery instead - since 3.0 it also supports dynamic application names. 这个问题听起来有点像您可能想要低级发现 ,因为3.0还支持动态应用程序名称。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.