[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.
Instead the value increases as well when that value is maintained.
This way it becomes dependent on the interval.

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 suggest an extra parameter to enable this.

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().
there doesn't seem to be anything to be implemented here, it would have been a good question on the irc channel
please see http://zabbix.org/wiki/Getting_help for support options.

Comment by Frater [ 2017 Nov 25 ]

Hi RichLV,

I think I didn't explain it good enough.
I'm already using last, which gives me the info that there is currently 100% packetloss.
It interests me to know if I had 100% packetloss in the past hour and how many times.
If someone calls me he has no Internet, I can look at the dashboard and have all the info at hand.

If someone's router went offline 2 times for 5 minutes in the past hour, count(1h,100) would give me 10.
I am not that much interested in those 10 minutes (in this case), but more in the 2 times it went offline.

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
packetloss.count(1h,100,,edge)>1 = went offline more than 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.
I have always cosidered this to be part of basic functionality.

Someone made a patch for this, but I can't use it (blindly) as this patch was created for an older version of Zabbix.
He named this macro

{TRIGGER.FUNCTION}

The last line I gave before would then be:

packetloss.count(1h,100,,edge)>1 = went offline {TRIGGER.FUNCTION}

times in the past hour

Generated at Tue Apr 23 14:10:45 EEST 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.