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

Item test should limit the returned value to a certain amount of data

XMLWordPrintable

    • Sprint 104 (Sep 2023), Sprint 105 (Oct 2023), Sprint 106 (Nov 2023), Sprint 107 (Dec 2023), S2401, S24-W6/7, S24-W8/9, S24-W10/11, S24-W12/13, S24-W14/15, S24-W16/17, S24-W18/19, S24-W20/21, S24-W22/23
    • 1

      After implementation of ZBXNEXT-6554 some items that use external commands or return file contents ( line vfs.file.contents, system.sw.packaget and system.sw.packages.get) return up to 16 Mb of data (system.sw.packages.get - up to 32 Mb).
      Currently Item test functionality returns the whole value that is returned by the metric, which is then used to test all of the preprocessing steps. In case of such huge values this will drain PHP allocated memory which will eventually result in internal system error (500 error).

      The amount of data that is retrieved by item test should be limited to a value that will not cause such memory issues (like 512 Kb for example).

        1. zbx_export_hosts-2.yaml
          0.8 kB
          Vladislavs Sokurenko
        2. screenshot-1.png
          25 kB
          Janis Freibergs
        3. out.dat_2
          575 kB
          Artjoms Rimdjonoks
        4. NO_TRUNC_MESSAGE.jpg
          168 kB
          Artjoms Rimdjonoks
        5. image-2023-10-26-11-03-21-596.png
          43 kB
          Janis Freibergs
        6. image-2023-10-26-09-58-09-267.png
          17 kB
          Janis Freibergs
        7. image-2023-10-26-09-56-58-261.png
          10 kB
          Janis Freibergs
        8. image-2023-10-26-08-38-18-802.png
          91 kB
          A. Lise Babika
        9. image-2023-10-26-08-36-34-183.png
          76 kB
          A. Lise Babika
        10. image-2023-10-25-16-38-45-438.png
          42 kB
          Janis Freibergs
        11. image-2023-10-25-16-34-38-284.png
          35 kB
          Janis Freibergs
        12. image-2023-10-25-16-34-04-306.png
          32 kB
          Janis Freibergs
        13. image-2023-10-25-16-32-32-217.png
          24 kB
          Janis Freibergs
        14. image-2023-10-25-16-32-22-273.png
          24 kB
          Janis Freibergs
        15. image-2023-10-24-12-12-15-811.png
          25 kB
          Janis Freibergs
        16. image-2023-10-24-12-08-55-040.png
          38 kB
          Janis Freibergs
        17. image-2023-10-24-12-05-23-601.png
          40 kB
          Janis Freibergs
        18. image-2023-10-24-12-03-13-797.png
          5 kB
          Janis Freibergs
        19. image-2023-10-24-12-00-38-485.png
          25 kB
          Janis Freibergs
        20. FIRST_437.jpg
          128 kB
          Artjoms Rimdjonoks
        There are no Sub-Tasks for this issue.

            kprutkovs Konstantins Prutkovs (Inactive)
            solonkins Sergejs Olonkins
            Team C
            Votes:
            1 Vote for this issue
            Watchers:
            19 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - 0h
                0h
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 28h
                28h