This is the frontend JS patch that allows to:
- add additional External or internal URLs to Host Menu everywhere in the Zabbix Frontend
- (NEW) automatically add direct links to related and in-context graphs in trigger popup menu if any
By default in Zabbix only links to simple graphs are available. This patch adds links to more interesting looking graphs as well if any.
- Patch will automatically add links to related graphs in trigger popup menu if any (Problems, Events and Triggers zabbix sections)
- Tested in Zabbix 2.4, 3.0 and 3.2
- Zero configuration
And one more sample:
and you are here:
- Use host's
URL_A
,URL_B
,URL_C
Inventory fields - Macros {HOST.ID}, {HOST.HOST}, {HOST.NAME}, {HOST.CONN} and {INTENVORY.*} can be used in URLs
- Add a name to URL link like so:
Google|http://google.com
- Tested in Zabbix 2.4, 3.0 and 3.2
Change current folder to root of zabbix frontend: Then run:
[user@centos zabbix]$ sudo patch -p1 -i zabbix-hostmenu.diff
patching file js/init.js
patching file js/menupopup.js
You are done.
- This patch adds extra JSON API Call, so menu is a bit slower than before.
- Make sure that {HOST.IP} and {HOST.CONN} always return main interface
- Remove possible race condition for RPC object (find a way to clone RPC object, help appreciated)
- Extend functionality to Map context menu
You may vote for this kind of functionality included in Zabbix itself if you found this useful: https://support.zabbix.com/browse/ZBXNEXT-3496