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

Don't display empty <div> on hosts dashboards (or bring back "screen" behaviour)

    XMLWordPrintable

Details

    • Problem report
    • Status: Closed
    • Trivial
    • Resolution: Won't fix
    • 6.0.3
    • None
    • Frontend (F), Templates (T)
    • None
    • Debian 11

    Description

      Hello,

      Since Zabbix 5.2, screens have been replaced by hosts dashboards. A screen was displaying all graphs from a graph prototype on one page whereas hosts prototype only display a selected number of graph over multiple pages. Problem: when there are no graph to display, Zabbix shows empty placeholders.

      Step to reproduce:

      1. host template with a dashboard
      2. a widget to display graphs from a graph prototype (mounted filesystems for example)
      3. configure 1 column and n rows of graph
      4. display the host dashboard of a host with n+1 discovered items and go to the last page

      Expected behavior: Zabbix shows one last graph

      Current behavior: Zabbix show one graph and n-1 empty areas

      See screenshots attached with 4 rows of graphs.

      Solution : don't display empty <div> if there are no graphs to display or bring back the "screen" behavior where every graphs where displayed (no pagination)

      Attachments

        1. config.png
          config.png
          30 kB
        2. result.png
          result.png
          410 kB

        Activity

          People

            atocko Andrey Tocko
            nryc Nicolas C.
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: