[ZBXNEXT-2100] Visualization of template links Created: 2014 Jan 07 Updated: 2014 Aug 17 |
|
Status: | Open |
Project: | ZABBIX FEATURE REQUESTS |
Component/s: | Frontend (F) |
Affects Version/s: | 2.0.10 |
Fix Version/s: | None |
Type: | New Feature Request | Priority: | Major |
Reporter: | Marc | Assignee: | Unassigned |
Resolution: | Unresolved | Votes: | 7 |
Labels: | patch, templatelinking, usability | ||
Remaining Estimate: | Not Specified | ||
Time Spent: | Not Specified | ||
Original Estimate: | Not Specified |
Attachments: | configurationHosts.png configurationHostsEdit.png configurationTemplates-2.png configurationTemplates.png configurationTemplatesEdit.png configurationTemplatesEditBoth.png configurationTemplatesEditChilds.png configurationTemplatesEditParents.png configurationTemplatesEditSimple.png zbxnext2100-2.2.5-2.patch zbxnext2100-2.2.5-3.patch zbxnext2100-2.2.5-4.patch zbxnext2100-2.2.5-5.patch zbxnext2100-2.2.5-6.patch zbxnext2100-2.2.5-7.patch zbxnext2100-2.2.5.patch |
Description |
Would be nice to have an additional section/tab in 'Configuration of templates' and 'Configuration of hosts' where the complete hierarchy of linked templates gets visualized recursively. This could probably even make 'Linked templates' and 'Template' columns in list of templates resp. list of hosts obsolete. Might be another use case for D3.js |
Comments |
Comment by Marc [ 2014 Aug 11 ] |
First attempt with Graphviz: Actually I started with the template listing what was not requested by this issue: The upcoming uploaded patch(es):
I think of using SVG later at least in the template list to add proper hyper-links of the respective objects. That would then make the columns 'Linked templates' and 'Linked to' obsolete and save some space. Further I think of combing the template list patch with ZBXNEXT-1796 to save even more space and get a nice listing. I'm expecting to upload the patches tomorrow, err. today after having a sleep If I had known it would become that easy, I had done this much sooner. |
Comment by Marc [ 2014 Aug 11 ] |
The attached patch zbxnext2100-2.2.5.patch implements mentioned functionality. Finally it's one patch instead of two. Additionally to the already mentioned changes the patch adds a linkage overview to hosts as well: Edit: Beside applying the patch graphviz's php library is needed (graphviz-php on EL6). |
Comment by Marc [ 2014 Aug 13 ] |
Attached patch zbxnext2100-2.2.5-2.patch includes some minor improvements and adds hyper-links to hosts and templates in list view of templates:
Because hyper-links are enabled by an image map the colors are hard coded and not set by CSS. Since treating this as a POC and due to the fact that upstream devs would probably rather create their own Graphviz-like classes when considering this for implementation, I don't plan to add setting of colors based on themes CSS. Btw, unfortunately I was not able to get hyper-links be written underlined. This appears to be limited by the EL6 distributed Graphviz version that does not support this yet. |
Comment by Marc [ 2014 Aug 13 ] |
Attached patch zbxnext2100-2.2.5-3.patch adds visualization to Configuration->Hosts as well: Surely by now something similar to ZBXNEXT-1796 might be beneficial. |
Comment by Marc [ 2014 Aug 15 ] |
Attached patch zbxnext2100-2.2.5-4.patch fixes an 'Undefined index' issue on creation of new hosts. |
Comment by Marc [ 2014 Aug 17 ] |
Attached patch zbxnext2100-2.2.5-5.patch moves the inheritance diagram from the separate tab to the 'Linked templates' tab.
|
Comment by Marc [ 2014 Aug 17 ] |
Attached patch zbxnext2100-2.2.5-6.patch moves label to same level of radio buttons |
Comment by Marc [ 2014 Aug 17 ] |
Attached patch zbxnext2100-2.2.5-7.patch corrects radio button text and fixes root node not being bold when 'Follow both' (prev. 'Follow parents and childs') is selected. |