Ad Widget

Collapse

Having two items with value xy and trigger which tests if they are the same

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • riBoon
    Junior Member
    • May 2017
    • 26

    #1

    Having two items with value xy and trigger which tests if they are the same

    Hi,
    I have a race condition in my trigger.
    I have two items checking at defined schedule time getting a value which is the correct value for today. But we have to make sure they are the same.

    So my trigger expression looks like:
    last(item1)<>last(item2)

    And what I get is a problem alert with duration 0s as the first item creates the problem (values differ), the second switches it to ok.

    Is there an easy way to get this done?
  • guntis_liepins
    Member
    • Oct 2025
    • 52

    #2
    What are these items ? What is their type? How do you get them from server?

    Comment

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

      #3
      I think you need a calculated item there... if you compare those values directly, as you have in exampe, it gets recalculated each time new value arrives for any of items...And that causes you those 0 lenght events... If you add 3rd item here, which by schedule compares those 2 values, it shoudl be more accurate. You can also configure a scheduler for items themselves (lets say exact 00 seconds of every minute) and calculated item in every 30th second every minute...

      Comment

      Working...