Hi all Zabbix-friends!
I have made a custom script which is used in zabbix agent(active) to create LLD-rule and within the same script there is also the zabbix-sender which is sending the values to those LLD-items.
Script itself is parsing some channel information regarding which channel has went in the error state, so if a channel is in error state the LLD-item prototype is created from those channels and status states and depending the future states of those channels, the zabbix-sender will send value 1 if channel is still in the error state or value 0 if it has cleared. And of course on the first time the value 1 is sent to the item to mark that channel went in the error state.
My problem is when the channel goes into an error state and the zabbix-sender sends value 1 to the item, as soon as the value reaches to the item the trigger fires also. It would be great to have something like .min(5m)}>0 function to wait a few minutes and after that send emails. I am pretty sure that problem is that when everything is ok and all channels are in running state the script is not sending any data to zabbix.
Can someone please help me a bit here
I am using zabbix 3.0.14
I have made a custom script which is used in zabbix agent(active) to create LLD-rule and within the same script there is also the zabbix-sender which is sending the values to those LLD-items.
Script itself is parsing some channel information regarding which channel has went in the error state, so if a channel is in error state the LLD-item prototype is created from those channels and status states and depending the future states of those channels, the zabbix-sender will send value 1 if channel is still in the error state or value 0 if it has cleared. And of course on the first time the value 1 is sent to the item to mark that channel went in the error state.
My problem is when the channel goes into an error state and the zabbix-sender sends value 1 to the item, as soon as the value reaches to the item the trigger fires also. It would be great to have something like .min(5m)}>0 function to wait a few minutes and after that send emails. I am pretty sure that problem is that when everything is ok and all channels are in running state the script is not sending any data to zabbix.
Can someone please help me a bit here

I am using zabbix 3.0.14