-
Incident report
-
Resolution: Fixed
-
Trivial
-
None
-
6.0.26
-
None
Context
I'm creating an LLD that discovers the network interfaces of a piece of equipment through an HTTP API. This LLD returns a list of interfaces that is then used by two kind of item prototypes:
- One is an item prototype that fetches additional information for a specific interface through the same API. I then have dependent item prototypes that extract information from that item prototype.
- Some other are item prototypes that are not dependent items.
Based on this, I don't want to create some of these items that are not working for virtual interfaces (like Port-Channels). To do this, I'm using an override in the LLD based on the name of the interface to not discover these items.
It is working perfectly fine for item prototypes but not for dependent item prototypes. These still are discovered and items are created on the hosts.
Steps to reproduce:
- Create an LLD with item prototypes of different types, including dependent ones. This LLD has a macro name {#IFNAME} containing the name of the interface.
- Check that items are created on the host.
- Add an override in the LLD with the following parameters:
- Filters, A: {#IFNAME} matches ^(Port-Channel)
- Operations:
Object: Item prototype
Condition: contains XXX
Discover: No
Result:
Non-dependent items matching the condition are correctly undiscovered.
Dependent items, even if matching the condition, are still discovered.
Expected:
All items matching the condition should be discovered.
- mentioned in
-
Page Loading...