Ad Widget

Collapse

Monitoring a change in last N values

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Stephen Wood
    Member
    • Feb 2012
    • 43

    #1

    Monitoring a change in last N values

    Hey guys, can someone give me a hand with this?

    I get values pushed to the Zabbix server every 10 minutes from various hosts. What I would like to do is send in alarm if there hasn't been a change in any of those values in the last N values (for example, nothing has changed for the last 30 values pushed to zabbix).

    Currently I'm using abschange and the trigger looks like this:

    Code:
    {my-group:pushed.values.abschange(30)}=0
    What I expected this to do is examine the last 30 values and see if there is a change. If there is no change, then trigger the alert. But it doesn't seem to be behaving like this.

    Code:
    From the wiki regarding abschange:
    Returns absolute difference between last and previous values.
    For strings:
    0 - values are equal
    1 - values differ
    Apparently the value is ignored. Is there a way to do this? I'd rather not go to all of my hosts and set a change to how often they push.
  • eskytthe
    Senior Member
    Zabbix Certified Specialist
    • May 2011
    • 363

    #2
    Hi,
    Yes the value IS ignored - abschange do not take any parameters. Look at the second column in the doc under abschange:
    http://www.zabbix.com/documentation/...onfig/triggers.
    I am not sure witch function you can use instead. Depends on witch values you get etc.
    Br
    Erik

    Comment

    • Stephen Wood
      Member
      • Feb 2012
      • 43

      #3
      That's quite unfortunate. It doesn't seem like an unusual task to compare the last 20 values and look for change. I'm just going to change the frequency with which these values are sent to Zabbix and use the default setting to compare the most recent value with the last value.

      Comment

      • mgibson
        Junior Member
        • Jun 2012
        • 14

        #4
        What about using delta?

        Code:
        {my-group:pushed.values.delta(30)}=0
        Since that should give you the range for the last 30 points, if it's zero, there's been no change.

        Comment

        Working...