Ad Widget

Collapse

Need idea how to realize trigger expression

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ikirtyanov
    Junior Member
    • Sep 2016
    • 5

    #1

    Need idea how to realize trigger expression

    Hi everyone,
    I have a numeric item, which is receiving new value every 1 minute and trigger which fires when the latest value is >0. Now I was asked to create a new trigger, which should fire when previous value is already >0 and > than previous value. But the problem is that next minute item might receive the same value again, so the condition when new value is > than previous won't be true anymore. If I use change() trigger function it would fire when the new value might be < than previous but still > 0.
    Have anybody already had similar requirement and how did you create this trigger expression?
    Thanks in advance for any help.
  • Hamardaban
    Senior Member
    Zabbix Certified SpecialistZabbix Certified Professional
    • May 2019
    • 2713

    #2
    (last() > perv()) and prev()>0


    But the problem is that next minute item might receive the same value again
    - that's not clear.... The latest is equal to the previous? This means that your conditions are no longer met.Nothing more.
    Last edited by Hamardaban; 31-07-2020, 12:51.

    Comment

    • ikirtyanov
      Junior Member
      • Sep 2016
      • 5

      #3
      Thank you for your reply,
      I thought about something like that, but I'm afraid it won't help. When last() > prev() and prev()>0 will happen, trigger will fire but next step it might be (and it 90% will be) that next value will be the same as prev and trigger will become ok then. As there are new item values incoming each minute the trigger will become OK next minute after it was Problem, so it wouldn't be able to recognize that it is still in problem state.
      I was trying to do it by something like that: (prev()>=1 and last()>prev() and last>=max(900,60)) to make trigger hanging in fired problem for 15 minutes window, but I believe there is more proper solution exists

      Comment

      • Hamardaban
        Senior Member
        Zabbix Certified SpecialistZabbix Certified Professional
        • May 2019
        • 2713

        #4
        Perhaps you should try removing or changing the trigger recovery condition? Change it so that the trigger remains in the problem state for as long as necessary.

        Comment

        • ikirtyanov
          Junior Member
          • Sep 2016
          • 5

          #5
          Thank you,
          Haven't thought about such approach, will try

          Comment

          Working...