Ad Widget

Collapse

Trigger expression based on items clock

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • tsalle
    Member
    Zabbix Certified Specialist
    • Oct 2012
    • 79

    #1

    Trigger expression based on items clock

    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 :

    ({host:key.dayofweek(0)}=1 & {host:key.count(1d,,,1d)}=0 ) |
    ({host:key.dayofweek(0)}#1 & {host:key.count(1d)=0} )
    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
  • tsalle
    Member
    Zabbix Certified Specialist
    • Oct 2012
    • 79

    #2
    already a feature request

    It seems that there is already a feature request for that :


    I voted for it

    Comment

    Working...