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

Zabbix server 6.4 reports wrong formatted JSON value for zabbix[stats,<ip>,<port>] key

XMLWordPrintable

    • Icon: Problem report Problem report
    • Resolution: Fixed
    • Icon: Major Major
    • 6.4.0beta6, 6.4 (plan)
    • 6.4.0beta6
    • Templates (T)
    • None
    • Zabbix 6.4.0beta6 from Docker images (both trunk images and those that are built from source)
    • Sprint 96 (Jan 2023)
    • 0.25

      Steps to reproduce:

      1. Set up "StatsAllowedIP" in server version 6.4 configuration file to allow gathering instance statistics.
      2. Go to the item "Zabbix stats" with key zabbix[stats,\\{$ADDRESS},\\{$PORT}]  from "Remote Zabbix server health template" (or create similar item).
      3. Press "Test" and fill {$ADDRESS} and {$PORT} of the configured server v6.4, press "Get value and test".

      Result:

      JSON data returned by the server is in format that differs from previous versions (see "remote_stats_6.4.json" and compare it with data returned by previous versions (I've also attached examples of data queried from servers v5.0/6.0/6.2). Result is the same if you'll use server 6.2/6.0/5.0 to query the item from server v6.4. So in 6.4 "Remote Zabbix server health template" and, I guess, "Remote Zabbix proxy health" are broken because of that.

      Expected:

      All metrics should be placed under "data" object like in previous versions.

      Also, I think it would make sense to place cache metrics (vcache, tcache, rcache, wcache) under one object (like "cache") in the same way it is made for "process" metrics (for all versions since 5.0, but users will have to get updated version of "Remote Zabbix server health template"/"Remote Zabbix proxy health" templates where JSONPath preprocessing will be changed accordingly).

        1. remote_stats_5.0.json
          10 kB
          Denis Rasikhov
        2. remote_stats_6.0.json
          13 kB
          Denis Rasikhov
        3. remote_stats_6.2.json
          13 kB
          Denis Rasikhov
        4. remote_stats_6.4.json
          11 kB
          Denis Rasikhov
        5. zabbix-server-remote-monitoring.png
          579 kB
          Aigars Kadikis

            dgoloscapov Dmitrijs Goloscapovs
            drasikhov Denis Rasikhov
            Team A
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: