0

Zabbix: how to increase the number of last issues in the dashboard

By default, the Zabbix dashboard in the “Last 20 issues” section has a limit of 20 issues. In practice, this is often lacking and only the latest issues are displayed in the dashboard , as evidenced by the inscription at the end of the list: 20 of 62 issues are shown.

It is not possible to change the number of recent events via the web interface. But this can be done (similar to changing the maximum length of the graph name) by editing the files of the web interface. We are interested in defines.inc.php, which by default is located in / usr / share / zabbix / include /. Open it with the editor:

sudo nano /usr/share/zabbix/include/defines.inc.php

Search the DEFAULT_LATEST_ISSUES_CNT parameter (in nano to search, press ctrl + w and type / paste the search text):

define('DEFAULT_LATEST_ISSUES_CNT', 20);

Change 20 to the value you want, for example, 50 or 100:

define('DEFAULT_LATEST_ISSUES_CNT', 100);

Save and exit the editor. No further action required. You can open zabbix, refresh the page and immediately see the changes: if there are enough events, then all of them will be displayed in the panel.