zoukankan      html  css  js  c++  java
  • zabbix3.4.8中提示host [4gronghe_110] not found

     

    查看zabbix_agentd.log时出现下列错误

    [root@4gronghe_110 ~]# tail /var/log/zabbix/zabbix_agentd.log 
    1266:20140523:063554.157 no active checks on server [127.0.0.1:10051]: host [4gronghe_110] not found

    出现该错误的原因是一般是zabbix_agentd.conf里面的Hostname和前端zabbix web里面的配置不一样所造成的,即在zabbix web页面Monitoring->Configuration->Hosts 页面的Name和zabbix_agentd.conf里面的Hostname要一样。 

    解决方法:

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

    [root@zabbixsrv ~]# cat /etc/zabbix/zabbix_agentd.conf | grep Hostname
    ### Option: Hostname
    # Value is acquired from HostnameItem if undefined.
    # Hostname=
    Hostname=4gronghe_110
    ### 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@zabbixsrv ~]# 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 [4gronghe_110]. 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]

    问题解决!

    本章完,个人经验记录,仅供参考!

    白驹过隙,当看到比你优秀的人比你还努力的时候,你也会越来越优秀,相信越努力越幸运!

  • 相关阅读:
    HDU-1240 Asteroids! (BFS)这里是一个三维空间,用一个6*3二维数组储存6个不同方向
    HDU-1026 Ignatius and the Princess I(BFS) 带路径的广搜
    HDU-1700 Points on Cycle
    HDU-4515 小Q系列故事——世界上最遥远的距离
    Star
    HDOJ5441(图论中的并查集)
    HDOJ5438(图的各个连通分量遍历)
    HDOJ5044(最近公共祖先)
    C++输入输出知识
    JAVAmap容器基本使用
  • 原文地址:https://www.cnblogs.com/knownfreestyle/p/11383696.html
Copyright © 2011-2022 走看看