Package: zabbix-agent Version: 1:6.0.14+dfsg-1+b1 Severity: normal X-Debbugs-Cc: p...@cock.li
Dear Maintainer, When ListenIP= is defined on zabbix_agentd.conf, to bind the agent on a single interface on a multiple interface machine, zabbix-agent will often fail to start as there's a chance the system will not have the IP addresses configured yet. With ListenIP=192.168.144.17 and DebugLevel=4: 677:20230810:090748.461 listener failed: bind() for [[192.168.144.17]:10050] failed: [99] Cannot assign requested address As a fix, we find that zabbix-agent.service has: [Unit] After=network.target After replacing it with: [Unit] After=network-online.target The zabbix agent then starts successfully, as systemd will now wait for the interfaces to have an address before starting the agent. (We use NetworkManager on these machines, not sure if it makes a difference). -- System Information: Debian Release: 12.1 APT prefers stable-updates APT policy: (500, 'stable-updates'), (500, 'stable-security'), (500, 'stable') Architecture: amd64 (x86_64) Kernel: Linux 6.1.0-10-amd64 (SMP w/4 CPU threads; PREEMPT) Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_WARN, TAINT_FIRMWARE_WORKAROUND, TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE Locale: LANG=C, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set Shell: /bin/sh linked to /usr/bin/dash Init: unable to detect Versions of packages zabbix-agent depends on: ii adduser 3.134 ii init-system-helpers 1.65.2 ii libc6 2.36-9+deb12u1 ii libcurl3-gnutls 7.88.1-10+deb12u1 ii libgnutls30 3.7.9-2 ii libldap-2.5-0 2.5.13+dfsg-5 ii libmodbus5 3.1.6-2.1 ii libpcre2-8-0 10.42-1 ii pciutils 1:3.9.0-4 ii sysvinit-utils [lsb-base] 3.06-4 ii ucf 3.0043+nmu1 ii zlib1g 1:1.2.13.dfsg-1 Versions of packages zabbix-agent recommends: ii usbutils 1:014-1 Versions of packages zabbix-agent suggests: pn logrotate <none> -- no debconf information