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

Details

    • Team C
    • Sprint 104 (Sep 2023), Sprint 105 (Oct 2023), Sprint 106 (Nov 2023)
    • 1

    Description

      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).

      Attachments

        Issue Links

          Activity

            People

              kprutkovs Konstantins Prutkovs
              solonkins Sergejs Olonkins
              Votes:
              0 Vote for this issue
              Watchers:
              10 Start watching this issue

              Dates

                Created:
                Updated: