Ad Widget

Collapse

Problem closes without recovery expression fulfilment

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • dirai19
    Junior Member
    • Jul 2019
    • 8

    #1

    Problem closes without recovery expression fulfilment

    Hi.

    There is item, for example "item1"
    Type: int
    History store period: 90d

    And there is trigger for this item.
    Problem expression:
    {host:item1.change()}<0
    Recovery expression:
    ({host:item1.max(7884000)} - {host:item1.last()}) = 0

    Recovery expression logic: recovery happens if last item value = max value for 3 months period

    But strange behavior occurs when problem closes with recovery expression still being False

    Have anyone got something similar?
    Any suggestions what can it be?
  • tim.mooney
    Senior Member
    • Dec 2012
    • 1427

    #2
    Review the section of the manual on recovery expressions, https://www.zabbix.com/documentation...iggers/trigger

    In particular:
    Recovery expression Logical expression (optional) defining additional conditions that have to be met before the problem is resolved, after the original problem expression has already been evaluated as FALSE.
    Recovery expression is useful for trigger hysteresis. It is not possible to resolve a problem by recovery expression alone if the problem expression is still TRUE.
    This field is only available if 'Recovery expression' is selected for OK event generation.
    Supported since Zabbix 3.2.0.

    Note the words I've emphasized.

    Comment

    • dirai19
      Junior Member
      • Jul 2019
      • 8

      #3
      Thanks for answer.
      I've read docs, expressions work as expected.
      I've got advice to check if Zabbix value cache is fully used. And it is.
      Now this is my main version why problem occured

      Comment

      • cyber
        Senior Member
        Zabbix Certified SpecialistZabbix Certified Professional
        • Dec 2006
        • 4807

        #4
        IIRC, if there is not enough historic data in cache, then it should do db query each time to obtain additional needed data and you should see that as "cache misses"... More you have those cache misses, slower your trigger calculation gets...
        https://www.zabbix.com/documentation...ms/value_cache

        Comment

        Working...