歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux基礎 >> Linux教程 >> zabbix_agentd.log裡面有出現host [] not found錯誤的解決

zabbix_agentd.log裡面有出現host [] not found錯誤的解決

日期:2017/2/28 14:31:22   编辑:Linux教程

查看zabbix_agentd.log時出現下列錯誤

[[email protected] ~]# tail /var/log/zabbix/zabbix_agentd.log
1266:20140523:063554.157 no active checks on server [127.0.0.1:10051]: host [zabbix.linuxidc.com] not found

出現該錯誤的原因是一般是zabbix_agentd.conf裡面的Hostname和前端zabbix web裡面的配置不一樣所造成的,即在zabbix web頁面Monitoring->Configuration->Hosts 頁面的Name和zabbix_agentd.conf裡面的Hostname要一樣。

解決方法:

1.查看zabbix_agentd.conf文件中的Hostname

[root@bjsd-zabbix-x86v-app01 ~]# cat /etc/zabbix/zabbix_agentd.conf | grep Hostname
### Option: Hostname
# Value is acquired from HostnameItem if undefined.
# Hostname=
Hostname=zabbix.linuxidc.com
### 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服務

[root@zabbix ~]# service zabbix-agent restart
Shutting down Zabbix agent: [ OK ]
Starting Zabbix agent: [ OK ]

4.再次查看日志文件

[root@bjsd-zabbix-x86v-app01 ~]# tail /var/log/zabbix/zabbix_agentd.log
1262:20140523:063900.738 Got signal [signal:15(SIGTERM),sender_pid:2615,sender_uid:0,reason:0]. Exiting ...
1257:20140523:063900.741 Got signal [signal:15(SIGTERM),sender_pid:2615,sender_uid:0,reason:0]. Exiting ...
1257:20140523:063900.762 Zabbix Agent stopped. Zabbix 2.2.3 (revision 44105).
2627:20140523:063900.929 Starting Zabbix Agent [zabbix.linuxidc.com]. 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 [collector]
2630:20140523:063900.943 agent #2 started [listener #2]
2629:20140523:063900.944 agent #1 started [listener #1]
2631:20140523:063900.947 agent #3 started [listener #3]
2632:20140523:063900.948 agent #4 started [active checks #1]

問題解決

安裝部署分布式監控系統Zabbix 2.06 http://www.linuxidc.com/Linux/2013-07/86942.htm

《安裝部署分布式監控系統Zabbix 2.06》 http://www.linuxidc.com/Linux/2013-07/86942.htm

CentOS 6.3下Zabbix安裝部署 http://www.linuxidc.com/Linux/2013-05/83786.htm

Zabbix分布式監控系統實踐 http://www.linuxidc.com/Linux/2013-06/85758.htm

CentOS 6.3下Zabbix監控apache server-status http://www.linuxidc.com/Linux/2013-05/84740.htm

CentOS 6.3下Zabbix監控MySQL數據庫參數 http://www.linuxidc.com/Linux/2013-05/84800.htm

ZABBIX 的詳細介紹:請點這裡
ZABBIX 的下載地址:請點這裡

Copyright © Linux教程網 All Rights Reserved