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

Issue with Graph Rendering after Upgrade to Zabbix 7.x (Redis Template)

XMLWordPrintable

    • Icon: Incident report Incident report
    • Resolution: Won't fix
    • Icon: Trivial Trivial
    • None
    • 7.0.5, 7.0.6
    • Frontend (F)
    • Zabbix Version: 7.0.2 > 7.0.6
      PHP 8.2.26
      nginx version: nginx/1.27.0
      Debian 12

      Steps to reproduce:

      1. Update Zabbix server from 6.x to 7.0.2
      2. Apply the Redis monitoring template.
      3. Navigate to "Latest Data" and select any item from the Redis template.
      4. Attempt to create a graph using the data.
      5. The error appears.
      6.  

      Result:
      We are encountering an issue after upgrading Zabbix to 7.0.2. The problem was noticed only after applying the Redis monitoring template to the updated version.

      Graph creation fails with the error

      Incorrect value for field "delay": invalid delay
       

      Nginx server logs show the following error:

      2024/12/03 11:43:37 [error] 2880636#2880636: *121309647 FastCGI sent in stderr: "PHP message: PHP Warning: Undefined array key "file" in /usr/share/zabbix/include/classes/debug/CProfiler.php on line 374;
      PHP message: PHP Warning: Undefined array key "line" in /usr/share/zabbix/include/classes/debug/CProfiler.php on line 374;
      PHP message: PHP Warning: Cannot modify header information - headers already sent in /usr/share/zabbix/include/classes/helpers/CCookieHelper.php on line 54;
      PHP message: PHP Warning: PHP Request Shutdown: Failed to write session data using user defined save handler. (session.save_path: /var/lib/php/sessions, handler: update_timestamp) in Unknown on line 0"
      while reading upstream, client: 10.18.140.130, server: zabbix.info, request: "GET /chart.php?from=now-1h&to=now&itemids%5B0%5D=903506&type=0&resolve_mac ros=1&profileIdx=web.item.graph.filter&profileIdx2 =903506&width=1734&height=200&_=wxx0rwj3 HTTP/1.1",
      upstream: "fastcgi://unix:/var/run/php/php8.2-fpm.sock:", host: "zabbix.info", referrer: "https://zabbix.info/history.php?itemids%5B0%5D=903506&action=showgraph"
       

      Additional Context:

      • Zabbix version upgrade history:
        • Original version: 5.x
        • Upgraded to 6.x, then to 7.0.2, and finally to 7.0.6.
      • The issue persists after upgrading to version 7.0.6.
      • Testing various versions of the Redis template did not resolve the problem.
      • Creating a fresh Zabbix server instance resolves the issue, and graphs from the Redis template render correctly.

      Expected Behavior: Graphs should render correctly based on data collected from the Redis monitoring template.

      Other Notes:

      • Other templates, such as "Linux by Zabbix Agent 2," are unaffected and render graphs without issues.
      • This indicates the problem may be specific to the Redis template in conjunction with our upgraded Zabbix environment.

      Attached are screenshots and relevant logs for your reference.

      Expected:
      See screenshots

        1. 01.png
          01.png
          16 kB
        2. 02.png
          02.png
          53 kB
        3. 03.png
          03.png
          32 kB
        4. 04.png
          04.png
          54 kB
        5. template_db_redis.yaml
          107 kB

            zabbix.dev Zabbix Development Team
            satrier Oleksii Satrier
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: