[ZBXNEXT-3496] Allow to add own links to Host context menu (with interface mock) Created: 2016 Oct 12  Updated: 2024 Apr 10  Resolved: 2022 Oct 19

Status: Closed
Project: ZABBIX FEATURE REQUESTS
Component/s: Frontend (F)
Affects Version/s: 3.2.1
Fix Version/s: 6.4.0alpha1, 6.4 (plan)

Type: Change Request Priority: Major
Reporter: Vitaly Zhuravlev Assignee: Ivo Kurzemnieks
Resolution: Fixed Votes: 77
Labels: None
Σ Remaining Estimate: Not Specified Remaining Estimate: Not Specified
Σ Time Spent: Not Specified Time Spent: Not Specified
Σ Original Estimate: Not Specified Original Estimate: Not Specified

Attachments: File CControllerMenuPopup.php     PNG File Screenshot 2022-08-18 at 13.43.56.png     PNG File Screenshot 2022-08-18 at 13.45.14.png     PNG File configuring on template host level.png     PNG File custom_graph_link.PNG     PNG File hostmenu-patch-example.png     GIF File output3.gif     PNG File trigger-menu-graphs.png     PNG File z11111111111111111111111.png     PNG File z5-1.png    
Issue Links:
Duplicate
duplicates ZBXNEXT-1406 HOST.ID macro in global scripts Closed
duplicates ZBXNEXT-2272 Support {EVENT.ID} in frontend scripts Closed
duplicates ZBXNEXT-2834 extend map urls to work in dashboard ... Closed
is duplicated by ZBXNEXT-5289 Add Custom URL to Host Dropdown Closed
Sub-task
Sub-Tasks:
Key
Summary
Type
Status
Assignee
ZBXNEXT-7880 DB patch to allow user links to Host ... Specification change (Sub-task) Closed Michael Veksler  
Team: Team B
Team: Team B
Sprint: Sprint 90 (Jul 2022), Sprint 91 (Aug 2022), Sprint 92 (Sep 2022), Sprint 93 (Oct 2022)
Story Points: 5

 Description   

As almost everything Web now these context links are really useful with nearly any company has some other systems such as:

  • CMDBs and Inventory systems
  • Service Desk
  • Reporting
  • and others.

As well as hosts that you monitor also have local web page which you might decide want to visit to check or reconfigure something.

So, In host menu that appears when you click on host name it would be really useful if you can configure and add your own links,
Like so:

To be useful and easy to implement this feature should probably have the following traits:

  • Possibility to add your own links to GO TO part of Host Menu on Host, Host Group(optional), Template and Global levels:
    • Host Group(optional) and Global levels can be mostly used to company links to other intranet systems
    • Template and Host levels would be usefull to add links to host Web admin page
  • Context menu customization should be imported/exported as part of template/host in XML
  • Allowing the usage of macros like
    {HOST.IP}, {HOST.ID}, {HOST.NAME}, {HOST.ALIAS} , {INVENTORY.*}

    and user macros is essential so CMDB system could be opened with inventory card of the device.

  • Nesting and grouping should be supported for keeping things organized (should work same way it works for Global scripts)
  • Should be working everywhere where Host menu is available, including maps

The example of Template level configuration is below:

P.S. Would be cool if Global scripts also can be assigned to Hosts on Template/Host level. Scripts could be choosen from the list of existing in current Zabbix installation. As there is no reason to assign some SNMP checks on Zabbix agent host without snmp interface

P.P.S. Custom internal links could also be helfpul here. For example, you might have a link in context menu that leads to the most important metric(item) graph of the device. And you can add it on a template level to make sure link would only appear for a host that actually has this graph/item:

And that would make very handy system shortcuts possible to create
This part is competely automatic, requires zero configuration and can be implemented as a separate feature.

P.P.P.S. URI like ssh:// or vnc:// could be probably utilized in some way here



 Comments   
Comment by richlv [ 2016 Oct 12 ]

this seems to match well with the map links feature, where functionality, similar to the requested, is already implemented.
it might be better to merge/reuse that functionality instead of creating to separate things that do the same - just in different locations.

Comment by Vitaly Zhuravlev [ 2016 Oct 12 ]

It is more similar to Global scripts actualy. Since scripts are available everywhere(Latest 20, Triggers, Maps etc), when map links - only on a single map.

Comment by richlv [ 2016 Oct 12 ]

