No data displayed on graphs when historical data is missing from the DB

XMLWordPrintable

    • Type: Problem report
    • Resolution: Won't fix
    • Priority: Trivial
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Environment:
      Ubuntu 24.04
      PostgreSQL 16.4
      TimescaleDB 2.16.1
      Zabbix 7.0.4
      nginx/1.24.0 (Ubuntu)

      Historical data storage period is set to 91 days, but previously it was set to 30 days. When trying to display data on a graph for a period within the last 91 days and selecting a range of, for example, 1 day, the data doesn’t appear. However, increasing the range to, say, 5 days makes everything visible. Screenshots below illustrate this. For this period, there is no historical data in the database - only trends are available.

      When the historical data storage period is changed in Administration > Housekeeping to, for example, 30 days, the data on the graphs displays correctly:

      Steps to reproduce:

      1. Select a time range of less than 4 days on the graph for a period within the historical data storage period. In the database, only trends must exist for this period.
      2. Data is not shown.
      3. Adjust the history storage period so that the selected time range falls outside of it.
         

      4. The data is visible.

      Expected:

      The data on the graph should be visible regardless of whether the database contains history or only trends.

            Assignee:
            Zabbix Development Team
            Reporter:
            Paweł Ossowski
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: