Table of Contents

发现检查 object

以下objects与dcheckAPI直接相关.

发现检查

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

属性 数据类型 描述
dcheckid ID 发现检查的ID。
druleid ID 检查所属的发现规则ID。
key_ string 监控项键(如果type设置为"Zabbix agent")或SNMP OID(如果type设置为"SNMPv1 agent"、"SNMPv2 agent"或"SNMPv3 agent")。

属性行为:
- 必填 如果type设置为"Zabbix agent"、"SNMPv1 agent"、"SNMPv2 agent"或"SNMPv3 agent"
ports string 一个或多个要检查的端口范围,用逗号分隔。

默认值: 0.

属性行为:
- 支持 如果type设置为"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)或"Telnet" (15)
snmp_community string SNMP community。

属性行为:
- 必填 如果type设置为"SNMPv1 agent"或"SNMPv2 agent"
snmpv3_authpassphrase string 认证密码。

属性行为:
- 支持 如果type设置为"SNMPv3 agent"且snmpv3_securitylevel设置为"authNoPriv"或"authPriv"
snmpv3_authprotocol integer 认证协议。

可能值:
0 - (默认) MD5;
1 - SHA1;
2 - SHA224;
3 - SHA256;
4 - SHA384;
5 - SHA512.

属性行为:
- 支持 如果type设置为"SNMPv3 agent"且snmpv3_securitylevel设置为"authNoPriv"或"authPriv"
snmpv3_contextname string SNMPv3上下文名称。

属性行为:
- 支持 如果type设置为"SNMPv3 agent"
snmpv3_privpassphrase string 隐私密码。

属性行为:
- 支持 如果type设置为"SNMPv3 agent"且snmpv3_securitylevel设置为"authPriv"
snmpv3_privprotocol integer 隐私协议。

可能值:
0 - (默认) DES;
1 - AES128;
2 - AES192;
3 - AES256;
4 - AES192C;
5 - AES256C.

属性行为:
- 支持 如果type设置为"SNMPv3 agent"且snmpv3_securitylevel设置为"authPriv"
snmpv3_securitylevel string 安全级别。

可能值:
0 - noAuthNoPriv;
1 - authNoPriv;
2 - authPriv.

属性行为:
- 支持 如果type设置为"SNMPv3 agent"
snmpv3_securityname string 安全名称。

属性行为:
- 支持 如果type设置为"SNMPv3 agent"
type integer 检查类型。

可能值:
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.

属性行为:
- 必填
uniq integer 是否将此检查用作设备唯一性标准。每个发现规则只能配置一个唯一检查。

可能值:
0 - (默认) 不使用此检查作为唯一性标准;
1 - 使用此检查作为唯一性标准。

属性行为:
- 支持 如果type设置为"Zabbix agent"、"SNMPv1 agent"、"SNMPv2 agent"或"SNMPv3 agent"
host_source integer 主机名的来源。

可能值:
1 - (默认) DNS;
2 - IP;
3 - 此检查的发现值。
name_source integer 可见名称的来源。

可能值:
0 - (默认) 未指定;
1 - DNS;
2 - IP;
3 - 此检查的发现值。
allow_redirect integer 允许ICMP ping目标从不同IP地址响应的情况。

可能值:
0 - (默认) 将重定向响应视为目标主机已关闭(失败);
1 - 将重定向响应视为目标主机已启动(成功)。

属性行为:
- 支持 如果type设置为"ICMP ping"