Ad Widget

Collapse

Trigger on no data change

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sspaise
    Junior Member
    • Jun 2013
    • 4

    #1

    Trigger on no data change

    Hi all,

    Firstly apologies if this has been asked before but I could not find a directly related thread.

    I am trying to setup an item and trigger that will alert me if the data does not change for one week.

    I have a command I am running on the server "invade agents" that produces a number based on the amount of "users" that are connected to the server.

    I would like to setup a trigger to alert me if this does not change over a week. Could anyone please point me in the direction of how to do this?
  • jasperswaagman
    Junior Member
    • Apr 2013
    • 25

    #2
    Hey,

    I'm not entirely sure if this is what you are looking for. But delta looks for the min() and max() in a period.

    So if your amount of users stays 10 for a whole week: min() = 10, max() = 10

    delta = max()-min()
    0 = 10-10
    If 0 -> fire trigger.

    {hostx:amountOfUsersKey.delta(1w)}=0

    Comment

    • sspaise
      Junior Member
      • Jun 2013
      • 4

      #3
      Hi jasperswaagman,

      Thanks for the reply, I was eyeing this in the documentation earlier but couldn't work out if it would provide what I required, however it appears this should suit just fine.

      I'll give this a try and let you know how it goes =)

      Originally posted by jasperswaagman
      Hey,

      I'm not entirely sure if this is what you are looking for. But delta looks for the min() and max() in a period.

      So if your amount of users stays 10 for a whole week: min() = 10, max() = 10

      delta = max()-min()
      0 = 10-10
      If 0 -> fire trigger.

      {hostx:amountOfUsersKey.delta(1w)}=0

      Comment

      Working...