Hi,
I have a custom item, e.g. item1. The value of this item is 0 or positive integer (it is possible to make it equal 1).
item1 > 0 - is OK.
I use a trigger for this item. Depend on triggers state I need to use two different remote commands.
No problem.
and two different actions for PROBLEM and OK.
But I would like to use several last values of item1. E.g. if last 5 values of item1 equal 0, then trigger switches to PROBLEM, and if last 5 values of item1 equal 1, then OK.
I tried to use
This works fine for a PROBLEM but switches to OK after first value of item1=1.
I looked manual for trigger and action descriptions but didn't find any answer.
I have a custom item, e.g. item1. The value of this item is 0 or positive integer (it is possible to make it equal 1).
item1 > 0 - is OK.
I use a trigger for this item. Depend on triggers state I need to use two different remote commands.
No problem.
Code:
{host:item1.last(0)=0}
But I would like to use several last values of item1. E.g. if last 5 values of item1 equal 0, then trigger switches to PROBLEM, and if last 5 values of item1 equal 1, then OK.
I tried to use
Code:
{host:item1.max(#5)=0}
I looked manual for trigger and action descriptions but didn't find any answer.
Comment