码迷,mamicode.com
首页 > 其他好文 > 详细

zabbix添加主机时最常见的报错

时间:2019-03-08 15:15:26      阅读:236      评论:0      收藏:0      [点我收藏+]

标签:监控   c11   图片   51cto   use   识别   serve   无法   active   

** 今天在玩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添加主机时最常见的报错

标签:监控   c11   图片   51cto   use   识别   serve   无法   active   

原文地址:https://blog.51cto.com/14101466/2360100

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!