zoukankan      html  css  js  c++  java
  • zabbix_agentd 报错

    1

    cannot open PID file [/tmp/zabbix_agentd.pid]: [13] Permission denied 权限拒绝 很直观就是权限的问题

    我的问题是这样的,这个pid文件是我安装了两个zabbix 之前一个生成的pid 直接删除pid 搞定

    2 no active checks on server [127.0.0.1:10051]: host [0022] not found
    21270:20170226:112109.911 failed to accept an incoming connection: connection from "192.168.199.222" rejected, allowed hosts: "127.0.0.1"

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

    解决方法:

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

    # cat zabbix_agentd.conf | grep Hostname
    ### Option: Hostname
    # Value is acquired from HostnameItem if undefined.
    # Hostname=
    Hostname=127.0.0.1
    ### 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.


    # 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服务

    ps -ef | grep zabbix_agentd |grep -v grep xargs -i{} kill -9 {}    && ../sbin/zabbix_agentd 

    4.再次查看日志文件

    tail -f /tmp/zabbix_agentd.log
    21686:20170226:113106.324 IPv6 support: NO
    21686:20170226:113106.324 TLS support: NO
    21686:20170226:113106.324 **************************
    21686:20170226:113106.324 using configuration file: /opt/soft/zabbix/etc/zabbix_agentd.conf
    21686:20170226:113106.324 agent #0 started [main process]
    21689:20170226:113106.326 agent #3 started [listener #2]
    21688:20170226:113106.326 agent #2 started [listener #1]
    21690:20170226:113106.326 agent #4 started [listener #3]
    21691:20170226:113106.327 agent #5 started [active checks #1]
    21687:20170226:113106.327 agent #1 started [collector]

    问题解决

    改行去放羊
  • 相关阅读:
    软件工程实践 2017 第二次作业(部分)
    2017 软件工程实践第一次作业-031502627
    struct与class区别联系(转)
    个人作业——软件工程实践总结作业
    个人作业——软件产品案例分析
    个人技术博客(α)
    结对作业2
    软工作业2
    软工作业1
    作业7 学期总结
  • 原文地址:https://www.cnblogs.com/musen/p/6443996.html
Copyright © 2011-2022 走看看