Uploaded image for project: 'ZABBIX BUGS AND ISSUES'
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-23157

Proxy memory buffer metrics return values when buffer is disabled

XMLWordPrintable

    • Icon: Problem report Problem report
    • Resolution: Fixed
    • Icon: Trivial Trivial
    • 7.0.0alpha8, 7.0 (plan)
    • 7.0.0alpha3
    • Server (S)
    • None
    • Sprint 103 (Aug 2023), Sprint 104 (Sep 2023), Sprint 105 (Oct 2023), Sprint 106 (Nov 2023)
    • 1

      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.

            wiper Andris Zeila
            drasikhov Denis Rasikhov
            Team A
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: