Ad Widget

Collapse

Monitor status variations

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • scanch
    Junior Member
    • Oct 2010
    • 8

    #1

    Monitor status variations

    Hello,
    I have an item that performs check on a tcp port and returns two values (0 or 1). I want to configure a trigger for monitoring only status variations for one day (0->1 and 1->0). If I have more than 10 changes in the day, trigger will be activated. After reading the trigger documentation, I doesn't found any function that deal with my requirements
    I have tried with average functions, count, ... But it doesn't make the job.
    Is there a way to do it?
    Thanks,
    Last edited by scanch; 01-10-2010, 15:39.
  • ad@kbc-clearing.com
    Member
    • Sep 2005
    • 77

    #2
    Make a calculated item and use diff function.
    This calculated item should de evaluated with the same frequency as the item that performs the tcp check.
    If the value of the calculated item = 1, then there is a change in the port status.
    Now you can make a trigger and use sum-function:
    sum(calcitem,24*3600)>10

    Comment

    • scanch
      Junior Member
      • Oct 2010
      • 8

      #3
      Thanks for the tip !

      Comment

      Working...