Hi zabbix forum 
I have to create triggers based on items clock value.
For example, i have items with data from tuesday to saturday.
On monday, i want to throw an alert if there was no data on saturday.
i've tried to use count with time_shift parameter, but it doesn't work all the time :
I can explain the expression like this :
if it's monday and no data during 24h one day ago then alert.
else, if it's not monday and no data for more than 24h then alert.
But if i have a data on saturday early morning (at 8h for example), on monday, 8h01 there is an alert.
Is there a way to test if the items last clock was between two other dates ?
I need a trigger function to retrieve the item last clock.
Thank's for your help..
I'm using zabbix 2.2.0

I have to create triggers based on items clock value.
For example, i have items with data from tuesday to saturday.
On monday, i want to throw an alert if there was no data on saturday.
i've tried to use count with time_shift parameter, but it doesn't work all the time :
({host:key.dayofweek(0)}=1 & {host:key.count(1d,,,1d)}=0 ) |
({host:key.dayofweek(0)}#1 & {host:key.count(1d)=0} )
({host:key.dayofweek(0)}#1 & {host:key.count(1d)=0} )
if it's monday and no data during 24h one day ago then alert.
else, if it's not monday and no data for more than 24h then alert.
But if i have a data on saturday early morning (at 8h for example), on monday, 8h01 there is an alert.
Is there a way to test if the items last clock was between two other dates ?
I need a trigger function to retrieve the item last clock.
Thank's for your help..
I'm using zabbix 2.2.0
Comment