Hi, everyone! I’m trying to configure a trigger in Zabbix to monitor a metric and generate an alert only if, on the second consecutive check, the value is equal to or greater than X. I’ve tried some expressions using count() and last(), but I’ve encountered issues, such as errors with operators in the third parameter of the count() function.
What I need:
What I need:
- The trigger should check the last two values.
- If both are greater than or equal to X, the alert should be triggered.
My latest attempt was: - count(/item_name,#2,">=X")=2
This expression is not working as expected, and I’m getting the error: "operator not supported for function COUNT".
Can anyone help me fix the expression or guide me in the right direction? Thanks in advance!
Comment