** 今天在玩zabbix監控的時候,在被監控端裝好agent後,添加主機時界面上提示報錯Zabbix agent on jiabao is unreachable for 5 minutes
查看日誌卻發現web
[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端的日誌
成功**session