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 graphs over multiple pages. Problem: when there are no graph to display, Zabbix shows empty placeholders.
Step to reproduce:
- host template with a dashboard
- a widget to display graphs from a graph prototype (mounted filesystems for example)
- configure 1 column and n rows of graph
- 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)