-
Problem report
-
Resolution: Fixed
-
Minor
-
6.0.14rc1, 6.2.8rc1, 6.4.0rc2
-
Sprint 97 (Feb 2023), Sprint 98 (Mar 2023), Sprint 99 (Apr 2023), Sprint 100 (May 2023), Sprint 101 (Jun 2023)
-
1
Problem description: When suffixes are used in "thresholds" field in "Top hosts" or "Item value" widgets they always utilize the 1024 base step (f.e. 1K = 1024, 1M = 1024K e.t.c.). This is not correct as not always the item values represent bytes and in many cases the 1000 base should be used. This should be determined by the units set on the item or by units specified in the widget (can be done only in Item value widget).
Steps to reproduce:
- Create a host with a numerical trapper item
- Create an Item value widget and a Top hosts widget that monitor the created item
- Add the following thresholds to the background of the "Item value widget":
- 999
- 3K
- 5M
- 1G
- Add the same thresholds to the corresponding column in "Top hosts" widget
- Send the following values to the item and check how the color of background/indicator will change:
- 3030
- 3073
- 5000999
- 1000999999
- 1024000001
Result: the color of the background/indicator changes as if the suffix base is 1024
Expected: The base of the suffixes should be 1000 or 1024 based on the following (1024 if bytes are used as units):
1 - In Item value widget - based on the value on Units field and if not defined, then based on the units of the item.
2 - In Top hosts widget - based on the units defined in item configuration.
- part of
-
ZBXNEXT-743 New graph type: Gauge
- Closed