[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: PNG File image-2024-03-04-09-52-46-613.png     PNG File image-2024-04-08-14-21-10-084.png     PNG File image-2024-04-08-14-34-20-632.png     PNG File screenshot-1.png     PNG File screenshot-7.png     PNG File screenshot-8.png     PDF File ✅ FR_ Disable entities marked for deletion by LLD v2.1.pdf    
Issue Links:
Causes
Duplicate
is duplicated by ZBXNEXT-7513 Allow to disable entities no longer d... Closed
is duplicated by ZBXNEXT-2739 LLD:Automatically disable item when i... Closed
is duplicated by ZBXNEXT-7679 Remove/disable trigger because of ite... Closed
is duplicated by ZBX-4475 Discovered items (LLD) not passed thr... Closed
is duplicated by ZBX-11844 lifetime for disable, don't delete Closed
Sub-task
Sub-Tasks:
Key
Summary
Type
Status
Assignee
ZBXNEXT-8918 Frontend changes to disable entities ... Specification change (Sub-task) Closed Eliza Sekace  
ZBXNEXT-9083 Update discovery rules in templates Change Request (Sub-task) Closed Andrew Biba  
Epic Link: Zabbix 7.0
Team: Team B
Target end:
Sprint: S2401, S24-W10/11
Story Points: 3

 Description   

currently non-discovered items are immediately marked as missing. if ZBX-4475 is fixed, they would also be stopped being monitored.
in many cases that is ok, you do not want to poll snmp interfaces that went away - but in some cases an entity might disappear for a brief moment, and then monitoring of it would stop until next discovery run, which usually will be hours.

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.
to emulate the current behaviour, it would be set to "1"



 Comments   
Comment by Alexander Vladishev [ 2017 Feb 27 ]

Similar issue: ZBX-11844

Comment by richlv [ 2017 Oct 31 ]

ZBX-9933 asks to deal with associated triggers, and ZBX-10684 did some related documentation changes

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 ZBX-4475.

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 queue

I 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 data

I 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.

Conclusion

To 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.
Thanks

Comment by user185953 [ 2023 Sep 01 ]

Extension proposal:
If LLD preprocessing uses "discards unchanged with hearthbeat", specifying this by "number of fails" will be unpredictable.

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)".
First I realize "the flag" is the flag from 1.a not this "Disable lost entities after period" setting.

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 ]

user185953,

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:

Generated at Mon Jun 09 07:33:02 EEST 2025 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.