[ZBX-5608] Problem in trigger name macros {HOST.NAME1} resolving in Monitoring->Triggers, if trigger expression has same function more than once. Created: 2012 Sep 24  Updated: 2017 May 30  Resolved: 2012 Oct 05

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

Type: Incident report Priority: Critical
Reporter: Toms (Inactive) Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: expressions, macros
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: PNG File after.png     PNG File before.png     PNG File trigger_expression.png    
Issue Links:
Duplicate

 Description   

Have a trigger with name "a

{HOST.HOST1} {HOST.HOST2}{HOST.HOST3}{HOST.HOST4}" and expression "{5280-2:agent.ping.last(0)}=1&{5280-2:agent.ping.last(0)}=0&{5280:system.cpu.num.last(0)}=0&{5280-2:agent.ping.last(0)}=0"
Trigger name in Monitoring > Triggers is exploded as "a UNKNOWN{HOST.HOST2}

5280

{HOST.HOST4}

"

Note that first and second functions in expression is same;
Note that there is two different hosts.



 Comments   
Comment by Toms (Inactive) [ 2012 Sep 26 ]

fixed as well

{ITEM.VALUE}

not resolving if value equals to zero

Fixed in dev. branch: svn://svn.zabbix.com/branches/dev/ZBX-5608

Comment by Alexey Fukalov [ 2012 Sep 27 ]

(1)

{HOST.HOST}

macro is not resolved

tomtom unable to reproduce

Comment by Alexey Fukalov [ 2012 Sep 27 ]

(2)
if we add macro which reference for example 5th expression, but trigger has only 4 functions, errors are shown in monitoring triggers.

tomtom RESOLVED in r30391

Comment by Toms (Inactive) [ 2012 Sep 27 ]

for alternative solution Fixed in dev. branch: svn://svn.zabbix.com/branches/dev/ZBX-5608-2
(1) ITEM.VALUES not expanded if equals to zero

(2) expandIpMacros() uses only last interface for mapping was fixed in ZBX-5496 but moved to this branch.

Vedmak RESOLVED

tomtom CLOSED

Comment by Alexey Fukalov [ 2012 Sep 27 ]

dev branch: svn://svn.zabbix.com/branches/dev/ZBX-5608-2

Comment by Toms (Inactive) [ 2012 Sep 28 ]

TESTED

Comment by Alexey Fukalov [ 2012 Oct 04 ]

Fixed in 2.0.4rc1 r30527, pre-2.1.0 r30528.

Comment by Alexey Pustovalov [ 2012 Oct 04 ]

(3) regression. Please look screenshots "before" and "after". Incorrect expanding simple macros. There uses

{ITEM.LASTVALUE1}

macro.

Units is degrees (C).

Vedmak RESOLVED r30637
Eduards CLOSED

tomtom This change should be commented, that this is to handle old hack!

Vedmak CLOSED

Comment by Eduards Samersovs (Inactive) [ 2012 Oct 05 ]

Tested

Comment by Alexey Fukalov [ 2012 Oct 05 ]

Fixed in 2.0.4rc1 r30666, pre-2.1.0 r30667.

Generated at Fri Apr 26 10:02:13 EEST 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.