[ZBX-8798] Support arithmetical operation in trigger expression when unit symbols are used Created: 2014 Sep 20  Updated: 2017 May 30  Resolved: 2014 Sep 22

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Server (S)
Affects Version/s: 2.2.6
Fix Version/s: 1.8.22rc1, 2.0.14rc1, 2.2.7rc1

Type: Incident report Priority: Major
Reporter: Marc Assignee: Unassigned
Resolution: Fixed Votes: 1
Labels: expressions, trigger, units
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

I'm pretty sure that this was supported at some time in the past - possibly in the pre 2.2 era, don't know

This is for instance a trigger expression where I'm sure that once worked:

{$FS_SIZE_THRESHOLD}=>25G
{example.com:vfs.fs.size[/,total].last(0)}>{$FS_SIZE_THRESHOLD}-1&{example.com:vfs.fs.size[/,free].last(0)}<{$FS_SIZE_FREE}

Now it's unsupported due to format error:

Format error or unsupported operator. Exp: [25GN1]


 Comments   
Comment by Aleksandrs Saveljevs [ 2014 Sep 22 ]

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

The fix will be done for 1.8, 2.0 and 2.2. In Zabbix 2.4, the problem is not present, because a different expression evaluation algorithm is used.

Comment by Aleksandrs Saveljevs [ 2014 Sep 23 ]

Fixed in pre-1.8.22 r49248, pre-2.0.14 r49249, and pre-2.2.7 r49250.

Generated at Fri Apr 19 14:28:46 EEST 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.