On the Zabbix server (version 3.2.1) there is a data element of the type log, which is collected every 30 seconds. This log contains the events: "Connection disconnection" and "Connection establishment".
A trigger has been created for this item that works. But very often these 2 events go in a row. That is, the connection fell and immediately restored. 2 messages from zabbix come at once. How to rewrite the trigger so that it works only if there is a "Connection disconnection" event, and the "Connection establishment" events do not follow?
Problem expression
{TRANSFILE_2017:log["D:\FC_Run.log"," --- ",windows-1251].str(Разрыв)}=1
Recovery expression
{TRANSFILE_2017:log["D:\FC_Run.log"," --- ",windows-1251].str(Установка)}=1
Tags: None