LLD规则 object
以下objects与discoveryruleAPI直接相关。
LLD 规则
低级别发现规则对象具有以下属性。
| Property | Type | Description |
|---|---|---|
| itemid | ID | LLD 规则的 ID。 Property behavior: - read-only - required for update operations |
| delay | string | LLD 规则的更新间隔。 接受秒数或带后缀的时间单位(例如 30s、1m、2h、1d),并且可选地接受一个或多个 custom intervals,所有值用分号分隔。自定义间隔可以是灵活间隔和计划间隔的混合。 接受用户宏。如果使用,值必须是单个宏。不支持多个宏或宏与文本混合。灵活间隔可以写成由斜杠分隔的两个宏(例如 {$FLEX_INTERVAL}/{$FLEX_PERIOD})。示例: 1h;wd1-5h9-18;{$Macro1}/1-7,00:00-24:00;0/6-7,12:00-24:00;{$Macro2}/{$Macro3}Property behavior: - required if type is set to "Zabbix agent" (0), "Simple check" (3), "Zabbix internal" (5), "External check" (10), "Database monitor" (11), "IPMI agent" (12), "SSH agent" (13), "TELNET agent" (14), "JMX agent" (16), "HTTP agent" (19), "SNMP agent" (20), "Script" (21), "Browser" (22), or if type is set to "Zabbix agent (active)" (7) and key_ does not contain "mqtt.get" |
| hostid | ID | LLD 规则所属主机的 ID。 Property behavior: - constant - required for create operations |
| interfaceid | ID | LLD 规则所属主机接口的 ID。 Property behavior: - required if LLD rule belongs to host and type is set to "Zabbix agent", "IPMI agent", "JMX agent", or "SNMP agent"- supported if LLD rule belongs to host and type is set to "Simple check", "External check", "SSH agent", "TELNET agent", or "HTTP agent" |
| key_ | string | LLD 规则键值。 Property behavior: - required for create operations - read-only for inherited objects |
| name | string | LLD 规则名称。 Property behavior: - required for create operations - read-only for inherited objects |
| type | integer | LLD 规则类型。 Possible values: 0 - Zabbix agent; 2 - Zabbix trapper; 3 - Simple check; 5 - Zabbix internal; 7 - Zabbix agent (active); 10 - External check; 11 - Database monitor; 12 - IPMI agent; 13 - SSH agent; 14 - TELNET agent; 16 - JMX agent; 18 - Dependent item; 19 - HTTP agent; 20 - SNMP agent; 21 - Script; 22 - Browser. Property behavior: - required for create operations - read-only for inherited objects |
| url | string | URL 字符串。 支持用户宏、{HOST.IP}、{HOST.CONN}、{HOST.DNS}、{HOST.HOST}、{HOST.NAME}、{ITEM.ID}、{ITEM.KEY}。 Property behavior: - required if type is set to "HTTP agent"- read-only for inherited objects |
| allow_traps | integer | 允许像 trapper 监控项一样填充值。 Possible values: 0 - (default) Do not allow to accept incoming data; 1 - Allow to accept incoming data. Property behavior: - supported if type is set to "HTTP agent" |
| authtype | integer | 认证方式。 Possible values if type is set to "SSH agent":0 - (default) password; 1 - public key. Possible values if type is set to "HTTP agent":0 - (default) none; 1 - basic; 2 - NTLM; 3 - Kerberos; 4 - Digest. Property behavior: - supported if type is set to "SSH agent" or "HTTP agent"- read-only for inherited objects (if type is set to "HTTP agent") |
| description | string | LLD 规则的描述。 |
| error | string | 如果更新 LLD 规则值时出现问题,则显示错误文本。 Property behavior: - read-only |
| follow_redirects | integer | 轮询数据时是否跟随响应重定向。 Possible values: 0 - Do not follow redirects; 1 - (default) Follow redirects. Property behavior: - supported if type is set to "HTTP agent"- read-only for inherited objects |
| headers | array | 执行 HTTP 请求时发送的 headers 数组。 Property behavior: - supported if type is set to "HTTP agent"- read-only for inherited objects |
| http_proxy | string | HTTP(S) proxy 连接字符串。 Property behavior: - supported if type is set to "HTTP agent"- read-only for inherited objects |
| ipmi_sensor | string | IPMI 传感器。 Property behavior: - required if type is set to "IPMI agent" and key_ is not set to "ipmi.get"- supported if type is set to "IPMI agent"- read-only for inherited objects |
| jmx_endpoint | string | JMX agent 自定义连接字符串。 Default: service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi Property behavior: - supported if type is set to "JMX agent" |
| lifetime | string | 在此时间段之后,将删除不再被发现的监控项。接受秒数、带后缀的时间单位或用户宏。 Default: 7d. |
| lifetime_type | integer | 删除丢失的 LLD 资源的场景。 Possible values: 0 - (default) Delete after lifetime threshold is reached; 1 - Do not delete; 2 - Delete immediately. |
| enabled_lifetime | string | 在此时间段之后,将禁用不再被发现的监控项。接受秒数、带后缀的时间单位或用户宏。 Default: 0. |
| enabled_lifetime_type | integer | 禁用丢失的 LLD 资源的场景。 Possible values: 0 - Disable after lifetime threshold is reached; 1 - Do not disable; 2 - (default) Disable immediately. |
| master_itemid | ID | 主监控项的 ID。 允许最多 3 层依赖监控项递归,且依赖监控项总数最多为 999。发现规则不能作为另一个发现规则的主监控项。 Property behavior: - required if type is set to "Dependent item"- read-only for inherited objects |
| output_format | integer | 是否将响应转换为 JSON。 Possible values: 0 - (default) Store raw; 1 - Convert to JSON. Property behavior: - supported if type is set to "HTTP agent"- read-only for inherited objects |
| params | string | 根据 LLD 规则类型而定的附加参数: - SSH 和 Telnet LLD 规则执行的脚本; - 数据库监控 LLD 规则的 SQL 查询; - 计算型 LLD 规则的公式; - 脚本和浏览器 LLD 规则的脚本。 Property behavior: - required if type is set to "Database monitor", "SSH agent", "TELNET agent", "Script" or "Browser"- read-only for inherited objects (if type is set to "Script" or "Browser") |
| parameters | object/array | 如果 type 设置为 "Script" 或 "Browser",则为附加参数。由具有 name 和 value 属性的对象数组组成,其中 name 必须唯一。Property behavior: - supported if type is set to "Script" or "Browser"- read-only for inherited objects |
| password | string | 认证密码。 Property behavior: - required if type is set to "JMX agent" and username is set- supported if type is set to "Simple check", "Database monitor", "SSH agent", "TELNET agent", or "HTTP agent"- read-only for inherited objects (if type is set to "HTTP agent") |
| post_type | integer | 存储在 posts 属性中的 POST 数据体类型。Possible values: 0 - (default) Raw data; 2 - JSON data; 3 - XML data. Property behavior: - supported if type is set to "HTTP agent"- read-only for inherited objects |
| posts | string | HTTP(S) 请求体数据。 Property behavior: - required if type is set to "HTTP agent" and post_type is set to "JSON data" or "XML data"- supported if type is set to "HTTP agent" and post_type is set to "Raw data"- read-only for inherited objects |
| privatekey | string | 私钥文件名。 Property behavior: - required if type is set to "SSH agent" and authtype is set to "public key" |
| publickey | string | 公钥文件名。 Property behavior: - required if type is set to "SSH agent" and authtype is set to "public key" |
| query_fields | array | 执行 HTTP 请求时发送的 query fields 数组。 Property behavior: - supported if type is set to "HTTP agent"- read-only for inherited objects |
| request_method | integer | 请求方法类型。 Possible values: 0 - (default) GET; 1 - POST; 2 - PUT; 3 - HEAD. Property behavior: - supported if type is set to "HTTP agent"- read-only for inherited objects |
| retrieve_mode | integer | 应存储响应的哪一部分。 Possible values if request_method is set to "GET", "POST", or "PUT":0 - (default) Body; 1 - Headers; 2 - Both body and headers will be stored. Possible values if request_method is set to "HEAD":1 - Headers. Property behavior: - supported if type is set to "HTTP agent"- read-only for inherited objects |
| snmp_oid | string | SNMP OID。 Property behavior: - required if type is set to "SNMP agent"- read-only for inherited objects |
| ssl_cert_file | string | 公用 SSL 密钥文件路径。 Property behavior: - supported if type is set to "HTTP agent"- read-only for inherited objects |
| ssl_key_file | string | 私有 SSL 密钥文件路径。 Property behavior: - supported if type is set to "HTTP agent"- read-only for inherited objects |
| ssl_key_password | string | SSL 密钥文件的密码。 Property behavior: - supported if type is set to "HTTP agent"- read-only for inherited objects |
| state | integer | LLD 规则状态。 Possible values: 0 - (default) normal; 1 - not supported. Property behavior: - read-only |
| status | integer | LLD 规则状态。 Possible values: 0 - (default) enabled LLD rule; 1 - disabled LLD rule. |
| status_codes | string | 以逗号分隔的所需 HTTP 状态码范围。也支持将用户宏作为逗号分隔列表的一部分。 Example: 200,200-{$M},{$M},200-400 Property behavior: - supported if type is set to "HTTP agent"- read-only for inherited objects |
| templateid | ID | 父模板 LLD 规则的 ID。 Property behavior: - read-only |
| timeout | string | 监控项数据轮询请求超时时间。 接受秒数或带后缀的时间单位(例如 30s、1m)。也接受用户宏。 Possible values range: 1-600s. Default: "" - use proxy/global settings. Property behavior: - supported if type is set to "Zabbix agent" (0), "Simple check" (3) and key_ does not start with "vmware." and "icmpping", "Zabbix agent (active)" (7), "External check" (10), "Database monitor" (11), "SSH agent" (13), "TELNET agent" (14), "HTTP agent" (19), "SNMP agent" (20) and snmp_oid starts with "walk[" or "get[", "Script" (21), "Browser" (22)- read-only for inherited objects |
| trapper_hosts | string | 允许的主机。 Property behavior: - supported if type is set to "Zabbix trapper", or if type is set to "HTTP agent" and allow_traps is set to "Allow to accept incoming data" |
| username | string | 认证用户名。 Property behavior: - required if type is set to "SSH agent", "TELNET agent", or if type is set to "JMX agent" and password is set- supported if type is set to "Simple check", "Database monitor", or "HTTP agent"- read-only for inherited objects (if type is set to "HTTP agent") |
| uuid | string | 通用唯一标识符,用于将导入的 LLD 规则链接到已存在的规则。如果未提供,则自动生成。 Property behavior: - supported if the LLD rule belongs to a template |
| verify_host | integer | 是否验证连接的主机名与主机证书中的名称一致。 Possible values: 0 - (default) Do not validate; 1 - Validate. Property behavior: - supported if type is set to "HTTP agent"- read-only for inherited objects |
| verify_peer | integer | 是否验证主机证书是否真实有效。 Possible values: 0 - (default) Do not validate; 1 - Validate. Property behavior: - supported if type is set to "HTTP agent"- read-only for inherited objects |
HTTP 头
header 对象具有以下属性:
| Property | Type | Description |
|---|---|---|
| name | string | HTTP 头名称。 Property behavior: - required |
| value | string | 头值。 Property behavior: - required |
HTTP 查询字段
查询字段对象定义了一个名称和值,用于指定 URL 参数。 它具有以下属性:
| Property | Type | Description |
|---|---|---|
| name | string | 参数名称。 Property behavior: - required |
| value | string | 参数值。 Property behavior: - required |
LLD 规则过滤器
LLD 规则过滤器对象定义了一组可用于过滤已发现对象的条件。它具有以下属性:
| Property | Type | Description |
|---|---|---|
| conditions | object/array | 用于过滤结果的一组过滤条件。这些条件将按照它们在公式中的位置顺序进行排序。 属性行为: - required |
| evaltype | integer | 过滤条件的求值方法。 可能的值: 0 - And/Or; 1 - And; 2 - Or; 3 - 自定义表达式。 属性行为: - required |
| eval_formula | string | 用于计算过滤条件的生成表达式。该表达式包含引用特定过滤条件的 ID,这些 ID 通过其 formulaid 标识。对于使用自定义表达式的过滤器,eval_formula 的值等于 formula 的值。属性行为: - read-only |
| formula | string | 用于计算采用自定义表达式的过滤器条件的用户定义表达式。该表达式必须包含引用特定过滤条件的 ID,这些 ID 通过其 formulaid 标识。表达式中使用的 ID 必须与过滤条件中定义的 ID 完全一致:不能有任何条件未使用或被省略。属性行为: - required if evaltype is set to "custom expression" |
LLD 规则过滤条件
LLD 规则过滤条件对象定义了一个要对 LLD 宏的值执行的单独检查。它具有以下属性:
| Property | Type | Description |
|---|---|---|
| macro | string | 要执行检查的 LLD 宏。 Property behavior: - required |
| value | string | 要比较的值。 Property behavior: - required if operator is set to "matches regular expression" or "does not match regular expression" |
| formulaid | string | 用于在自定义表达式中引用该条件的任意唯一 ID。只能包含大写字母。修改过滤条件时必须由用户定义该 ID,但在之后再次请求时会重新生成。 Property behavior: - required if evaltype of LLD rule filter object is set to "custom expression" |
| operator | integer | 条件运算符。 Possible values: 8 - (default) matches regular expression; 9 - does not match regular expression; 12 - exists; 13 - does not exist. |
要更好地理解如何将过滤器与各种类型的表达式一起使用,请参见 discoveryrule.get 和 discoveryrule.create 方法页面中的示例。
LLD 宏路径
LLD 宏路径具有以下属性:
| Property | Type | Description |
|---|---|---|
| lld_macro | string | LLD 宏。 Property behavior: - required |
| path | string | 将分配给相应宏的值的选择器。 Property behavior: - required |
LLD 规则预处理
LLD 规则预处理对象具有以下属性。
| Property | Type | Description |
|---|---|---|
| type | integer | 预处理选项类型。 可能的值: 5 - 正则表达式; 11 - XML XPath; 12 - JSONPath; 14 - 匹配正则表达式; 15 - 不匹配正则表达式; 16 - 检查 JSON 中的错误; 17 - 检查 XML 中的错误; 20 - 丢弃未变化值并使用 heartbeat; 21 - JavaScript; 23 - Prometheus 转 JSON; 24 - CSV 转 JSON; 25 - 替换; 27 - XML 转 JSON; 28 - SNMP walk 值; 29 - SNMP walk 转 JSON; 30 - SNMP get 值。 Property behavior: - required |
| params | string | 预处理选项使用的附加参数。多个参数之间用换行符 (\n) 分隔。 Property behavior: - 如果 type 设置为 "Regular expression" (5)、"XML XPath" (11)、"JSONPath" (12)、"Matches regular expression" (14)、"Does not match regular expression" (15)、"Check for error in JSON" (16)、"Check for error in XML" (17)、"Discard unchanged with heartbeat" (20)、"JavaScript" (21)、"Prometheus to JSON" (23)、"CSV to JSON" (24)、"Replace" (25)、"SNMP walk value" (28)、"SNMP walk to JSON" (29) 或 "SNMP get value" (30),则为 required |
| error_handler | integer | 预处理步骤失败时使用的操作类型。 可能的值: 0 - 错误消息由 Zabbix 服务器设置; 1 - 丢弃值; 2 - 设置自定义值; 3 - 设置自定义错误消息。 Property behavior: - 如果 type 设置为 "Regular expression" (5)、"XML XPath" (11)、"JSONPath" (12)、"Matches regular expression" (14)、"Does not match regular expression" (15)、"Check for error in JSON" (16)、"Check for error in XML" (17)、"Prometheus to JSON" (23)、"CSV to JSON" (24)、"XML to JSON" (27)、"SNMP walk value" (28)、"SNMP walk to JSON" (29) 或 "SNMP get value" (30),则为 required |
| error_handler_params | string | 错误处理器参数。 Property behavior: - 如果 error_handler 设置为 "Set custom value" 或 "Set custom error message",则为 required |
以下参数和错误处理器适用于每种预处理类型。
| Preprocessing type | Name | Parameter 1 | Parameter 2 | Parameter 3 | Supported error handlers |
|---|---|---|---|---|---|
| 5 | Regular expression | pattern1 | output2 | 0, 1, 2, 3 | |
| 11 | XML XPath | path3 | 0, 1, 2, 3 | ||
| 12 | JSONPath | path3 | 0, 1, 2, 3 | ||
| 14 | Matches regular expression | pattern1 | 0, 1, 2, 3 | ||
| 15 | Does not match regular expression | pattern1 | 0, 1, 2, 3 | ||
| 16 | Check for error in JSON | path3 | 0, 1, 2, 3 | ||
| 17 | Check for error in XML | path3 | 0, 1, 2, 3 | ||
| 20 | Discard unchanged with heartbeat | seconds4, 5 | |||
| 21 | JavaScript | script2 | |||
| 23 | Prometheus to JSON | pattern5, 6 | 0, 1, 2, 3 | ||
| 24 | CSV to JSON | character2 | character2 | 0,1 | 0, 1, 2, 3 |
| 25 | Replace | search string2 | replacement2 | ||
| 27 | XML to JSON | 0, 1, 2, 3 | |||
| 28 | SNMP walk value | OID2 | Format: 0 - 不变 1 - 从 Hex-STRING 转为 UTF-8 2 - 从 Hex-STRING 转为 MAC 3 - 从 BITS 转为整数 |
0, 1, 2, 3 | |
| 29 | SNMP walk to JSON7 | Field name2 | OID prefix2 | Format: 0 - 不变 1 - 从 Hex-STRING 转为 UTF-8 2 - 从 Hex-STRING 转为 MAC 3 - 从 BITS 转为整数 |
0, 1, 2, 3 |
| 30 | SNMP get value | Format: 1 - 从 Hex-STRING 转为 UTF-8 2 - 从 Hex-STRING 转为 MAC 3 - 从 BITS 转为整数 |
0, 1, 2, 3 | ||
1 正则表达式
2 字符串
3 JSONPath 或 XML XPath
4 正整数(支持时间后缀,例如 30s、1m、2h、1d)
5 用户宏
6 采用以下语法的 Prometheus 模式:<metric name>{<label name>="<label value>", ...} == <value>。每个 Prometheus 模式组件(指标、标签名、标签值和指标值)都可以是用户宏。
7 支持多个以换行符分隔的 "Field name,OID prefix,Format records" 记录。
LLD 规则覆盖
LLD 规则覆盖对象定义了一组规则(过滤条件、条件和操作),用于覆盖不同原型对象的属性。它具有以下属性:
| Property | Type | Description |
|---|---|---|
| name | string | 覆盖的唯一名称。 Property behavior: - required |
| step | integer | 覆盖的唯一顺序号。 Property behavior: - required |
| stop | integer | 如果匹配,则停止处理后续覆盖。 Possible values: 0 - (default) 不停止处理覆盖; 1 - 如果过滤条件匹配,则停止处理覆盖。 |
| filter | object | 覆盖过滤器。 |
| operations | object/array | 覆盖操作。 |
LLD 规则覆盖过滤器
LLD 规则覆盖过滤器对象定义了一组条件,如果这些条件与发现的对象匹配,则会应用覆盖。它具有以下属性:
| Property | Type | Description |
|---|---|---|
| conditions | object/array | 用于匹配发现对象的一组覆盖过滤器条件。这些条件将按照它们在公式中的位置顺序进行排序。 属性行为: - 必需 |
| evaltype | integer | 覆盖过滤器条件的求值方法。 可能的值: 0 - And/Or; 1 - And; 2 - Or; 3 - 自定义表达式。 属性行为: - 必需 |
| eval_formula | string | 用于计算覆盖过滤器条件的生成表达式。该表达式包含引用特定覆盖过滤器条件的 ID,这些 ID 通过其 formulaid 标识。对于使用自定义表达式的过滤器,eval_formula 的值等于 formula 的值。属性行为: - 只读 |
| formula | string | 用户定义的表达式,用于计算使用自定义表达式的覆盖过滤器条件。该表达式必须包含引用特定覆盖过滤器条件的 ID,这些 ID 通过其 formulaid 标识。表达式中使用的 ID 必须与覆盖过滤器条件中定义的 ID 完全一致:不能有任何条件未使用或被省略。属性行为: - 当 evaltype 设置为 "custom expression" 时必需 |
LLD 规则覆盖过滤条件
LLD 规则覆盖过滤条件对象定义了一个单独的检查,用于对 LLD 宏的值执行。它具有以下属性:
| Property | Type | Description |
|---|---|---|
| macro | string | 要执行检查的 LLD 宏。 Property behavior: - required |
| value | string | 要比较的值。 Property behavior: - required if operator is set to "matches regular expression" or "does not match regular expression" |
| formulaid | string | 用于在自定义表达式中引用该条件的任意唯一 ID。只能包含大写字母。修改过滤条件时必须由用户定义该 ID,但在之后再次请求时会重新生成。 Property behavior: - required if evaltype of LLD rule override filter object is set to "custom expression" |
| operator | integer | 条件运算符。 Possible values: 8 - (default) matches regular expression; 9 - does not match regular expression; 12 - exists; 13 - does not exist. |
LLD 规则覆盖操作
LLD 规则覆盖操作是对原型对象执行的一组条件和动作的组合。它具有以下属性:
| Property | Type | Description |
|---|---|---|
| operationobject | integer | 要执行操作的已发现对象类型。 Possible values: 0 - 监控项原型; 1 - 触发器原型; 2 - 图形原型; 3 - 主机原型. Property behavior: - required |
| operator | integer | 覆盖条件 operator。 Possible values: 0 - (default) 等于; 1 - 不等于; 2 - 包含; 3 - 不包含; 8 - 匹配; 9 - 不匹配。 |
| value | string | 根据所选对象,匹配监控项、触发器、图形或主机原型名称的模式。 |
| opstatus | object | 用于监控项、触发器和主机原型对象的覆盖操作状态对象。 |
| opdiscover | object | 覆盖操作发现状态对象(所有对象类型)。 |
| opperiod | object | 用于监控项原型对象的覆盖操作周期(更新间隔)对象。 |
| ophistory | object | 用于监控项原型对象的覆盖操作历史对象。 |
| optrends | object | 用于监控项原型对象的覆盖操作趋势对象。 |
| opseverity | object | 用于触发器原型对象的覆盖操作严重性对象。 |
| optag | object/array | 用于触发器和主机原型对象的覆盖操作标签对象。 |
| optemplate | object/array | 用于主机原型对象的覆盖操作模板对象。 |
| opinventory | object | 用于主机原型对象的覆盖操作清单对象。 |
LLD 规则覆盖操作状态
设置为已发现对象的 LLD 规则覆盖操作状态。它具有以下属性:
LLD 规则覆盖操作 discover
LLD 规则覆盖操作 discover 状态,设置为已发现对象。它具有以下属性:
| Property | Type | Description |
|---|---|---|
| discover | integer | 覆盖所选对象的 discover 状态。 可能的值: 0 - 是,继续发现这些对象; 1 - 否,不会发现新对象,现有对象将被标记为丢失。 Property behavior: - required |
LLD 规则覆盖操作周期
LLD 规则覆盖操作周期是设置到已发现监控项的更新间隔值。 它具有以下属性:
| Property | Type | Description |
|---|---|---|
| delay | string | 覆盖监控项原型的更新间隔。 接受秒数或带后缀的时间单位(例如,30s、1m、2h、1d),并且可选地接受一个或多个自定义间隔,所有内容用分号分隔。自定义间隔可以是灵活间隔和计划间隔的混合。 接受用户宏或 LLD 宏(LLD 宏支持已在 Zabbix 7.0.27 中恢复)。如果使用该值,则必须是单个宏。不支持多个宏或宏与文本混合。灵活间隔可以写成由斜杠分隔的两个宏(例如, {$FLEX_INTERVAL}/{$FLEX_PERIOD})。示例: 1h;wd1-5h9-18;{$Macro1}/1-7,00:00-24:00;0/6-7,12:00-24:00;{$Macro2}/{$Macro3}属性行为: - 必需 |
LLD 规则覆盖操作历史
LLD 规则覆盖操作历史值设置为已发现的监控项。它具有以下属性:
| Property | Type | Description |
|---|---|---|
| history | string | 覆盖监控项原型的历史数据保留时长,即历史数据应存储多长时间的时间单位。也接受用户宏和 LLD 宏(Zabbix 7.0.27 中恢复了对 LLD 宏的支持)。 Property behavior: - required |
LLD 规则覆盖操作趋势
LLD 规则覆盖操作趋势值,设置为已发现的监控项。 它具有以下属性:
| Property | Type | Description |
|---|---|---|
| trends | string | 覆盖监控项原型的趋势设置,这是一个时间单位,用于指定趋势数据应保存多长时间。也支持用户宏和 LLD 宏(Zabbix 7.0.27 中已恢复对 LLD 宏的支持)。 Property behavior: - required |
LLD 规则覆盖操作严重性
设置为已发现触发器的 LLD 规则覆盖操作严重性值。它具有以下属性:
| Property | Type | Description |
|---|---|---|
| severity | integer | 覆盖触发器原型的严重性。 可能的值: 0 - (默认) 未分类; 1 - 信息; 2 - 警告; 3 - 一般; 4 - 高; 5 - 灾难。 Property behavior: - required |
LLD 规则覆盖操作标签
LLD 规则覆盖操作标签对象包含设置到发现对象的标签名称和值。它具有以下属性:
| Property | Type | Description |
|---|---|---|
| tag | string | 新的标签名称。也接受用户宏和 LLD 宏。 Property behavior: - required |
| value | string | 新的标签值。也接受用户宏和 LLD 宏。 |
LLD 规则覆盖操作模板
链接到已发现主机的 LLD 规则覆盖操作模板对象。它具有以下属性:
| Property | Type | Description |
|---|---|---|
| templateid | ID | 覆盖主机原型链接模板的模板。 Property behavior: - required |
LLD 规则覆盖操作清单
LLD 规则覆盖操作清单模式值,设置为 已发现的主机。它具有以下属性: