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

            kprutkovs Konstantins Prutkovs
            solonkins Sergejs Olonkins
            Team C
            Votes:
            1 Vote for this issue
            Watchers:
            17 Start watching this issue

              Created:
              Updated:

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