We have a custom zabbix trapper item that is for monitoring the status of a camera on an NVR. If the camera goes down (or comes back online) the NVR immediately sends a trapper message. It sends the current state of all cameras every so often, like when the service restarts.
My issue is with defining an appropriate trigger on Zabbix to alert me when a camera is offline. I don't want alerts for momentary outages, only if the camera remains down for at least a few minutes. I've tried using min/max but the issue is this: if the camera has been online and then goes offline then min(2m) doesn't really help, since the only value within the last 2m IS the offline message that just came in.
I think I need a more complex trigger definition but I'm having trouble coming up with the expression. I basically don't want the trigger firing for at least X minutes after the value goes to offline, but there will be only one value in the DB from that time period.
My issue is with defining an appropriate trigger on Zabbix to alert me when a camera is offline. I don't want alerts for momentary outages, only if the camera remains down for at least a few minutes. I've tried using min/max but the issue is this: if the camera has been online and then goes offline then min(2m) doesn't really help, since the only value within the last 2m IS the offline message that just came in.
I think I need a more complex trigger definition but I'm having trouble coming up with the expression. I basically don't want the trigger firing for at least X minutes after the value goes to offline, but there will be only one value in the DB from that time period.
Comment