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

zabbix_agent2 crashes when hitting the open file descriptor limit

XMLWordPrintable

    • Icon: Problem report Problem report
    • Resolution: Fixed
    • Icon: Critical Critical
    • 6.0.12, 6.2.6, 6.4.0beta4
    • Agent (G)
    • RHEL 8.7
      LTS 6.0
      PgSQL 14.6
      TSDB 2.8.1
      OpenSSL 1.1.1 series
      Agent2 6.0.14
    • Sprint 96 (Jan 2023)
    • 1

      Steps to reproduce:

      1. Follow: https://git.zabbix.com/projects/ZBX/repos/zabbix/browse/templates/db/postgresql_agent2/README.md?at=refs%2Fheads%2Frelease%2F6.2
      2. Modify with mass update all Zabbix Agent items to Zabbix Agent (Active) items;

      Result:
      Problem 1: open file limit, default for unit file of systemd slice is 1024 with to weird error i nthe log of the agent:

      2022/12/09 11:58:45.245630 failed to read response for plugin PostgreSQL, failed to read type header, EOF
      

      Problem 2: Zabbix Agent just keeps crashing with another weird error:

      2022/12/09 12:25:04.260087 failed to clean up after plugins, operation not permitted
      

      And if try to start back manually:

      # zabbix_agent2 -c /etc/zabbix/zabbix_agent2.conf 
      Starting Zabbix Agent 2 (6.0.12)
      Zabbix Agent2 hostname: [Zabbix server]
      Press Ctrl+C to exit.
      panic: failed to obtain PID of dead child process: no child processes
      
      goroutine 12 [running]:
      main.listenOnPluginFail(0x0, {0xc0001798f0, 0x7})
          /tmp/build-rhel-8-x86_64.H7NajgV0/buildroot/BUILD/zabbix-6.0.12/src/go/cmd/zabbix_agent2/external_nix.go:96 +0x168
      created by main.initExternalPlugin
          /tmp/build-rhel-8-x86_64.H7NajgV0/buildroot/BUILD/zabbix-6.0.12/src/go/cmd/zabbix_agent2/external.go:94 +0x115
      
      

      And all the building process path traceback for official packages:

          /tmp/build-rhel-8-x86_64.H7NajgV0/buildroot/BUILD/zabbix-6.0.12/src/go/cmd/zabbix_agent2/
      

      Expected:
      No open file limit or at least information in the documentation - Active check will require N file descriptors for X connections or X databases.

      No crash, if Zabbix Agent (Active) is used for common items of the official template.

            esneiders Eriks Sneiders
            edgar.akhmetshin Edgar Akhmetshin
            Team INT
            Votes:
            2 Vote for this issue
            Watchers:
            12 Start watching this issue

              Created:
              Updated:
              Resolved: