-
Change Request
-
Resolution: Unresolved
-
Minor
-
None
-
2.2.3
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?