[ZBXNEXT-8211] New item value type Binary Created: 2022 Dec 21 Updated: 2024 Apr 10 Resolved: 2024 Apr 03 |
|
Status: | Closed |
Project: | ZABBIX FEATURE REQUESTS |
Component/s: | API (A), Frontend (F), Proxy (P), Server (S) |
Affects Version/s: | 6.4 (plan) |
Fix Version/s: | 7.0.0alpha1, 7.0 (plan) |
Type: | New Feature Request | Priority: | Major |
Reporter: | Alex Kalimulin | Assignee: | Artjoms Rimdjonoks |
Resolution: | Fixed | Votes: | 0 |
Labels: | None | ||
Σ Remaining Estimate: | Not Specified | Remaining Estimate: | Not Specified |
Σ Time Spent: | Not Specified | Time Spent: | Not Specified |
Σ Original Estimate: | Not Specified | Original Estimate: | Not Specified |
Attachments: |
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
||||||||||||
Issue Links: |
|
||||||||||||
Sub-Tasks: |
|
||||||||||||
Epic Link: | Zabbix 7.0 | ||||||||||||
Team: | |||||||||||||
Sprint: | Sprint 96 (Jan 2023), Sprint 97 (Feb 2023), Sprint 98 (Mar 2023), Sprint 99 (Apr 2023), Sprint 100 (May 2023), Sprint 101 (Jun 2023) | ||||||||||||
Story Points: | 10 |
Description |
We need to introduce a new value type (aka Type of information) Binary. It must be stored as a blob in a new table history_binary. The first (and the only, for now) use for this type is to store screenshots from browser tests. It's understood that introducing a new value type is a lot of work in all components so we need to reduce the scope of the changes to as narrow as possible. We also need to keep the number of design decisions to the minimum. For instance, rather than figuring out how triggers should work with the Binary type, we can state that triggers do not support this type and thus can be kept off value cache. Other functionality we can now sacrifice in the name of narrow scope is preprocessing and support for item types other than Dependent (thus, no need to support it in agents, SNMP, sender, etc). In the UI/API we must also figure how to get away with as few changes as possible (e.g. Items form apparently needs to be changed, but no need to invent how to get and display history in Latest data, just string "binary" is enough). Please research this change request and:
|
Comments |
Comment by Artjoms Rimdjonoks [ 2023 May 10 ] |
Available in versions:
|
Comment by Martins Valkovskis [ 2023 May 19 ] |
Updated documentation ('binary' value type added):
API documentation: |
Comment by Glebs Ivanovskis [ 2023 Nov 03 ] |
I would like to draw attention to loadable module binary compatibility issue introduced with this feature. The problem is very similar to Fortunately, unlike Of course, module authors would appreciate restoring compatibility. For AGENT_RESULT it can be easily achieved by moving new char *bin field to the end of struct, hence the offset of int type will not be affected. Also ZBX_HISTORY_WRITE_CBS needs to be restored to its original shape. If needed, new history_bin_cb field can be introduced in a whole new ZBX_HISTORY_WRITE_CBS_v2 returned by whole new zbx_module_history_write_cbs_v2(). |
Comment by Andris Mednis [ 2023 Nov 06 ] |
Thanks, cyclone, for reporting this! |
Comment by Alex Kalimulin [ 2023 Nov 07 ] |
The module problem will be solved in |