Uploaded image for project: 'ZABBIX FEATURE REQUESTS'
  1. ZABBIX FEATURE REQUESTS
  2. ZBXNEXT-6284

Ability to use multiple dependent items in trigger expressions but in a synchronous way

XMLWordPrintable

    • Icon: New Feature Request New Feature Request
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • None
    • Server (S)
    • None

      Ability to use multiple dependent items in trigger expressions but in a synchronous way. If I have 3 dependent items based on the same master item I would expect that trigger will calculate its expressions at the same time after 3 samples will be saved. Thanks to that trigger generate only one problem with correct ITEM.LASTVALUE resolution in the event table.

      It means that we cannot use multiple items in trigger expressions because it doesn't make sense in most of our cases if trigger generates multiple events almost at the same time based on one master item and only one sample.

      But since the master item return JSON, JSONPATH on trigger level could solve that issue.

      i.e.:

      {"file": "somelogfile.txt", "value": {"count": 3, "min": 0.302, "max": 0.302, "avg": 0.302, "sum": 0.906}, "count": 3}
      

      An additional trigger function that extracts a number value from json sample or clean text. Something like that:

      Log Parser Template:log_parser.master_item.regexp("\"avg": ([\d\.]+),#1, \1) > 0.200
      

      or

      Log Parser Template:log_parser.master_item.jsonpath($.value.avg,#1) > 0.200
      

      Is it makes sense and is it possible in the future?

            wiper Andris Zeila
            agavrilovs Aleksandrs Petrovs-Gavrilovs
            Votes:
            10 Vote for this issue
            Watchers:
            10 Start watching this issue

              Created:
              Updated: