Skip to content

zabbix-agent 2 issue: failed to process an incoming connection from ...: EOF #1439

@LovingFox

Description

@LovingFox

Connection between server and agent constantly become failed.
Zabbix-Server 7.0.0 is setup without docker, zabbix-agent 2 in the remote host works in docker.

There are not any errors if I use zabbix-agent 1 in docker.

Logs
1.2.3.4 is a server IP
my_host is a name of the agent at the remote host

Agent logs:

docker logs -f zabbix-agent
2024/06/23 06:40:09.166575 failed to process an incoming connection from 1.2.3.4: EOF
2024/06/23 06:40:09.173052 failed to process an incoming connection from 1.2.3.4: EOF
2024/06/23 06:40:09.177321 failed to process an incoming connection from 1.2.3.4: EOF
2024/06/23 06:40:09.184596 failed to process an incoming connection from 1.2.3.4: EOF
2024/06/23 06:40:09.188862 failed to process an incoming connection from 1.2.3.4: EOF
2024/06/23 06:40:09.192093 failed to process an incoming connection from 1.2.3.4: EOF
2024/06/23 06:40:09.195868 failed to process an incoming connection from 1.2.3.4: EOF
2024/06/23 06:40:09.200036 failed to process an incoming connection from 1.2.3.4: EOF
2024/06/23 06:40:09.204127 failed to process an incoming connection from 1.2.3.4: EOF
2024/06/23 06:40:09.208074 failed to process an incoming connection from 1.2.3.4: EOF

Server logs the same time:

tail -f /var/log/zabbix/zabbix_server.log
110655:20240623:063913.001 resuming Zabbix agent checks on host "my_host": connection restored
110655:20240623:063921.045 Zabbix agent item "system.cpu.util[,nice]" on host "my_host" failed: first network error, wait for 15 seconds
110655:20240623:063937.147 resuming Zabbix agent checks on host "my_host": connection restored
110655:20240623:063945.018 Zabbix agent item "system.cpu.util[,guest]" on host "my_host" failed: first network error, wait for 15 seconds
110655:20240623:064001.004 resuming Zabbix agent checks on host "my_host": connection restored
110655:20240623:064009.009 Zabbix agent item "vfs.fs.size[/etc/zabbix/agent.pass,pfree]" on host "my_host" failed: first network error, wait for 15 seconds
110655:20240623:064024.973 resuming Zabbix agent checks on host "my_host": connection restored
110655:20240623:064028.247 Zabbix agent item "system.cpu.util[,idle]" on host "my_host" failed: first network error, wait for 15 seconds


Versions

Server:

$ /usr/sbin/zabbix_server --version
zabbix_server (Zabbix) 7.0.0
Revision 49955f1fb5c 3 June 2024, compilation time: Jun  3 2024 05:55:33

Copyright (C) 2024 Zabbix SIA
License AGPLv3: GNU Affero General Public License version 3 <https://www.gnu.org/licenses/>.
This is free software: you are free to change and redistribute it according to
the license. There is NO WARRANTY, to the extent permitted by law.

This product includes software developed by the OpenSSL Project
for use in the OpenSSL Toolkit (http://www.openssl.org/).

Compiled with OpenSSL 3.0.9 30 May 2023
Running with OpenSSL 3.0.11 19 Sep 2023

Agent:

sudo docker pull zabbix/zabbix-agent2:ubuntu-7.0.0

Configs:

Server:

$ sudo cat /etc/zabbix/zabbix_server.conf | grep -v -E "^#|^$"
LogFile=/var/log/zabbix/zabbix_server.log
LogFileSize=0
PidFile=/run/zabbix/zabbix_server.pid
SocketDir=/run/zabbix
DBHost=localhost
DBName=zabbix
DBUser=zabbix
DBPassword=......
DBSocket=/run/mysqld/mysqld.sock
SNMPTrapperFile=/var/log/snmptrap/snmptrap.log
Timeout=4
FpingLocation=/usr/bin/fping
Fping6Location=/usr/bin/fping6
LogSlowQueries=3000
StatsAllowedIP=127.0.0.1
EnableGlobalScripts=0

Agent:

sudo docker run --name zabbix-agent \
  --restart unless-stopped \
  --net=host --pid=host \
  -v /etc/localtime:/etc/localtime:ro \
  -v /var/run/docker.sock:/var/run/docker.sock \
  -v /etc/zabbix/agent.pass:/etc/zabbix/agent.pass \
  --privileged --restart=always --init \
  --env ZBX_SERVER_HOST=1.2.3.4 \
  --env ZBX_TLSCONNECT=psk \
  --env ZBX_TLSACCEPT=psk \
  --env ZBX_TLSPSKIDENTITY=my_host \
  --env ZBX_TLSPSKFILE=/etc/zabbix/agent.pass \
  --env ZBX_ACTIVE_ALLOW=false \
  -d zabbix/zabbix-agent2:ubuntu-7.0.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions