[ZBX-3782] Labels (item value of the hostname) are no more display when type element is define as trigger Created: 2011 May 04  Updated: 2017 May 30  Resolved: 2012 Jul 05

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Frontend (F)
Affects Version/s: 1.8.5
Fix Version/s: 1.8.15rc1, 2.0.2rc1, 2.1.0

Type: Incident report Priority: Minor
Reporter: Philippe Camelio Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: macros, maps
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

Define a map
Define an icon:
Type : Trigger
Label : My label is {{HOSTNAME}:myitem.last(0)}
Trigger : get some trigger for hostname.localname

Value of the item 30 Gb
Results:
The icon is well draw but the label is : "My Label is

{hostname.localname:myitem.last(0)}

"

Attending result : Label must be "My Label is 30 Gb"



 Comments   
Comment by richlv [ 2011 May 05 ]

reproducible in 1.8 branch rev 19356

additionally, if the map element type is trigger, the trigger might reference multiple hosts. as such,

{HOSTNAME<1-9>}

syntax should be supported in this case (

{HOSTNAME}

macro is resolved properly,

{HOSTNAMEn}

are not).

Comment by Alexander Vladishev [ 2012 Jun 19 ]

Broken after implementation of ZBX-3660

<Vedmak> strange because this is about 1.8.5 and ZBX-3660 implemented in 1.8.6.

Comment by Pavels Jelisejevs (Inactive) [ 2012 Jun 25 ]

This issue will require some code from ZBX-5159, so I suggest we close ZBX-5159, before resolving this problem.

Comment by Alexey Fukalov [ 2012 Jul 02 ]

Is there any specification how should it work?
Docs about macros tells that macro '

{host:key.func(param)}

' is used in map labels, notifications and trigger expressions.
In trigger expressions we don't support

{HOSTNAME}

macro inside expressions, not sure about notifications.

Comment by richlv [ 2012 Jul 03 ]

(1) should be documented

i'd suggest to fix this for 2.0 branch only; let's fix & document that :

  • trigger elements should support {HOST.HOST1-9}

    macros inside item value referencing macros

  • host elements should support {HOST.HOST}

    macros inside item value referencing macros

<Vedmak> moved this new functionality to ZBX-5280. In this issue only bug with

{HOSTNAME}

for triggers will be resolved.

Comment by richlv [ 2012 Jul 03 ]

also keep in mind the testcase from ZBX-3660 :
{{HOSTNAME}:log[

{HOSTNAME}

.log].last(0)}

Comment by Alexey Fukalov [ 2012 Jul 05 ]

Fixed for 1.8 branch. Fixed only support for

{HOSTNAME}

macro for trigger elements.

dev branch: svn://svn.zabbix.com/branches/dev/ZBX-3782

<pavels> CLOSED.

Comment by Pavels Jelisejevs (Inactive) [ 2012 Jul 05 ]

Fix for 1.8 is TESTED.

Comment by Alexey Fukalov [ 2012 Jul 05 ]

Fixed in pre-1.8.15rc r28697, pre-2.0.2rc1 r28701, pre-2.1.0rc1 r28702

Generated at Fri Apr 19 20:12:45 EEST 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.