[ZBXNEXT-4254] count(1h,100) counts the times that a value IS 100, but I'm often interested when it becomes 100 Created: 2017 Nov 24 Updated: 2017 Nov 25 |
|
Status: | Open |
Project: | ZABBIX FEATURE REQUESTS |
Component/s: | Server (S) |
Affects Version/s: | 3.4.5rc1 |
Fix Version/s: | None |
Type: | New Feature Request | Priority: | Minor |
Reporter: | Frater | Assignee: | Andris Zeila |
Resolution: | Unresolved | Votes: | 0 |
Labels: | triggerfunctions | ||
Remaining Estimate: | Not Specified | ||
Time Spent: | Not Specified | ||
Original Estimate: | Not Specified | ||
Environment: |
Linux |
Description |
When I use the function count() I'm more often interested in the times that it becomes a certain value. Most of the time I'm only interested in the times it becomes that value. If it stays that value and the count() increases it spoils the meaning. Of course the current behaviour should stay the default behaviour. I'm also interested in some workaround to do this now. |
Comments |
Comment by richlv [ 2017 Nov 24 ] |
it seems like you are looking for the most basic function, last(). |
Comment by Frater [ 2017 Nov 25 ] |
Hi RichLV, I think I didn't explain it good enough. If someone's router went offline 2 times for 5 minutes in the past hour, count(1h,100) would give me 10. I have a programmable RC radio (OpenTX) where this is called "edge". I would use it like this: packetloss.count(1h,100,,edge)=1 = went offline once in the past hour The last triggger would be dependent on the trigger packetloss.last()=100 Having already given this example I would like to use this one as an illustration how I would like to use another feature I'm craving for a long time. I'm actually needing it for almost every trigger that's not last() (avg(), sum(), count()). In the trigger I'm showing in the dashboard I would like to give the result of the function that's leading to this trigger. Someone made a patch for this, but I can't use it (blindly) as this patch was created for an older version of Zabbix. The last line I gave before would then be: packetloss.count(1h,100,,edge)>1 = went offline {TRIGGER.FUNCTION} times in the past hour |