Details

    • Type: Incident report Incident report
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 2.2.1
    • Fix Version/s: 2.2.2rc1, 2.3.0
    • Component/s: Frontend (F)
    • Labels:

      Description

      The problem occurs when the "Visible name" of the host exists and is different from the "Host name".
      I figured out that the problem comes from the function resolveGraphsFunctionalItemMacros in the file include/classes/macros/CMacrosResolver.php. SQL query in this function works well only when "Visible name" is missing.
      In the case when the "Visible name" is set this value goes to the graph header. The same value is passed to Macro resolver. But the function expects for the "host name".

      In the other hand, why macro HOST.HOST in the graph name is resolvable like HOST.NAME?

        Activity

        Hide
        Ivo Kurzemnieks added a comment -

        Linas, can You please provide more details like what macros You are using and where, what are host names, items etc?
        Or simply export host with items and graphs and attach them here?

        Show
        Ivo Kurzemnieks added a comment - Linas, can You please provide more details like what macros You are using and where, what are host names, items etc? Or simply export host with items and graphs and attach them here?
        Hide
        Linas added a comment -

        Graph name:
        Port 4 "{{HOST.HOST}:ifDescr4.last(0)}" in/out traffic
        Item:
        SNMP OID = IF-MIB::ifAlias.4
        Key = ifDescr4
        Host:
        Host Name = Office_switch
        Visible name = Ofisas

        I made the screenshot of the graph with this configuration.


        Second configuration is the same. Except Visible name is blank.
        The screenshot is in the second file.

        PS. My items and graphs of the host are created from the template.

        Let me know if you need more information.

        Show
        Linas added a comment - Graph name: Port 4 "{{HOST.HOST}:ifDescr4.last(0)}" in/out traffic Item: SNMP OID = IF-MIB::ifAlias.4 Key = ifDescr4 Host: Host Name = Office_switch Visible name = Ofisas I made the screenshot of the graph with this configuration. Second configuration is the same. Except Visible name is blank. The screenshot is in the second file. PS. My items and graphs of the host are created from the template. Let me know if you need more information.
        Hide
        Ivo Kurzemnieks added a comment -

        RESOLVED in svn://svn.zabbix.com/branches/dev/ZBX-7590

        Show
        Ivo Kurzemnieks added a comment - RESOLVED in svn://svn.zabbix.com/branches/dev/ZBX-7590
        Hide
        Oleg Egorov added a comment -

        TESTED

        Show
        Oleg Egorov added a comment - TESTED
        Hide
        Ivo Kurzemnieks added a comment -

        Fixed in pre-2.2.2rc1 r41430 and pre-2.3.0 (trunk) r41431

        Show
        Ivo Kurzemnieks added a comment - Fixed in pre-2.2.2rc1 r41430 and pre-2.3.0 (trunk) r41431

          People

          • Assignee:
            Ivo Kurzemnieks
            Reporter:
            Linas
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: