Ad Widget

Collapse

Difference in Sum

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • midlandmonkey
    Junior Member
    • Apr 2012
    • 2

    #1

    Difference in Sum

    Hello,
    I'm fairly new to Zabbix, although i've been configuring items and triggers for the last few months in a hosted environment.
    Essentially, I have a batch file which uses a windows version of grep, to search for a string lets say "test". This counts the amount of times it finds "test" and outputs a value.
    This works, and Zabbix is giving me a nice result which increases throughout the day. The issue is, this is the sum.

    What I need, is a a trigger when the value increases by X in the last Y minutes. My item gets the value every 30 seconds.

    I could do:
    • Difference between last and previous value > - though this is only the last 30 seconds. I want to monitor possible the last 5 minutes


    Because my script only counts the "total" and not new occurrences, its making it a little difficult, but i cant really change my script.

    Any help would be appreciated!
  • heaje
    Senior Member
    Zabbix Certified Specialist
    • Sep 2009
    • 325

    #2
    Store value as Delta

    The change you could make from the Zabbix config side is to change the way that the item is stored. In the item configuration there is a combo box titled "Store value". If you change that to be "Delta (simple change)" it will then store whatever the difference is between each time it receives a value. Then you could easily set up a trigger for the item to go off whenever X (the received value) is greater than Y (the change value you define).
    Last edited by heaje; 01-05-2012, 07:13. Reason: Fixed a typo

    Comment

    • midlandmonkey
      Junior Member
      • Apr 2012
      • 2

      #3
      Brilliant Solved it in one. I knew there would be a simple way, but as usual it isnt until you know it, that it reveals itself to being simple.

      This will help me immensely!

      Thanks,
      Gareth

      Comment

      Working...