Uploaded image for project: 'ZABBIX FEATURE REQUESTS'
  1. ZABBIX FEATURE REQUESTS
  2. ZBXNEXT-2278

Creation of a graph from an LLD graph prototype fails if using a simple macro in the graph title

XMLWordPrintable

    • Icon: Change Request Change Request
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • 2.2.3
    • Server (S)

      Since Zabbix 2.2 the use of simple macros in graph titles is supported. I'm now running into an issue with it.
      I'm currently using a graph prototype that has the following title:

      Int. Usg: {#SNMPVALUE} ({{HOST.HOST}:ifAlias["{#SNMPVALUE}"].last(0)})

      This works perfectly fine for the case where the following values are returned:

      {#SNMPVALUE}: FastEthernet0/1
      {{HOST.HOST}:ifAlias["{#SNMPVALUE}"].last(0)}: printer

      However, it does not work in these cases:

      {#SNMPVALUE}: Adaptive Security Appliance 'HA' interface
      {{HOST.HOST}:ifAlias["{#SNMPVALUE}"].last(0)}: LAN/STATE Failover Interface

      {#SNMPVALUE}: Adaptive Security Appliance 'Management0/0' interface
      {{HOST.HOST}:ifAlias["{#SNMPVALUE}"].last(0)}: <empty value>

      What does seem to work in these problem cases is changing the graph title to just this:

      Int. Usg: {#SNMPVALUE}

      I suspect the LLD graph creation fails on the qoutation marks within {#SNMPVALUE} in the simple macro, but I've not found any logging or proof that confirms this.
      Perhaps there is a way of escaping needed in the graph title that I'm not aware of?

            Unassigned Unassigned
            qix Raymond Kuiper
            Votes:
            8 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated: