1. 程式人生 > >zabbix添加主機時最常見的報錯

zabbix添加主機時最常見的報錯

root house process pro ima c51 oss 添加 items

** 今天在玩zabbix監控的時候,在被監控端裝好agent後,添加主機時界面上提示報錯
Zabbix agent on jiabao is unreachable for 5 minutes
查看日誌卻發現

[root@localhost tmp]# tail -f zabbix_server.log 
 26115:20190307:235549.064 cannot send list of active checks to "192.168.1.150": host [localhost] not found
 26120:20190307:235715.010 executing housekeeper
 26120:20190307:235715.015 housekeeper [deleted 0 hist/trends, 0 items, 0 events, 0 problems, 0 sessions, 0 alarms, 0 audit items in 0.003076 sec, idle for 1 hour(s)]
 26115:20190307:235749.195 cannot send list of active checks to "192.168.1.150": host [localhost] not found
 26115:20190307:235949.324 cannot send list of active checks to "192.168.1.150": host [localhost] not found
 26115:20190308:000149.455 cannot send list of active checks to "192.168.1.150": host [localhost] not found
 26115:20190308:000349.587 cannot send list of active checks to "192.168.1.150": host [localhost] not found
 26115:20190308:000549.719 cannot send list of active checks to "192.168.1.150": host [localhost] not found
 26115:20190308:000749.846 cannot send list of active checks to "192.168.1.150": host [localhost] not found
 26115:20190308:000941.617 cannot send list of active checks to "192.168.1.150": host [localhost] not found
 26117:20190308:001141.741 cannot send list of active checks to "192.168.1.150": host [localhost] not found
 26117:20190308:001341.873 cannot send list of active checks to "192.168.1.150": host [localhost] not found
 26117:20190308:001542.001 cannot send list of active checks to "192.168.1.150": host [localhost] not found
於是我就查看agent端的配置文件發現hostname字段

技術分享圖片
web界面上技術分享圖片
不一致,因此出現了主機名識別不了導致無法連接,必須保證二者必須一致才可以
更改之後查看server端的日誌
技術分享圖片
技術分享圖片
成功**

zabbix添加主機時最常見的報錯