前提
(1) /etc/hosts 文件如下
[root@testdb ~]# cat /etc/hosts
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
192.168.56.56 testdb
 
(2)zabbix 已经添加了一个主机名字叫做 “ testdb ”
 
 
结论:
1. 如果 /etc/zabbix/zabbix_agentd.conf 文件的 Hostname=192.168.56.56 ,则zabbix会自动添加一个叫 “192.168.56.56” 的主机名。
2. 如果 /etc/zabbix/zabbix_agentd.conf 文件的 Hostname=testdb ,则zabbix不会自动添加一个叫 “ 192.168.56.56” 的主机名。

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-01-16
  • 2021-10-12
  • 2022-02-21
猜你喜欢
  • 2022-01-27
  • 2021-09-06
  • 2022-12-23
  • 2022-03-03
  • 2021-05-26
  • 2021-06-21
  • 2021-09-16
相关资源
相似解决方案