shanghaipc 发表于 2019-1-21 09:49:53

zabbix_agentd.log里面有出现host [] not found错误的解决

  查看zabbix_agentd.log时出现下列错误
  # tail /var/log/zabbix/zabbix_agentd.log
1266:20140523:063554.157 no active checks on server : host not found
  出现该错误的原因是一般是zabbix_agentd.conf里面的Hostname和前端zabbix web里面的配置不一样所造成的,即在zabbix web页面Monitoring->Configuration->Hosts 页面的Name和zabbix_agentd.conf里面的Hostname要一样。
  解决方法:
  1.查看zabbix_agentd.conf文件中的Hostname
  # cat /etc/zabbix/zabbix_agentd.conf | grep Hostname
### Option: Hostname
# Value is acquired from HostnameItem if undefined.
# Hostname=
Hostname=zabbix.clvn.com.cn
### Option: HostnameItem
# Item used for generating Hostname if it is undefined. Ignored if Hostname is defined.
# HostnameItem=system.hostname
# Aliases can be used in HostMetadataItem but not in HostnameItem parameters.
  2.在zabbix web页面Monitoring->Configuration->Hosts 页面更改Host name和zabbix_agentd.conf里面的Hostname一样。
  3.重新启动zabbix-agent服务
  # service zabbix-agent restart
Shutting down Zabbix agent:                              
Starting Zabbix agent:                                          
  4.再次查看日志文件
  # tail /var/log/zabbix/zabbix_agentd.log
1262:20140523:063900.738 Got signal . Exiting ...
1257:20140523:063900.741 Got signal . Exiting ...
1257:20140523:063900.762 Zabbix Agent stopped. Zabbix 2.2.3 (revision 44105).
2627:20140523:063900.929 Starting Zabbix Agent . Zabbix 2.2.3 (revision 44105).
2627:20140523:063900.929 using configuration file: /etc/zabbix/zabbix_agentd.conf
2628:20140523:063900.941 agent #0 started
2630:20140523:063900.943 agent #2 started
2629:20140523:063900.944 agent #1 started
2631:20140523:063900.947 agent #3 started
2632:20140523:063900.948 agent #4 started
  问题解决



页: [1]
查看完整版本: zabbix_agentd.log里面有出现host [] not found错误的解决