发现检查 object

以下 objects 与 dcheck API 直接相关。

发现检查

发现检查对象定义了由网络发现规则执行的特定检查。它具有以下属性。

Property Type Description
dcheckid ID 发现检查的 ID。
druleid ID 该检查所属的发现规则的 ID。
key_ string 监控项键值(如果 type 设置为 "Zabbix agent"),或 SNMP OID(如果 type 设置为 "SNMPv1 agent"、"SNMPv2 agent" 或 "SNMPv3 agent")。

Property behavior:
- required if type is set to "Zabbix agent", "SNMPv1 agent", "SNMPv2 agent", or "SNMPv3 agent"
ports string 一个或多个要检查的端口范围,以逗号分隔。

默认值:0。

Property behavior:
- supported if type is set to "SSH" (0), "LDAP" (1), "SMTP" (2), "FTP" (3), "HTTP" (4), "POP" (5), "NNTP" (6), "IMAP" (7), "TCP" (8), "Zabbix agent" (9), "SNMPv1 agent" (10), "SNMPv2 agent" (11), "SNMPv3 agent" (13), "HTTPS" (14), or "Telnet" (15)
snmp_community string SNMP community。

Property behavior:
- required if type is set to "SNMPv1 agent" or "SNMPv2 agent"
snmpv3_authpassphrase string 认证口令。

Property behavior:
- supported if type is set to "SNMPv3 agent" and snmpv3_securitylevel is set to "authNoPriv" or "authPriv"
snmpv3_authprotocol integer 认证协议。

Possible values:
0 - (default) MD5;
1 - SHA1;
2 - SHA224;
3 - SHA256;
4 - SHA384;
5 - SHA512.

Property behavior:
- supported if type is set to "SNMPv3 agent" and snmpv3_securitylevel is set to "authNoPriv" or "authPriv"
snmpv3_contextname string SNMPv3 上下文名称。

Property behavior:
- supported if type is set to "SNMPv3 agent"
snmpv3_privpassphrase string 隐私口令。

Property behavior:
- supported if type is set to "SNMPv3 agent" and snmpv3_securitylevel is set to "authPriv"
snmpv3_privprotocol integer 隐私协议。

Possible values:
0 - (default) DES;
1 - AES128;
2 - AES192;
3 - AES256;
4 - AES192C;
5 - AES256C.

Property behavior:
- supported if type is set to "SNMPv3 agent" and snmpv3_securitylevel is set to "authPriv"
snmpv3_securitylevel string 安全级别。

Possible values:
0 - noAuthNoPriv;
1 - authNoPriv;
2 - authPriv.

Property behavior:
- supported if type is set to "SNMPv3 agent"
snmpv3_securityname string 安全名称。

Property behavior:
- supported if type is set to "SNMPv3 agent"
type integer 检查类型。

Possible values:
0 - SSH;
1 - LDAP;
2 - SMTP;
3 - FTP;
4 - HTTP;
5 - POP;
6 - NNTP;
7 - IMAP;
8 - TCP;
9 - Zabbix agent;
10 - SNMPv1 agent;
11 - SNMPv2 agent;
12 - ICMP ping;
13 - SNMPv3 agent;
14 - HTTPS;
15 - Telnet.

Property behavior:
- required
uniq integer 是否将此检查用作设备唯一性判定条件。每个发现规则只能配置一个唯一检查。

Possible values:
0 - (default) do not use this check as a uniqueness criteria;
1 - use this check as a uniqueness criteria.

Property behavior:
- supported if type is set to "Zabbix agent", "SNMPv1 agent", "SNMPv2 agent", or "SNMPv3 agent"
host_source integer 主机名来源。

Possible values:
1 - (default) DNS;
2 - IP;
3 - discovery value of this check.
name_source integer 可见名称来源。

Possible values:
0 - (default) not specified;
1 - DNS;
2 - IP;
3 - discovery value of this check.
allow_redirect integer 是否允许 ICMP ping 的目标从不同的 IP 地址响应。

Possible values:
0 - (default) treat redirected responses as if the target host is down (fail);
1 - treat redirected responses as if the target host is up (success).

Property behavior:
- supported if type is set to "ICMP ping"