Ad Widget

Collapse

Monitor items for multiple changes in a period of time

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Mojah
    Member
    • Apr 2010
    • 60

    #1

    Monitor items for multiple changes in a period of time

    Hi,

    I'm looking for advice on how to get the following made in a trigger. I want to check an item to see if it had multiple changes in the last X-minutes (say: 30 minutes).

    Here's the simple version:
    Code:
    {randomhost:system.swap.size[,free].change(0)}#0
    That would monitor the free space space of the swap, if the last value differs from the previous value, it would trigger the alert. I want to expand that to say "from the last 30 minutes, if there were more than X-changes to that, trigger the alert".

    How would you do that? The only thing I can think of is something like:
    Code:
    {Linux - General:system.swap.size[,free].change(0)}#0 & {Linux - General:system.swap.size[,free].change(120)}#0 & {Linux - General:system.swap.size[,free].change(240)}#0 & ...
Working...