Uploaded image for project: 'ZABBIX BUGS AND ISSUES'
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-24169

LLD override does not work with dependent items

XMLWordPrintable

    • Icon: Incident report Incident report
    • Resolution: Unresolved
    • Icon: Trivial Trivial
    • None
    • 6.0.26
    • Server (S)
    • 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:

      1. 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.
      2. Check that items are created on the host.
      3. 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.

            aigars.kadikis Aigars Kadikis
            ageorges.bnc Alexandre Georges
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: