poor systemd integration

XMLWordPrintable

    • Type: Problem report
    • Resolution: Duplicate
    • Priority: Trivial
    • None
    • Affects Version/s: 6.0.1
    • Component/s: Agent (G), Proxy (P), Server (S)
    • None
    • Environment:
      Debian 11, amd64

      After a fresh installation of server, proxy or agent systemd complains about an unexpected PID, e.g. for zabbix-agent:

      * zabbix-agent.service - Zabbix Agent
           Loaded: loaded (/lib/systemd/system/zabbix-agent.service; enabled; vendor preset: enabled)
           Active: active (running) since Mon 2022-03-14 07:00:25 CET; 11min ago
          Process: 2572241 ExecStart=/usr/sbin/zabbix_agentd -c $CONFFILE (code=exited, status=0/SUCCESS)
         Main PID: 2572243 (zabbix_agentd)
            Tasks: 6 (limit: 9451)
           Memory: 4.5M
              CPU: 1.390s
           CGroup: /system.slice/zabbix-agent.service
                   |-2572243 /usr/sbin/zabbix_agentd -c /etc/zabbix/zabbix_agentd.conf
                   |-2572244 /usr/sbin/zabbix_agentd: collector [idle 1 sec]
                   |-2572245 /usr/sbin/zabbix_agentd: listener #1 [waiting for connection]
                   |-2572246 /usr/sbin/zabbix_agentd: listener #2 [waiting for connection]
                   |-2572247 /usr/sbin/zabbix_agentd: listener #3 [waiting for connection]
                   `-2572248 /usr/sbin/zabbix_agentd: active checks #1 [idle 1 sec]
      
      Mar 14 07:00:25 il06.example.com systemd[1]: Starting Zabbix Agent...
      Mar 14 07:00:25 il06.example.com systemd[1]: zabbix-agent.service: Supervising process 2572243 which is not our child. We'll most likely not notice when it exits.
      Mar 14 07:00:25 il06.example.com systemd[1]: Started Zabbix Agent.
      

      This is one additional warning per host. Should be easy to fix.

            Assignee:
            Zabbix Support Team
            Reporter:
            Harri
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: