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

LLD overrides cause trigger creation failures

XMLWordPrintable

    • Icon: Problem report Problem report
    • Resolution: Won't fix
    • Icon: Trivial Trivial
    • 5.4 (plan)
    • 5.2.1, 5.4.0alpha1
    • Server (S)
    • Sprint 70 (Nov 2020), Sprint 71 (Dec 2020)
    • 1

      It seems that the problem described inĀ ZBX-18551 affects trigger creation as well. Consider having the following JSON for LLD:

      [
         {
             "{#TYPE}": "A",
             "{#DATA}": 1
         },
         {
             "{#TYPE}": "B",
             "{#DATA}": 1
         },
         {
             "{#TYPE}": "A",
             "{#DATA}": 2
         },
         {
             "{#TYPE}": "B",
             "{#DATA}": 2
         }
      ]
      

      You can look at this as if having two sets of objects (objects A and objects B), each having two values (1 and 2):

      • A.1
      • B.1
      • A.2
      • B.2

      There are two item prototypes assigned to this LLD rule:

      • trap.a[{#DATA}]
      • trap.b[{#DATA}]

      At this point, this configuration would cause an error as there will be item duplicates, so overrides are added:

      • TypeA
        Filter: {#TYPE} mathes A
        Operations: Item prototype contains trap.b
        Discover: No
        
      • TypeB
        Filter: {#TYPE} mathes B
        Operations: Item prototype contains trap.a
        Discover: No
        

      All 4 items are discovered without problems after the fix made in ZBX-18551, but problems remain with triggers:

      • Single item trigger for type A works fine:
        {test:trap.a[{#DATA}].last()}=0
      • Single item trigger for type B works fine too:
        {test:trap.b[{#DATA}].last()}=0
      • Trigger with both A and B is not created:
        {test:trap.a[{#DATA}].last()}=0 or {test:trap.b[{#DATA}].last()}=0

      It is expected that it is possible to create a trigger from multiple item prototypes:

      {test:trap.a[{#DATA}].last()}=0 or {test:trap.b[{#DATA}].last()}=0

            MVekslers Michael Veksler
            vjaceslavs Vjaceslavs Bogdanovs
            Team C
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: