[ZBX-11508] Handling of boolean type not correct Created: 2016 Nov 21 Updated: 2019 Mar 30 Resolved: 2019 Mar 30 |
|
Status: | Closed |
Project: | ZABBIX BUGS AND ISSUES |
Component/s: | Proxy (P), Server (S) |
Affects Version/s: | 3.0.4 |
Fix Version/s: | None |
Type: | Incident report | Priority: | Minor |
Reporter: | Raymond Kuiper | Assignee: | Zabbix Development Team |
Resolution: | Won't fix | Votes: | 0 |
Labels: | None | ||
Remaining Estimate: | Not Specified | ||
Time Spent: | Not Specified | ||
Original Estimate: | Not Specified |
Attachments: |
![]() ![]() ![]() |
||||||||
Issue Links: |
|
Description |
The manual states that using a data type of boolean should have the following behaviour: "Data type is used for integer items in order to specify the expected data type: As stated, any non-zero numeric values should be considered a boolean True and thus should be translated as "1" in the history. This is currently not the case in Zabbix 3.0.4. A value of '2' is stored without translation. |
Comments |
Comment by Raymond Kuiper [ 2016 Nov 21 ] |
Tested with both trapper and internal items. |
Comment by Raymond Kuiper [ 2016 Nov 21 ] |
Curiously enough, sending 10000 as a value does translate to 1. From that moment on, translation seems to be working correctly. See screenshot-1 |
Comment by Aleksandrs Saveljevs [ 2016 Nov 21 ] |
Could it be that you had a "Decimal" item initially, then switched to "Boolean" and started sending values, but the server's configuration cache still used the old "Decimal" setting for some time? |
Comment by Raymond Kuiper [ 2016 Nov 21 ] |
It was a newly created item which was set to boolean from the start. |
Comment by Aleksandrs Saveljevs [ 2016 Nov 21 ] |
I could not reproduce it with trapper items (where the value is obtained externally), but internal items (where the value is obtained from inside the server) do not seem to take "Boolean" setting into account indeed. |
Comment by Raymond Kuiper [ 2016 Nov 21 ] |
Hmm, wait. For the trapper you might be right, issue might be due to config cache there. See new screenshot-2 and screenshot-3. |
Comment by Raymond Kuiper [ 2016 Nov 21 ] |
@asaveljevs: Thanks for confirming! |
Comment by Aleksandrs Saveljevs [ 2016 Nov 23 ] |
As Raymond already mentioned in However, there are other item types like simple checks where the value can be obtained both internally (e.g., ICMP pings) and externally (VMware items?), so the choice of whether to limit the data type cannot be made based on item type alone. Therefore, this issue looks more like a feature request, so it is proposed to close this as a duplicate of |
Comment by Raymond Kuiper [ 2016 Nov 23 ] |
If this is considered a frontend bug, can this be resolved under this ZBX or do we need to add a new one referencing this one? |
Comment by Aleksandrs Saveljevs [ 2016 Nov 23 ] |
We decided not to fix the frontend right now, because the problem is minor and would not solve the problem fully anyway (e.g., simple checks). |
Comment by Aleksandrs Saveljevs [ 2016 Nov 28 ] |
Raymond, would you like to keep this issue open or we can close it as a duplicate of |
Comment by Alexander Vladishev [ 2019 Mar 30 ] |
Seems it was fixed in version 3.4.1 with |