The following trigger was meant to fire when out of 5 successive polls of the InOctets of a port on switch xxx, 4 are over 51200. It should remain in problem state until 10 polls are under or equal to 51200:
({TRIGGER.VALUE}=0&{xxx:fInOctets.2.count(#5,51200 ,"gt")}=4)|
({TRIGGER.VALUE}=1&{xxx:fInOctets.2.count(#10,5120 0,"gt")}=0)
Only it is not working. The item is polled every minute and the trigger goes into problem state when we expect it to, but a minute later, it returns to the OK state, only to fire again the next minute.
What am I doing wrong?
(The actual trigger doesn't have a line-break following the '|' sign. I just reformatted for readability.)
({TRIGGER.VALUE}=0&{xxx:fInOctets.2.count(#5,51200 ,"gt")}=4)|
({TRIGGER.VALUE}=1&{xxx:fInOctets.2.count(#10,5120 0,"gt")}=0)
Only it is not working. The item is polled every minute and the trigger goes into problem state when we expect it to, but a minute later, it returns to the OK state, only to fire again the next minute.
What am I doing wrong?
(The actual trigger doesn't have a line-break following the '|' sign. I just reformatted for readability.)