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

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

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

              Created:
              Updated:

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