[ZBXNEXT-5202] Default Item value if it is Empty or "Not Supported" Created: 2019 Apr 30 Updated: 2021 Oct 14 Resolved: 2021 Oct 14 |
|
Status: | Closed |
Project: | ZABBIX FEATURE REQUESTS |
Component/s: | None |
Affects Version/s: | 4.0.7, 4.2.1 |
Fix Version/s: | None |
Type: | New Feature Request | Priority: | Critical |
Reporter: | Nike | Assignee: | Unassigned |
Resolution: | Won't fix | Votes: | 5 |
Labels: | "Not, Empty, Error, Item, Supported | ||
Remaining Estimate: | Not Specified | ||
Time Spent: | Not Specified | ||
Original Estimate: | Not Specified |
Description |
It often happens that a script or request to any database can temporarily return nothing. I propose to give the opportunity to set the ITEM to the default value if the ITEM returns nothing or "Not Supported". If the ITEM returns nothing or "Not Supported", then the default value should be returned. This setting must be in the configuration of the ITEM itself. Surprised that for so many years the existence of the product of this option has not appeared. It will also give the opportunity to draw graphics without voids. |
Comments |
Comment by Nike [ 2019 Aug 15 ] |
Up |
Comment by Michel van Son [ 2020 Feb 03 ] |
I've written a script to do this for SNMP devices (https://share.zabbix.com/zabbix-tools-and-utilities/dir-libraries/bash/return-a-value-on-no-such-instance)
However! be very carefull with this because there is no way of knowing whether there was an error or just nothing to return... |
Comment by Alexei Vladishev [ 2021 Oct 14 ] |
It is possible using simple preprocessing rule "Validation->Check for not supported value" with "Set value to <something>". |