Details

      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.
      Maybe with an option to show recursively the paths from objects that refer to the template (except hosts) as well.

      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

      1. zbxnext2100-2.2.5.patch
        10 kB
        Marc
      2. zbxnext2100-2.2.5-2.patch
        14 kB
        Marc
      3. zbxnext2100-2.2.5-3.patch
        17 kB
        Marc
      4. zbxnext2100-2.2.5-4.patch
        17 kB
        Marc
      5. zbxnext2100-2.2.5-5.patch
        23 kB
        Marc
      6. zbxnext2100-2.2.5-6.patch
        23 kB
        Marc
      7. zbxnext2100-2.2.5-7.patch
        23 kB
        Marc
      1. configurationHosts.png
        16 kB
      2. configurationHostsEdit.png
        27 kB
      3. configurationTemplates.png
        57 kB
      4. configurationTemplates-2.png
        34 kB
      5. configurationTemplatesEdit.png
        23 kB
      6. configurationTemplatesEditBoth.png
        30 kB
      7. configurationTemplatesEditChilds.png
        13 kB
      8. configurationTemplatesEditParents.png
        29 kB
      9. configurationTemplatesEditSimple.png
        33 kB

        Activity

        Hide
        Marc added a comment -

        First attempt with Graphviz:

        Actually I started with the template listing what was not requested by this issue:

        The upcoming uploaded patch(es):

        • resolve direct parents and childes up to configured value for 'Max count of elements to show inside table cell' (for template list)
        • resolve all parents and childes recursively (for edited template)
        • render a PNG on-the-fly and embed it at its place.

        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.

        Show
        Marc added a comment - First attempt with Graphviz: Actually I started with the template listing what was not requested by this issue: The upcoming uploaded patch(es): resolve direct parents and childes up to configured value for 'Max count of elements to show inside table cell' (for template list) resolve all parents and childes recursively (for edited template) render a PNG on-the-fly and embed it at its place. 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.
        Hide
        Marc added a comment - - edited

        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:
        The patch is not meant to represent a final solution. It's rather meant as a prove of concept.

        Beside applying the patch graphviz's php library is needed (graphviz-php on EL6).

        Show
        Marc added a comment - - edited 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: The patch is not meant to represent a final solution. It's rather meant as a prove of concept. Beside applying the patch graphviz's php library is needed (graphviz-php on EL6).
        Hide
        Marc added a comment - - edited

        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.

        Show
        Marc added a comment - - edited 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.
        Hide
        Marc added a comment -

        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.

        Show
        Marc added a comment - 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.
        Hide
        Marc added a comment -

        Attached patch zbxnext2100-2.2.5-4.patch fixes an 'Undefined index' issue on creation of new hosts.

        Show
        Marc added a comment - Attached patch zbxnext2100-2.2.5-4.patch fixes an 'Undefined index' issue on creation of new hosts.
        Hide
        Marc added a comment -

        Attached patch zbxnext2100-2.2.5-5.patch moves the inheritance diagram from the separate tab to the 'Linked templates' tab.
        Additionally one can choose between four different resolution methods for templates:

        Show
        Marc added a comment - Attached patch zbxnext2100-2.2.5-5.patch moves the inheritance diagram from the separate tab to the 'Linked templates' tab. Additionally one can choose between four different resolution methods for templates:
        Hide
        Marc added a comment - - edited

        Attached patch zbxnext2100-2.2.5-6.patch moves label to same level of radio buttons

        Show
        Marc added a comment - - edited Attached patch zbxnext2100-2.2.5-6.patch moves label to same level of radio buttons
        Hide
        Marc added a comment -

        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.

        Show
        Marc added a comment - 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.

          People

          • Assignee:
            Unassigned
            Reporter:
            Marc
          • Votes:
            7 Vote for this issue
            Watchers:
            8 Start watching this issue

            Dates

            • Created:
              Updated: