I have a Zabbix item with a key celery_worker.docker
that reads from the zabbix_agentd.conf
userparameter=celery_worker.docker, sudo docker ps -f "status=running" | grep worker
I want to know when it is down for the last 15min. I have trigger with:
{celery_worker.docker.str(ago,300)}=0
But it alerts immediately and not after 300 seconds. (I checked by testing and the alert is right)
If we look at the trigger function page, it explains that str
will look for one occurrence of the string in the specified period.
You might be able to achieve the desired result with the count
function (see the same page for detail).