[ZBX-8928] Time period limitation for history macros Created: 2014 Oct 20 Updated: 2017 May 30 Resolved: 2014 Dec 02 |
|
Status: | Closed |
Project: | ZABBIX BUGS AND ISSUES |
Component/s: | API (A), Frontend (F) |
Affects Version/s: | 2.2.7rc1, 2.4.1, 2.5.0 |
Fix Version/s: | 2.2.8rc1, 2.4.3rc1, 2.5.0 |
Type: | Incident report | Priority: | Blocker |
Reporter: | Pavels Jelisejevs (Inactive) | Assignee: | Unassigned |
Resolution: | Fixed | Votes: | 0 |
Labels: | history, macros, performance | ||
Remaining Estimate: | Not Specified | ||
Time Spent: | Not Specified | ||
Original Estimate: | Not Specified |
Issue Links: |
|
Description |
Currently the values displayed in the latest data page are limited by the ZBX_HISTORY_PERIOD period. The same should be done for history-related macros, since otherwise they may cause performance problems. |
Comments |
Comment by Arvids Godjuks (Inactive) [ 2014 Oct 22 ] |
Fixed in dev branch svn://svn.zabbix.com/branches/dev/ZBX-8928 |
Comment by Arvids Godjuks (Inactive) [ 2014 Oct 22 ] |
(1) No translation changes jelisejev CLOSED. |
Comment by Arvids Godjuks (Inactive) [ 2014 Oct 23 ] |
Re-created the dev branch from 2.2, applied the fix. |
Comment by Pavels Jelisejevs (Inactive) [ 2014 Oct 28 ] |
(2) We also allow to reference last values with the so called functional macro "{host.item.last()}". It can be used in graph names and map element labels. It needs to be limited as well. Note that for resolving map label macros it's better to use the items lastvalue property instead of using the HistoryManager. arvids.godjuks RESOLVED in r50256 jelisejev I have an item with no data, but the "{host.item.last()}" macro in a graph that points to that item is always resolved into "0". arvids.godjuks RESOLVED in r50593 jelisejev CLOSED. |
Comment by Pavels Jelisejevs (Inactive) [ 2014 Nov 14 ] |
TESTED. |
Comment by Arvids Godjuks (Inactive) [ 2014 Nov 24 ] |
(3) Due to the changes between 2.2 and 2.4 I was unable to make a straight upstream merge. Created a dev branch for 2.4 version: svn://svn.zabbix.com/branches/dev/ZBX-8928-2.4 jelisejev TESTED. |
Comment by Arvids Godjuks (Inactive) [ 2014 Nov 24 ] |
Fixed in 2.2.8rc1, 2.4.3rc1, 2.5.0 (trunk) |
Comment by Alexander Vladishev [ 2014 Nov 25 ] |
(4) ChangeLog message appears in 2.5, 2.4 and 2.2 sections - it should not be listed in the 2.5 section arvids.godjuks RESOLVED in 50812 in 2.5.0 (trunk) branch sasha CLOSED |