[ZBXNEXT-8682] Item test should limit the returned value to a certain amount of data Created: 2023 Sep 04  Updated: 2025 Jan 08  Resolved: 2024 Jun 03

Status: Closed
Project: ZABBIX FEATURE REQUESTS
Component/s: Frontend (F)
Affects Version/s: 6.0.22rc1, 6.4.7rc1, 7.0.0alpha5
Fix Version/s: 6.0.31rc1, 6.4.16rc1, 7.0.0beta3, 7.0 (plan)

Type: Change Request Priority: Trivial
Reporter: Sergejs Olonkins Assignee: Konstantins Prutkovs (Inactive)
Resolution: Fixed Votes: 1
Labels: itemtest, limit, memory
Σ Remaining Estimate: 0h Remaining Estimate: 0h
Σ Time Spent: 28h Time Spent: 28h
Σ Original Estimate: 0h Original Estimate: 0h

Attachments: JPEG File FIRST_437.jpg     JPEG File NO_TRUNC_MESSAGE.jpg     PNG File image-2023-10-24-12-00-38-485.png     PNG File image-2023-10-24-12-03-13-797.png     PNG File image-2023-10-24-12-05-23-601.png     PNG File image-2023-10-24-12-08-55-040.png     PNG File image-2023-10-24-12-12-15-811.png     PNG File image-2023-10-25-16-32-22-273.png     PNG File image-2023-10-25-16-32-32-217.png     PNG File image-2023-10-25-16-34-04-306.png     PNG File image-2023-10-25-16-34-38-284.png     PNG File image-2023-10-25-16-38-45-438.png     PNG File image-2023-10-26-08-36-34-183.png     PNG File image-2023-10-26-08-38-18-802.png     PNG File image-2023-10-26-09-56-58-261.png     PNG File image-2023-10-26-09-58-09-267.png     PNG File image-2023-10-26-11-03-21-596.png     File out.dat_2     PNG File screenshot-1.png     File zbx_export_hosts-2.yaml    
Issue Links:
Causes
causes ZBX-25820 Wrong calculations for items Bits sen... In Progress
causes ZBX-24376 User macro is not resolved in the ite... Closed
causes ZBX-24363 Proxy is ignored when testing the item Closed
causes ZBX-24477 Incorrect value displayed in item tes... Closed
causes ZBX-24598 Item test show incorrect previous value Closed
caused by ZBXNEXT-6554 Zabbix Agent Remote Execution limit t... Closed
Sub-Tasks:
Key
Summary
Type
Status
Assignee
ZBXNEXT-8752 Frontend changes to limit the returne... Specification change (Sub-task) Closed Janis Freibergs  
Epic Link: Zabbix 7.0
Team: Team C
Sprint: 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
Story Points: 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).



 Comments   
Comment by Artjoms Rimdjonoks [ 2024 Apr 16 ]

Available in versions:

Comment by Arturs Dancis [ 2024 May 30 ]

Documentation updated:

  • Introduction > What's new in Zabbix (6.0.31, 6.4.16, 7.0.0)
  • Configuration > Items > Creating an item (7.0) (added truncation details to "Testing" section)
  • Configuration > Items > Item value preprocessing (6.0, 6.4) > Preprocessing testing (7.0) (updated Preprocessing steps and Result parameter description; in 7.0, also updated Value parameter description)
Generated at Tue Apr 01 11:03:10 EEST 2025 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.