Ad Widget

Collapse

How to SUM an item created with a small change pre-processor

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • IGGt
    Junior Member
    • Nov 2024
    • 1

    #1

    How to SUM an item created with a small change pre-processor

    I have a value I am monitoring (e.g. `inc_value`). It is an incrementing value, so each time it is checked it should be larger than before.

    It is collected using the key
    Code:
    zbx.sts[inc_value]
    which runs every minute.

    I then apply a pre-processor of `simple change` to record the amount it has changed in the last minute.

    This all works fine.


    However, I also want to record the SUM of these values (the change) over the preceding hour.

    Ideally, it also needs to run every 60 seconds to identify when increases and falls occur.


    I can see how to get the SUM of the `inc_value` using a calculated Item, but I need the SUM of the changes, and can't see how to reference that.

    I have Zabbix versions 5 and 6 running currently.
  • ISiroshtan
    Senior Member
    • Nov 2019
    • 324

    #2
    If you using the preprocessing on item it means you saving only the calculated change to db, not the actual values. So doing sum() over said item will actually give you sum of changes, not the sum of original values. As actual values not saved anywhere.

    Comment

    Working...