[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: |
|
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. 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. |
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. |
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 |