[ZBX-4581] aggregate items' functions doesn't work with unit symbols (avg, sum, maybe more) Created: 2012 Jan 25  Updated: 2017 May 30  Resolved: 2012 Mar 09

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Server (S)
Affects Version/s: 1.9.9 (beta)
Fix Version/s: 2.0.0rc1

Type: Incident report Priority: Minor
Reporter: Olgierd Wolodkiewicz Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: items
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

RHEL 5.6 with Oracle



 Description   

this works (function last): grpavg[<group>,<item>,last,5m]

other functions (tested sum, avg) doesn't work:
grpavg[<group>,<item>,avg,5m]
grpavg[<group>,<item>,sum,5m]

but works:
grpavg[<group>,<item>,avg,300]
grpavg[<group>,<item>,sum,300]

Simply unit symbols doesn't work with all functions in aggregate items



 Comments   
Comment by Alexei Vladishev [ 2012 Jan 31 ]

They are not supposed to work, I changed issue type to improvement.

Comment by dimir [ 2012 Mar 01 ]

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

Comment by Alexander Vladishev [ 2012 Mar 05 ]

(1) Please review my changes in r25791

<dimir> Corrected a bit, please review my changes in r25801.
<Sasha> Thanks! CLOSED

Comment by Alexander Vladishev [ 2012 Mar 05 ]

(2) Some improvements:

  • validation of 4th parameter should be added
  • functions str2uint() and is_uint_prefix() should be rewritten

<dimir> RESOLVED. There were lots of commits, including style fixes. str2uint() was ditched as it's not used anywere.
<Sasha> CLOSED Great work!

Comment by Alexander Vladishev [ 2012 Mar 08 ]

(3) Please review my changes before merge with trunk.

<dimir> Perfect. I have also capitalized some GUI error messages in r25927.
<Sasha> Thanks! CLOSED

Comment by dimir [ 2012 Mar 09 ]

Fixed in pre-1.9.10 r25933.

Comment by dimir [ 2012 Mar 09 ]

Reopening to reassign.

Comment by dimir [ 2013 Feb 14 ]

This fix introduced a regression ZBX-6262. Will be fixed for 2.0 and 2.2 .

Generated at Sat Apr 19 06:03:01 EEST 2025 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.