有一种自动发现(LLD)函数中使用的宏类型为:
There is a type of macro used within the low-level discovery function:
它是一个在LLD规则中使用的宏,并返回文件系统名称、网络接口和 SNMP OIDs。
It is a macro that is used in an LLD rule and returns real values of file system names, network interfaces and SNMP OIDs.
这些宏可以用于创建监控项、触发器和图形原型。然后,当发现真实的文件系统、网络接口等,这些宏将被替换为真实的值,并且以这些值来创建真实的监控项、触发器和图形。
These macros can be used for creating item, trigger and graph prototypes. Then, when discovering real file systems, network interfaces etc., these macros are substituted with real values and are the basis for creating real items, triggers and graphs.
这些宏还用于在虚拟机自动发现中创建主机和主机组原型。
These macros are also used in creating host and host group prototypes in virtual machine discovery.
LLD 宏可以用在:
LLD macros can be used:
在上述所有位置,LLD 宏都可以在用户宏上下文中使用。
In all those places LLD macros can be used inside user macro context.
一些自动发现(LLD)宏在 Zabbix 中是已经预先内置的,例如 {#FSNAME}、 {#FSTYPE}、{#IFNAME}、 {#SNMPINDEX}、 {#SNMPVALUE} 这些宏。然而,当你在创建自定义自动发现规则的时候,遵守这些宏名称不是强制性的。所以,你可以使用任何其他的 LLD 宏名称并引用该名称。
Some low-level discovery macros come "pre-packaged" with the LLD function in Zabbix - {#FSNAME}, {#FSTYPE}, {#IFNAME}, {#SNMPINDEX}, {#SNMPVALUE}. However, adhering to these names is not compulsory when creating a custom low-level discovery rule. Then you may use any other LLD macro name and refer to that name.