Zabbix 2.4
A custom Item returns "ok" if all apps are running and a list of non-running apps otherwise.
E.g. "app1 app2" item value means that app1 and app2 are down.
The trigger alerts whenever item <> "ok", that is some apps are down.
However, the trigger should also alert whenever item value changes, as long as it's not "ok", e.g. value goes from "app1" to "app1 app2".
How can this be implemented? The problem is that the trigger is already in PROBLEM state, so how can it alert again?
Checking "Multiple PROBLEM events generation" in trigger config doesnt help, since I dont want the trigger to alert every time it fails, but only when the item value changes.
I tried ({template.item.count(#1,ok,ne)} = 1) and ({template.item.change()}=1), but after correctly alerting it goes back to OK state.
What I need is conditional Multiple PROBLEM generation, where a PROBLEM trigger can alert again, but only if a condition is satisfied.
Any help is appreciated.
A custom Item returns "ok" if all apps are running and a list of non-running apps otherwise.
E.g. "app1 app2" item value means that app1 and app2 are down.
The trigger alerts whenever item <> "ok", that is some apps are down.
However, the trigger should also alert whenever item value changes, as long as it's not "ok", e.g. value goes from "app1" to "app1 app2".
How can this be implemented? The problem is that the trigger is already in PROBLEM state, so how can it alert again?
Checking "Multiple PROBLEM events generation" in trigger config doesnt help, since I dont want the trigger to alert every time it fails, but only when the item value changes.
I tried ({template.item.count(#1,ok,ne)} = 1) and ({template.item.change()}=1), but after correctly alerting it goes back to OK state.
What I need is conditional Multiple PROBLEM generation, where a PROBLEM trigger can alert again, but only if a condition is satisfied.
Any help is appreciated.
Comment