• zabbix-agent 客户端重启失败,提示如下错误

    # sudo systemctl restart zabbix-agent

    Can‘t open PID file /run/zabbix/zabbix_agentd.pid (yet?) after start-post: No such file or directory

    动态

    解决方案,重新配置zabbix-agent.conf配置文件

    1. 在/run/zabbix 目录手动创建一个pid文件

    # cd /run/zabbix && sudo vim zabbix_agentd.pid

    # sudo chmod 777 zabbix_agentd.pid

     

    2. 修改将PidFile 路径

    # vim /etc/zabbix/zabbix_agentd.conf

    将PidFile 路径改为/var/run/zabbix/zabbix_agentd.pid

    #PidFile=/var/run/zabbix/zabbix_agent.pid

    PidFile=/var/run/zabbix/zabbix_agentd.pid

    LogFile=/var/log/zabbix-agent/zabbix_agentd.log

    LogFileSize=0

     

    3. 重启zabbix-agent

    #sudo systemctl restart zabbix-agent

    #systemctl status zabbix-agent

    动态

     

     

WirelessLink
Logo