Uploaded image for project: 'ZABBIX FEATURE REQUESTS'
  1. ZABBIX FEATURE REQUESTS
  2. ZBXNEXT-4428

internal logic of SNMP bulk processing

XMLWordPrintable

    • Team A
    • Sprint 92 (Sep 2022), Sprint 93 (Oct 2022), Sprint 94 (Nov 2022), Sprint 95 (Dec 2022), Sprint 96 (Jan 2023)
    • 4

      I would like to ask for improvements in bulk processing of SNMP packets. I know how internally it works (https://www.zabbix.com/documentation/3.4/manual/config/items/itemtypes/snmp#internal_workings_of_bulk_processing) but this isn't working well in my environment.

      I'm trying to LLD with big Cisco ASR9k router which contain thousands of interfaces.

      From command line:
      $ snmpbulkwalk -mall -v2c -c community router.net ifName
      I'm able to get all 2k+interfaces within few seconds. Net-SNMP by default using max-repeaters 10. Playing with switch -Cr<NUM> getting better result when <NUM> is bigger, for example 100, it's still possible to get response in one packet.

      But, Zabbix using their own logic. Started slowly using low max_vars in function zbx_snmp_walk (zabbix_server/poller/checks_snmp.c) and then after some succesfuly retrieved responses increase max_vars. According to tcpdump, in my case it reached max. 15, then SNMP daemon started responding slowly (maybe because of previous small requests), then Zabbix decrease max_vars which is even worse and whole LLD failed.
      Global timeout in poller configuration is at max.30s which is also not very good.

      Disable of bulk processing for this device is no-go, because snmpwalk over ifName tree tooks ~2m30s (thousands interfaces)..

      So, what I like to expect is - having some possibility of fine tunning SNMP bulk processing.

      Suggestions:

      • ability to disable dynamic change max-repeaters
      • have possibility to define static value for max-repeaters (fine tunning for response)
      • implement it at same user interface when disabling bulk request is possible
      • global config parameter for zabbix_server

      Please, take a look on it. Thanks

        1. image-2022-12-05-10-59-09-754.png
          19 kB
          Alexander Shubin
        2. image-2022-12-05-11-18-04-592.png
          26 kB
          Alexander Shubin
        3. image-2022-12-16-10-53-31-391.png
          75 kB
          Dmitrijs Goloscapovs
        4. snmp_info.diff
          6 kB
          Andris Zeila
        5. template_internal_snmp_info.xml
          4 kB
          Andris Zeila
        6. template_module_interfaces_snmp.xml
          72 kB
          Andris Zeila
        7. template_snmp_network.xml
          3 kB
          Andris Zeila
        8. zabbix_server_07-12-2022.log
          375 kB
          Andrejs Zazuks
        9. zabbix_server_D5-14-2022.log
          5.26 MB
          Andrejs Zazuks
        10. zabbix_server_D5-3_14-12-22.log
          5.14 MB
          Andrejs Zazuks
        11. zbx_export_hosts_07-12-2022.yaml
          5 kB
          Andrejs Zazuks

            dgoloscapov Dmitrijs Goloscapovs
            phuture Tibor Pittich
            Team A
            Votes:
            20 Vote for this issue
            Watchers:
            35 Start watching this issue

              Created:
              Updated:
              Resolved: