查看zabbix_agentd.log时出现下列错误
[[email protected] ~]#tail /var/log/zabbix/zabbix_agentd.log 10526:20170506:154012.832 no active checks on server [192.168.1.107:10051]: host [vm1] not found
解决方法:
1.查看zabbix_agentd.conf文件中的Hostname
[[email protected] ~]# cat /etc/zabbix/zabbix_agentd.conf | grep Hostname ### Option: Hostname # Value is acquired from HostnameItem if undefined. # Hostname= Hostname=192.168.1.102 ### 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服务
[[email protected] ~]# service zabbix-agent restart Shutting down Zabbix agent: [ OK ] Starting Zabbix agent: [ OK ]
时间: 2024-12-23 06:32:18