[ZBX-4695] Trigger for a simple check doesnt allow Macros Created: 2012 Feb 24  Updated: 2017 May 30  Resolved: 2012 Dec 07

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Frontend (F)
Affects Version/s: 1.8.10
Fix Version/s: 1.8.16rc1, 2.0.0

Type: Incident report Priority: Major
Reporter: Niels te Grotenhuis Assignee: Unassigned
Resolution: Fixed Votes: 2
Labels: items, macros, triggers
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Ubuntu 11.04, Zabbix 1.8.10 Server with Postgresql and PHP Frontend


Attachments: JPEG File zabbix.jpg    
Issue Links:
Duplicate
is duplicated by ZBX-5011 Frontend trigger expression parser do... Closed

 Description   

Steps to reproduce the issue:

Add Template 'TEST' with Macro {$TESTPORT} and assign it value of 80
Add Item with Key 'tcp,{$TESTPORT}' and Save
This works
But now when I add a trigger for this Item, like '{Test:tcp,{$TESTPORT}.last(0)}=0' and press Save the following error comes up:

Incorrect item key "tcp,{$TESTPORT" is used in expression. Incorrect simple check parameter.
Check expression part starting from " {Test:tcp,{$TESTPORT}.last(0)}=0 "



 Comments   
Comment by Anthony [ 2012 Mar 23 ]

I have this error too.
Zabbix 1.8.10
http://www.zabbix.com/forum/showthread.php?p=98376#post98376

Comment by Niels te Grotenhuis [ 2012 May 14 ]

This bug still exists in the latest Zabbix 1.8 version. Is there any update on this issue or has this been fixed in 2.0?

Comment by richlv [ 2012 May 17 ]

this is fixed for 2.0 as simple checks now use same item key syntax as other items. not sure whether there's backing for a 1.8 fix

Comment by Marcel Jäpel [ 2012 Jul 06 ]

Hi,

we have the same issue on our productive environment and it's currently not possible to upgrade to 2.x on our side.
Please fix this in 1.8.

Regards,
Marcel

Comment by Alexei Vladishev [ 2012 Jul 28 ]

The problem was fixed in 2.0. I am afraid it cannot be fixed in 1.8.x because of serious limitations of trigger expression parser, which parses macros only of item keys in canonical (i.e. aaa[b,c,d,e]) format.

Any fix in 1.8 will require significant and risky development work. I am not happy about introducing new issues in 1.8.x, let's keep it rock stable.

Sorry for this.

Comment by richlv [ 2012 Jul 28 ]

reopen to change reoslution

Comment by Alexander Vladishev [ 2012 Dec 07 ]

Fixed with ZBX-5884 in version pre-1.8.16 r31955

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