Hello, Zabbix users,
I want to know how to do the following:
I have an item, say CPU steal time, with refresh interval of 60 seconds. I want to create a trigger, which activates only when the last 5 values are above 20% (in my case the last 5 values represent 5 minutes), i.e., every value of the last 5 values is greater than 20. For example:
21 25 24 25 29
|----|----|----|----| >>> TRUE
21 5 24 25 6
|----|----|----|----| >>> FALSE
I know I can use this:
system.cpu.util[,steal].last(#1)}>20 and
system.cpu.util[,steal].last(#2)}>20 and
system.cpu.util[,steal].last(#3)}>20 ... (etc.)
But that's a lot of typing and what about if I want the last 20 values - I am not going to type 20 lines of expressions.
How to do that easily? Thank you!
I want to know how to do the following:
I have an item, say CPU steal time, with refresh interval of 60 seconds. I want to create a trigger, which activates only when the last 5 values are above 20% (in my case the last 5 values represent 5 minutes), i.e., every value of the last 5 values is greater than 20. For example:
21 25 24 25 29
|----|----|----|----| >>> TRUE
21 5 24 25 6
|----|----|----|----| >>> FALSE
I know I can use this:
system.cpu.util[,steal].last(#1)}>20 and
system.cpu.util[,steal].last(#2)}>20 and
system.cpu.util[,steal].last(#3)}>20 ... (etc.)
But that's a lot of typing and what about if I want the last 20 values - I am not going to type 20 lines of expressions.
How to do that easily? Thank you!
Comment