-
New Feature Request
-
Resolution: Unresolved
-
Major
-
None
-
None
-
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?
- is duplicated by
-
ZBXNEXT-6297 master item: trigger expressions evaluation after all dependent items (pre)processing
- Closed
-
ZBX-19871 Trigger use old data from dependent item
- Closed