Ad Widget

Collapse

Detect if a value hasnt changed for X time?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ngvnate
    Junior Member
    • Jun 2012
    • 2

    #1

    Detect if a value hasnt changed for X time?

    I have a UserParamater (PDFBatch_Unstarted) that returns an integer. I want to monitor the value and if its moving or not. Mostly, if it stops moving.
    For example, if the integer stops changing for a period of 30min, I want a trigger to hit (and I'll attach an action to it). If the item has changed (up or down) over the last 30min, then I dont want a trigger to fire.

    Do I need to use the .change() method? I'm honestly lost as to where to start here.
    {SERVER:PDFBatch_Unstarted.change(0)}>0

    Any guidance would be appreciated.
  • addyrocker
    Junior Member
    • Sep 2009
    • 11

    #2
    try using the delta trigger function

    Returns the difference between the maximum and minimum values in a period ('max()' minus 'min()'). The period is set in seconds or as a number of collected values (preceded by a # hash mark) in the first parameter.
    Since Zabbix 1.8.2, the function supports a second, optional parameter time_shift. See function avg for an example of its use.

    give this a try

    {SERVER:PDFBatch_Unstarted.delta(1800)}=0

    Comment

    • ngvnate
      Junior Member
      • Jun 2012
      • 2

      #3
      Thank you! I think this will likely work. I'll return if I notice it's not triggering

      Comment

      Working...