[ZBXNEXT-2555] New trigger function to determine number of value in history, matching a regexp Created: 2014 Oct 31  Updated: 2014 Nov 03

Status: Open
Project: ZABBIX FEATURE REQUESTS
Component/s: API (A), Frontend (F), Server (S)
Affects Version/s: None
Fix Version/s: None

Type: Change Request Priority: Trivial
Reporter: Filipp Sudanov (Inactive) Assignee: Unassigned
Resolution: Unresolved Votes: 1
Labels: triggerfunctions
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate

 Description   

Paricular user's case:

We have a program, that produces a log file. When this program starts, it writes START into that log, when it finishes - FINISH. We need a trigger, that would trigger, if withing 5 minutes after START there is no FINISH.
Currently we do not have any trigger function, that would help us to determine, which text is the last in the log - START or FINISH.

A new proposed function could be simular to already existing "count" function. It should return how many values ago was the last value that matches a given regex. It returns sequence number from history's end - it will be different on each trigger calculation.
This way we can compare two such functions in a trigger expression and find out, which was the last - START of FINISH.



 Comments   
Comment by richlv [ 2014 Oct 31 ]

this might be solved by ZBXNEXT-2045 - you would get unix timestamps for start & finish, and compare them in the trigger expression.
would that solve this usecase ?

Comment by Filipp Sudanov (Inactive) [ 2014 Nov 03 ]

I think ZBXNEXT-2045 won't solve this usecase reliably. The task is to determine the sequence of item values. If two values would arrive at the same second, this won't help to determine their sequence.

Comment by richlv [ 2014 Nov 03 ]

good point - maybe we should include nanoseconds somehow there

Generated at Wed Apr 24 09:36:16 EEST 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.