Uploaded image for project: 'ZABBIX BUGS AND ISSUES'
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-9867

PidFile location in .conf file ignored, can't restart zabbix

    Details

    • Team:
      Team A
    • Sprint:
      Sprint 49 (Feb 2019), Sprint 50 (Mar 2019), Sprint 51 (Apr 2019), Sprint 52 (May 2019), Sprint 53 (Jun 2019), Sprint 54 (Jul 2019)
    • Story Points:
      5

      Description

      It seems that nothing in /usr/lib/systemd/system/zabbix-agent.service is parsing the
      PidFile=/var/run/zabbix/zabbix_agentd.pid
      line from /etc/zabbix/zabbix_agentd.conf so it thinks the PidFile should go in /run, which doesn't exist. Here's and example:

      [root@giles ~]# systemctl status zabbix-agent
      zabbix-agent.service - Zabbix Agent
         Loaded: loaded (/usr/lib/systemd/system/zabbix-agent.service; enabled)
         Active: active (running) since Fri 2015-02-27 16:26:33 EST; 2min 13s ago
        Process: 1540 ExecStart=/usr/sbin/zabbix_agentd -c $CONFFILE (code=exited, status=0/SUCCESS)
       Main PID: 1578 (zabbix_agentd)
         CGroup: /system.slice/zabbix-agent.service
                 ??1578 /usr/sbin/zabbix_agentd -c /etc/zabbix/zabbix_agentd.conf
                 ??1608 /usr/sbin/zabbix_agentd: collector [idle 1 sec]
                 ??1609 /usr/sbin/zabbix_agentd: listener #1 [waiting for connection]
                 ??1610 /usr/sbin/zabbix_agentd: listener #2 [waiting for connection]
                 ??1611 /usr/sbin/zabbix_agentd: listener #3 [waiting for connection]
                 ??1613 /usr/sbin/zabbix_agentd: active checks #1 [idle 1 sec]
                 ??1615 /usr/sbin/zabbix_agentd: active checks #2 [idle 1 sec]
                 ??1620 /usr/sbin/zabbix_agentd: active checks #3 [idle 1 sec]
      
      Feb 27 16:26:33 giles systemd[1]: Starting Zabbix Agent...
      Feb 27 16:26:33 giles systemd[1]: PID file /run/zabbix/zabbix_agentd.pid not readable (yet?) after start.
      Feb 27 16:26:33 giles systemd[1]: Started Zabbix Agent.
      

      Zabbix Server seems to have the same issue of trying to put the PID under /run. This is installed using the official Zabbix repositories.

      [root@giles ~]# systemctl status zabbix-server
      zabbix-server.service - Zabbix Server
         Loaded: loaded (/usr/lib/systemd/system/zabbix-server.service; enabled)
         Active: active (running) since Fri 2015-02-27 16:26:33 EST; 2 days ago
       Main PID: 1566 (zabbix_server)
         CGroup: /system.slice/zabbix-server.service
      
      [trimmed list of processes]
      
      Feb 27 16:26:33 giles systemd[1]: Starting Zabbix Server...
      Feb 27 16:26:33 giles systemd[1]: PID file /run/zabbix/zabbix_server.pid not readable (yet?) after start.
      Feb 27 16:26:33 giles systemd[1]: Started Zabbix Server.
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                vso Vladislavs Sokurenko
                Reporter:
                genebean Gene Liverman
              • Votes:
                13 Vote for this issue
                Watchers:
                37 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: