Ad Widget

Collapse

Single trigger on multiple lld items

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • b52
    Junior Member
    • Nov 2019
    • 15

    #1

    Single trigger on multiple lld items

    Hello
    In Zabbix 5.0.6. I have a Template which uses LLD and a single item-prototype to discover several items on some hosts, which works so far. Now I would like to create one trigger per host which evaluates multiple of these lld items like this:

    Trigger if ( last(ItemA) - last(ItemB) + last(ItemC) + last(ItemD) ) > XY

    Because the Items have always different SNMP oids I need to discover these Items by LLD. But with LLD I only can create triggers inside the LLD and thus only on a single item. On Template/Host level it is not possible to create a trigger on non existant not yet discoverd items.

    Is it possible in to do this in Zabbix? I did not find any answer or working way to realize this, but found several people asking the same question.
    Thanks!
  • cyber
    Senior Member
    Zabbix Certified SpecialistZabbix Certified Professional
    • Dec 2006
    • 4807

    #2
    It is not possible to create such triggers, which would contain multiple discovered items. Discovery is "row based", so it creates things that are at hand at that moment, it cannot predict, are all needed items for such trigger present.

    Comment

    • b52
      Junior Member
      • Nov 2019
      • 15

      #3
      Ok thanks. Well, of course it can not "predict", but one can reach this behavior by simple code design:

      If there is a trigger prototype with missing items push it on a stack. After discovery finishes and all items are discovered create the triggers from that stack. If there are still missing items create the trigger "disabled" and "not supported".

      Thus I will create a feature request for it.

      Comment

      • ed00ble
        Junior Member
        • May 2016
        • 6

        #4
        I'm facing a similar challenge and was wondering if you had submitted a feature request. Maintaining a regular trigger for the discovered items is not sustainable and it would seem like the logic would be fairly straight forward for this feature to be added.

        Comment

        • Raido
          Junior Member
          • Jun 2019
          • 13

          #5
          Also interested

          Comment

          • ItamarMM
            Junior Member
            • Nov 2023
            • 1

            #6
            Also interested.

            I was testing the out of the box template
            AWS Cost Explorer By HTTP
            and I think that being able to setup a trigger like this one is pretty much needed:
            "if last month's cost for Cloudwatch service > 130% of the median for the last x months of the cost of CloudWatch service"?

            Comment

            Working...