Ad Widget

Collapse

Trigger based on absolute difference

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • webcompas
    Junior Member
    • Oct 2015
    • 14

    #1

    Trigger based on absolute difference

    Hallo,

    I need to check an item value if it differs more than the allowed tolerance. It doesn't matter in which direction it differs. Of course I could do this like follows:

    Code:
    # Target value: 10
    # Max tolerance: 5%
    
    {host1:item2.last()}>10.5 or {host1.item2.last()}<9.5
    Is there a better way without the need to compare against a fixed minimum and maximum value? I'd like to do this like this pseudo code:

    Code:
    abs({host1:item2.last()}-10)>10*0.05
    Regards
    Pascal
Working...