Sidebar

2022 Zabbix中国峰会
2022 Zabbix中国峰会

3 附加操作

3 Additional operations

概述

Overview

在本章节,你可以从additional operations中找到发现/自动注册事件一些详细信息。

In this section you may find some details of additional operations for discovery/auto-registration events.

添加主机
Adding host

主机在发现过程中被添加,而不是发现过程结束。

Hosts are added during the discovery process, as soon as a host is discovered, rather than at the end of the discovery process.

<note tip>当初期配置了较多的主机/服务时,网络发现可能需要一些时间,建议您耐心等待或配置调整合理IP地址范围。 :::

As network discovery can take some time due to many unavailable hosts/services having patience and using reasonable IP ranges is advisable.

添加主机时,其名称由标准** gethostbyname **函数决定。如果可以解析主机,则使用解析名称。如果没有,则使用IP地址。此外,如果IPv6地址必须用于主机名,则所有“:”(冒号)将被替换为“_”(下划线),因为主机名中不允许冒号。

When adding a host, its name is decided by the standard gethostbyname function. If the host can be resolved, resolved name is used. If not, the IP address is used. Besides, if IPv6 address must be used for a host name, then all ":" (colons) are replaced by "_" (underscores), since colons are not allowed in host names.

<note important>如果执行代理发现,当前主机名查找仍然发生在Zabbix服务器上。 :::

If performing discovery by a proxy, currently hostname lookup still takes place on Zabbix server.

<note important>如果一个主机已经存在于与新发现的Zabbix配置中相同名称的主机上,1.8之前的Zabbix版本将添加具有相同名称的另一个主机。Zabbix 1.8.1和更高版本将** _ N 添加到主机名,其中 N **是增加数字,从2开始。 :::

If a host already exists in Zabbix configuration with the same name as a newly discovered one, versions of Zabbix prior to 1.8 would add another host with the same name. Zabbix 1.8.1 and later adds _N to the hostname, where N is increasing number, starting with 2.