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

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

      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)

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

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

              Created:
              Updated:
              Resolved: