[ZBX-23157] Proxy memory buffer metrics return values when buffer is disabled Created: 2023 Jul 26  Updated: 2024 Apr 10  Resolved: 2023 Nov 03

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Server (S)
Affects Version/s: 7.0.0alpha3
Fix Version/s: 7.0.0alpha8, 7.0 (plan)

Type: Problem report Priority: Trivial
Reporter: Denis Rasikhov (Inactive) Assignee: Andris Zeila
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: PNG File image-2023-07-26-13-30-33-862.png     PNG File image-2023-07-26-13-33-28-495.png     PNG File image-2023-07-26-13-36-51-890.png    
Team: Team A
Sprint: Sprint 103 (Aug 2023), Sprint 104 (Sep 2023), Sprint 105 (Oct 2023), Sprint 106 (Nov 2023)
Story Points: 1

 Description   

According to the specification and documentation changes inĀ ZBXNEXT-6144 new internal metric keys should return "0" or show an error when memory buffer is disabled (ProxyBufferMode=disk):

  1. zabbix[proxy_buffer,buffer,<mode>] - should return the "Proxy memory buffer is disabled" error.
  2. zabbix[proxy_buffer,state,changes] - should return "0".
  3. zabbix[proxy_buffer,state,current] - should return "0" (disk mode).

Also I assume that in such case these metrics probably should be absent in the zabbix[stats,<ip>,<port>] key, like for other optional processes (connectors in Zabbix server metrics, discovery manager/worker/queue metrics...) when memory buffer is disabled.

Steps to reproduce:

  1. Build Zabbix components from the dev branch (e6ff77f60bb).
  2. Disable the memory buffer by deleting current parameter line (ProxyBufferMode=hybrid) or by setting its value to "disk".
  3. Create and test new items on the Zabbix proxy host.

Result:
1. New items return some hardcoded data:

2. zabbix[proxy_buffer,buffer,total] returns 16 MB, even if you comment out "ProxyMemoryBufferSize=16M" or set the value to "0".

2. Internal statistics key also contains data about proxy memory buffer:

Expected:

New item keys should behave according to the specification and documentation.



 Comments   
Comment by Andris Zeila [ 2023 Nov 01 ]

Released ZBX-23157 in:

  • pre-7.0.0alpha8 34bcc44173b
Generated at Wed Dec 31 19:00:33 EET 2025 using Jira 10.3.13#10030013-sha1:56dd970ae30ebfeda3a697d25be1f6388b68a422.