right, i meant "map links should be available everywhere", as they are pretty much what you are asking for. while global scripts are available everywhere, they aren't functionally satisfying currently.

Comment by Vitaly Zhuravlev [ 2016 Oct 12 ]

Yes, in other words functionality that is available in maps only should be made available everywhere just like Global scripts and on Template/Host level.

Comment by Vitaly Zhuravlev [ 2016 Dec 12 ]

Here is the patch I made to implement this feature (sort of)

https://github.com/v-zhuravlev/zabbix-hostmenu

Comment by Vitaly Zhuravlev [ 2017 Feb 06 ]

Updated my patch to include new feature (sort of internal links I mentioned but automatically created this time):

Automatically add direct links to related and in-context graphs in trigger popup menu if any

Comment by Petr Vyhlidal [ 2017 Nov 13 ]

Thank you for Great Functionality - Patch works well and it would be great if it was incorporated at regular release in way which is mentioned in description of this case!!!
In addition - I suggest to extend this functionality to Map elements too - it would be extremly helpful for integration with CMDBs, WebManagements and other third party systems, if we had possibility to configure URL links from one place - hosts or templates - and then it simply appeared in element context menus in all screens, views or map, where element is associated with specific host.
This is feature, which we are looking forward longer time and which would have big benefit for all users.

Comment by Vitaly Zhuravlev [ 2017 Nov 14 ]

Petr, thanks for the feedback

to palivoda, btw, this feature not only would help incorporate Zabbix into enterprise/similar complex IT landscapes providing links to other systems used (CMDBs, Service Desks, Reporting engines, other NMS used) but would also add weight to out of the box solutions, since out of the box templates could have for example:

  • HP iLo servers templates would provide an URL to HP server Web management page OOB. Similar for other systems with web console.
  • Template Net Mikrotik would provide URL to web management page of the router
  • Monitoring vSphere? Provide a link to vSphere console out of the box
Comment by Petr Vyhlidal [ 2017 Nov 14 ]

P.P.P.S. URI like ssh:// or vnc:// could be probably utilized in some way here...and
P.P.P.P.S.
URIs like

  • onenote:///C:\OneNote\subdir#OneNoteLink ( in Internet explorer works like integration with content in Onenote - we use for documentation)
  • \\192.168.0.1\smbshare\file.txt ( or file://192.168.0.1/smbshare/table.xls )
Comment by Markus Fischbacher [ 2018 Feb 08 ]

Any forthcoming of this request? As 4.0 is incoming it would be great to see that feature implemented!

Comment by Alexei Vladishev [ 2018 Jul 12 ]

Actually I see a serious security risk if it is implemented this way on template level. Alice may share a malicious template having links to internal resources accessible only in Bob secure environment. Bob will deploy this template, therefore all users will have a chance to click on the links. Not good.

Comment by Fernando Lucio [ 2018 Aug 01 ]

Ok, drop to internal resources, but please follow the other dev requested.

Like Vitaly, i need put links to operator use, like global scripts.

At least a new type of global script, a "link" one, just with a input to url that interpret simple macros, like hostname and ip address.

 

Thanks in advance.

Comment by Ray Holtz [ 2019 Nov 11 ]

I was looking in ZBXNEXT to see if anyone had asked for a link to the host's configuration page in the monitoring context menu, but this would be just as good.  +1 for this!

Comment by Kim Alexander Hansen [ 2021 Dec 20 ]

Has this issue been forgotten?

Comment by Alexei Vladishev [ 2021 Dec 21 ]

kah , this feature request hasn't been forgotten. In fact it is already part of the preliminary Zabbix 6.2 roadmap, which will be finalized and published in January.

Comment by Verde [ 2022 Jun 08 ]

Since these URLs mainly will link to external systems, it's good to consider opening them in a new tab, or at least have a setting to choose if the URL opens in the same or new tab.

 

Comment by licg [ 2022 Jul 19 ]

6.2 done?

I have change some code in 5.4.7, by tags to do this work!

if tag's value contain '//', the tag will render as menuitem! CControllerMenuPopup.php

Comment by Alexei Vladishev [ 2022 Jul 20 ]

This functionality was moved to Zabbix 6.4, it is part of the official roadmap now.

Comment by Andrejs Griščenko [ 2022 Sep 09 ]

Implemented in:

Comment by Marina Generalova (Inactive) [ 2022 Sep 29 ]

Documentation updated:

Generated at Thu Apr 18 19:46:54 EEST 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.