2024/07/03

Zabbix Agent2 注意 Hostname 設定值

 Zabbix 的被監控端,可以使用 Passive 與 Active 的方式與 Zabbix Server 溝通,使用 Active 的方式,除了需設定對的 ServerActive 指向到 zabbix server IP 外還需要注意....

zabbix agent2 的設定值 /etc/zabbix/zabbix_agent2.conf  或 C:\Program Files\Zabbix Agent 2\zabbix_agent2.conf

與 Server Active 有兩個地方有關

1. ServerActive 指向到 zabbix server IP
例如:ServerActive=10.1.2.3

2.  Hostname  <-- 這點很容易沒注意到,

在 zabbix agent 中所設定的 Hostname 名稱必須等於 Zabbix Server 的 Host 中加入的名稱一致,才能正確接收

例如:原本給的名稱是 TW-FileServ-50,在 zabbix server 中為了一致化把它改成 TW FileServ-50 .... 會因為只是少一個【-】就會失敗。

因為是 Active 所以必須一致。

沒有留言:

張貼留言

Ubuntu 如何查看及變更時區 TimeZone

使用指令 timedatectl 查看目前 ubuntu 的時區設定 $ timedatectl 列出所有 Asia 的時區 $ timedatectl list-timezones | grep Asia 變更時區為 Asia/Taipei $ sudo timedatectl...