Ad Widget

Collapse

cannot process incoming connection: read tcp timeout

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • tbala
    Junior Member
    • Jun 2022
    • 5

    #1

    cannot process incoming connection: read tcp timeout

    Hello,

    I am having some issues while setting up a passive Zabbix agent.
    I use on a remote site a Zabbix Dockerized proxy (zabbix/zabbix-proxy-mysql:centos-6.0-latest) with Docker Desktop on Windows server,

    I installed a Zabbix agent version 2 (6.0.4) on a Linux server in passive mode, every 2 min I have a message in the "/var/log/zabbix/zabbix_agent2.log" file:
    Code:
    cannot process incoming connection: read tcp [IP-Agent2]:10050->[IP-Proxy]:50215: i/o timeout
    cannot process incoming connection: read tcp [IP-Agent2]:10050->[IP-Proxy]:50406: i/o timeout
    cannot process incoming connection: read tcp [IP-Agent2]:10050->[IP-Proxy]:50484: i/o timeout
    cannot process incoming connection: read tcp [IP-Agent2]:10050->[IP-Proxy]:64882: i/o timeout

    Do I need to map additional ports on my proxy container?

    Have you encountered this problem before?

    Thanks to the community
  • tbala
    Junior Member
    • Jun 2022
    • 5

    #2
    Hello community,

    Has anyone encountered this problem before?

    To added more information to my problem.
    When there is too much time out, the Zabbix agent is seen by Zabbix serser as unavailable :
    Code:
    Get value from agent failed: cannot connect to [[@IP-Agent2]:10050]: [4] Interrupted system call" then returns to normal a few minutes after.
    Below is the Zabbix passive proxy docker-compose with these custom environment variables:

    docker-compose_v3_centos_mysql_latest.yaml
    Code:
    version: '3.5'
    services:
     zabbix-proxy-mysql:
      image: zabbix/zabbix-proxy-mysql:centos-6.0-latest
      ports:
       - "10051:10051"
      volumes:
       - ./zbx_env/usr/lib/zabbix/externalscripts:/usr/lib/zabbix/externalscripts:ro
       - ./zbx_env/var/lib/zabbix/modules:/var/lib/zabbix/modules:ro
       - ./zbx_env/var/lib/zabbix/enc:/var/lib/zabbix/enc:ro
       - ./zbx_env/var/lib/zabbix/ssh_keys:/var/lib/zabbix/ssh_keys:ro
       - ./zbx_env/var/lib/zabbix/mibs:/var/lib/zabbix/mibs:ro
       - snmptraps:/var/lib/zabbix/snmptraps:rw
      ulimits:
       nproc: 65535
       nofile:
        soft: 20000
        hard: 40000
      deploy:
       resources:
        limits:
          cpus: '0.70'
          memory: 1024M
        reservations:
          cpus: '0.3'
          memory: 512M
      env_file:
       - ./env_vars/.env_db_mysql_proxy
       - ./env_vars/.env_prx
       - ./env_vars/.env_prx_mysql
      depends_on:
       - mysql-server
       - zabbix-snmptraps
      secrets:
       - MYSQL_USER
       - MYSQL_PASSWORD
       - MYSQL_ROOT_USER
       - MYSQL_ROOT_PASSWORD
      networks:
       zbx_net_backend:
        aliases:
         - zabbix-proxy-mysql
         - zabbix-proxy-centos-mysql
         - zabbix-proxy-mysql-centos
       zbx_net_frontend:
      stop_grace_period: 30s
      restart: always
    .env_prx:
    Code:
    ZBX_PROXYMODE=1
    ZBX_SERVER_HOST=@IP-Zabbix_server
    ZBX_STARTPOLLERS=200
    ZBX_STARTPOLLERSUNREACHABLE=100
    ZBX_STARTPINGERS=20
    ZBX_STARTDISCOVERERS=30
    ZBX_STARTHTTPPOLLERS=10
    ZBX_CACHESIZE=128M
    ZBX_STARTDBSYNCERS=30
    ZBX_HISTORYCACHESIZE=64M
    ZBX_HISTORYINDEXCACHESIZE=64M
    ZBX_TIMEOUT=10
    ZBX_TLSCONNECT=psk
    ZBX_TLSACCEPT=psk
    ZBX_TLSPSKIDENTITY="PSK ID 001 Zabbix agentd"
    ZBX_TLSPSKFILE="zabbix_proxy.psk"
    And below is the configuration of the Linux server's zabbix_agent2.conf:

    zabbix_agent2.conf
    Code:
    PidFile=/var/run/zabbix/zabbix_agent2.pid
    LogFile=/var/log/zabbix/zabbix_agent2.log
    LogFileSize=0
    Server=@IP-Zabbix_Proxy
    ServerActive=@IP-Zabbix_Proxy
    Hostname=LINUX-SRV
    ControlSocket=/tmp/agent.sock
    Include=./zabbix_agent2.d/plugins.d/*.conf
    Thanks a lot for your help,
    Last edited by tbala; 02-08-2022, 18:41.

    Comment

    • busk
      Junior Member
      • Jul 2020
      • 4

      #3
      Any luck on this? I'm having same issues like this and it is a real PITA. Logs are not helpful. Looking at server issues. You may want to try and eliminate errors that appear in zabbix-server logs. Restart of all zabbix services and database may have helped but not sure. Hopefully we figure this out in the next couple of weeks.

      Comment

      Working...