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

Provide systemd override for file descriptors with server packages

XMLWordPrintable

    • Icon: Problem report Problem report
    • Resolution: Unresolved
    • Icon: Major Major
    • 7.0.4rc1, 7.2.0alpha1 (master)
    • 7.0.0
    • Packages (C)
    • None
    • Debian 12.6
      Postgresql 16.3-1
      TimescaleDB 2.14.2
    • Sprint candidates

      Steps to reproduce:

      • Install Zabbix Server 7.0.0 on Postgresql according to documentation and setup TimescaleDB.
      • Increase the limit of open file descriptors to any number
        root@debian12:~# cat /etc/security/limits.d/zabbix.conf
        zabbix soft nofile 102400
        zabbix hard nofile 102400
        
      • Restart zabbix-server service

      Result:

      root@debian12:~# tail -n100 /var/log/zabbix/zabbix_server.log
      17500:20240704:104341.065 Starting Zabbix Server. Zabbix 7.0.0 (revision 49955f1fb5c).
      17500:20240704:104341.065 ****** Enabled features ******
      17500:20240704:104341.065 SNMP monitoring: YES
      17500:20240704:104341.065 IPMI monitoring: YES
      17500:20240704:104341.065 Web monitoring: YES
      17500:20240704:104341.065 VMware monitoring: YES
      17500:20240704:104341.065 SMTP authentication: YES
      17500:20240704:104341.065 ODBC: YES
      17500:20240704:104341.065 SSH support: YES
      17500:20240704:104341.065 IPv6 support: YES
      17500:20240704:104341.065 TLS support: YES
      17500:20240704:104341.065 ******************************
      17500:20240704:104341.065 using configuration file: /etc/zabbix/zabbix_server.conf
      17500:20240704:104341.120 current database version (mandatory/optional): 07000000/07000000
      17500:20240704:104341.120 required mandatory version: 07000000
      17511:20240704:104341.173 starting HA manager
      17511:20240704:104341.189 HA manager started in active mode
      17500:20240704:104341.189 server #0 started [main process]
      17513:20240704:104341.190 server #1 started service manager #1
      17514:20240704:104341.190 server #2 started configuration syncer #1
      17518:20240704:104341.275 server #3 started alert manager #1
      17519:20240704:104341.275 server #4 started alerter #1
      17520:20240704:104341.275 server #5 started alerter #2
      17522:20240704:104341.275 server #6 started alerter #3
      17523:20240704:104341.276 server #7 started preprocessing manager #1
      17524:20240704:104341.276 server #8 started lld manager #1
      17525:20240704:104341.276 server #9 started lld worker #1
      17529:20240704:104341.277 server #13 started http poller #1
      17532:20240704:104341.277 server #15 started discovery manager #1
      17523:20240704:104341.278 [2] thread started preprocessing worker #2
      17523:20240704:104341.278 [1] thread started preprocessing worker #1
      17536:20240704:104341.279 server #18 started history syncer #3
      17538:20240704:104341.280 server #20 started escalator #1
      17526:20240704:104341.281 server #10 started lld worker #2
      17550:20240704:104341.281 server #28 started poller #5
      17528:20240704:104341.282 server #12 started timer #1
      17557:20240704:104341.282 server #34 started trapper #5
      17544:20240704:104341.283 server #22 started self-monitoring #1
      17545:20240704:104341.283 server #23 started task manager #1
      17548:20240704:104341.283 server #26 started poller #3
      17540:20240704:104341.284 server #21 started proxy poller #1
      17535:20240704:104341.285 server #17 started history syncer #2
      17534:20240704:104341.285 server #16 started history syncer #1
      17549:20240704:104341.285 server #27 started poller #4
      17546:20240704:104341.286 server #24 started poller #1
      17537:20240704:104341.286 server #19 started history syncer #4
      17547:20240704:104341.287 server #25 started poller #2
      17559:20240704:104341.287 server #35 started icmp pinger #1
      17555:20240704:104341.287 server #32 started trapper #3
      17563:20240704:104341.287 server #38 started history poller #2
      17531:20240704:104341.288 server #14 started browser poller #1
      17568:20240704:104341.288 server #43 started trigger housekeeper #1
      17553:20240704:104341.289 server #30 started trapper #1
      17560:20240704:104341.289 server #36 started alert syncer #1
      17561:20240704:104341.290 server #37 started history poller #1
      17554:20240704:104341.290 server #31 started trapper #2
      17566:20240704:104341.291 server #41 started history poller #5
      17570:20240704:104341.292 server #44 started odbc poller #1
      17523:20240704:104341.296 [3] thread started preprocessing worker #3
      17576:20240704:104341.298 server #45 started http agent poller #1
      17577:20240704:104341.298 server #46 started agent poller #1
      17552:20240704:104341.299 server #29 started unreachable poller #1
      17578:20240704:104341.299 server #47 started snmp poller #1
      17579:20240704:104341.299 server #48 started configuration syncer worker #1
      17567:20240704:104341.300 server #42 started availability manager #1
      17581:20240704:104341.300 server #49 started internal poller #1
      17527:20240704:104341.301 server #11 started housekeeper #1
      17576:20240704:104341.301 thread started
      17577:20240704:104341.301 thread started
      17556:20240704:104341.304 server #33 started trapper #4
      17564:20240704:104341.305 server #39 started history poller #3
      17565:20240704:104341.306 server #40 started history poller #4
      17582:20240704:104341.307 server #50 started proxy group manager #1
      17532:20240704:104341.317 for a discovery process with 5 workers, the user limit of 1024 file descriptors is insufficient. The maximum number of concurrent checks per worker has been reduced to 122
      17578:20240704:104341.327 thread started
      17532:20240704:104341.335 thread started discovery worker #3
      17532:20240704:104341.336 thread started discovery worker #2
      17532:20240704:104341.339 thread started discovery worker #1
      17532:20240704:104341.339 thread started discovery worker #4
      17532:20240704:104341.339 thread started discovery worker #5

      Expected:
      I expect no complaints about open file descriptors by zabbix:

      17532:20240704:104341.317 for a discovery process with 5 workers, the user limit of 1024 file descriptors is insufficient. The maximum number of concurrent checks per worker has been reduced to 122
      

      And I also expect zabbix to see the correct number of open file descriptors limit:

      root@debian12:/# sudo -u zabbix bash
      zabbix@debian12:/$ ulimit -Hn
      102400
      zabbix@debian12:/$ ulimit -Sn
      102400

            yurii Jurijs Klopovskis
            dimitri.bellini Dimitri Bellini
            Team I
            Votes:
            2 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated: