[ZBXNEXT-2020] allow to configure whether not discovered lld items should still collect data Created: 2013 Nov 14 Updated: 2024 Aug 09 Resolved: 2024 Apr 16 |
|
Status: | Closed |
Project: | ZABBIX FEATURE REQUESTS |
Component/s: | Frontend (F), Server (S) |
Affects Version/s: | 2.2.0 |
Fix Version/s: | 7.0.0beta3, 7.0 (plan) |
Type: | New Feature Request | Priority: | Major |
Reporter: | richlv | Assignee: | Aleksejs Sestakovs (Inactive) |
Resolution: | Fixed | Votes: | 46 |
Labels: | lld, ttl | ||
Σ 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: | |||||||||||||||||||||||||||||||||
Target end: | |||||||||||||||||||||||||||||||||
Sprint: | S2401, S24-W10/11 | ||||||||||||||||||||||||||||||||
Story Points: | 3 |
Description |
currently non-discovered items are immediately marked as missing. if there should be a way to tell zabbix not to mark those items as missing - in the most simple case it could be a checkbox, but a better approach would be input field to say after how many failed discoveries items should stop working. for example, somebody could set it to 3 so only 3 consequent discoveries missing something would mark it for future deletion and stop monitoring it. |
Comments |
Comment by Alexander Vladishev [ 2017 Feb 27 ] |
Similar issue: |
Comment by richlv [ 2017 Oct 31 ] |
|
Comment by Chris M [ 2021 Mar 31 ] |
Closely following this issue. This is something other monitoring products have addressed. It's an even nosier issue in environments with significant Windows footprints where the SNMP OID's for Network Adapters are very sensitive to change. |
Comment by Adam Kubica [ 2022 Oct 28 ] |
I have exacly the same problem as described in There is many situations when item is not discovered any more and should have disabled trigger at LLD or eventual for specific trigger context. |
Comment by Jeffrey Descan [ 2023 Jan 13 ] |
Following this issue as it would be helpful to have an option to disable (item/trigger) prototypes, when the 'Keep lost resource period' kicks in. Please provide us with the option to choose this on a case by case basis (in the discovery). |
Comment by Thomas Equeter [ 2023 Aug 09 ] |
Two more use cases. Dynamic infrastructures pollute the Zabbix queueI monitor Kubernetes with Zabbix. It's a highly dynamic infrastructure, items and hosts come and go to match the application's workload. I prefer not to remove immediately the results of a LLD that aren't discovered anymore, just in case I need their history to investigate an incident. But then I end up with hundred of items in the queue for nodes or pods that were replaced, and I can't differentiate them from real Zabbix issues (overloaded proxy, misconfigured items etc.) Dynamic infrastructures can produce invalid dataI connect to the IP of certain discovered pods to get further metrics from the application. I then aggregate the metrics of the group into a calculated item. When a pod of application A gets deleted and its IP is reallocated to a new pod of application B that happens to answer to the same queries, Zabbix feeds metrics of B into the old items of A, even though the LLD marks them as lost resources. Of course, my aggregate gets plain wrong. In that case I have no other choice than to remove lost resources immediately and forgo their history. ConclusionTo monitor dynamic infrastructures, Zabbix needs to support pausing collection of items/hosts when they are not discovered anymore. |
Comment by Dimitri Bellini [ 2023 Aug 28 ] |
@Thomas very good conclusion. |
Comment by user185953 [ 2023 Sep 01 ] |
Extension proposal: I propose extending this "after how many failed discoveries items should stop working" setting so it supports both "#7" and "5d" formats, just like min(), avg(), max(), etc. I leave it to developers if setting it to "5d" will x) disable collection exactly after 5 days, or y) disable collection on next LLD run after 5 days run out. |
Comment by Alexei Vladishev [ 2023 Dec 28 ] |
This functionality is coming in 7.0, now under development. Thanks for all your comments. |
Comment by user185953 [ 2024 Jan 30 ] |
FR looks good, but I can't understand 1.c.i.1. "the flag must be set to 1 (see 1.a)". Maybe change 1.c.i. to "When LLD rule is executed and entities (items, triggers, hosts) are not discovered for more than this period" and change 1.c.i.1. to "the flag (see 1.a) must be set to 1 and the entity disabled? |
Comment by user185953 [ 2024 Jan 30 ] |
Will search be able to find items/triggers in this new "disabled by LLD" state? Will it find them exclusively, or only mixed together with "regular disableds"? Will search be able to find entities in new "not discovered, but still collecting" state (related to ZBXNEXT-8508 )? |
Comment by Aleksejs Sestakovs (Inactive) [ 2024 Feb 26 ] |
That will be new internal flag. If entity is disabled by LLD rule, this flag will be set to 1. |
Comment by Eliza Sekace (Inactive) [ 2024 Feb 26 ] |
user185953, thank you for the suggestion. The current task does not include implementing the ability to filter entities by "disabled by LLD" status, but it will be considered for potential implementation in the nearest future. |
Comment by Aleksejs Sestakovs (Inactive) [ 2024 Mar 28 ] |
Available in versions:
|
Comment by Martins Valkovskis [ 2024 Apr 09 ] |
Updated documentation:
|
Comment by Eliza Sekace (Inactive) [ 2024 Apr 10 ] |
Updated API documentation: |