Ad Widget

Collapse

How to sum all values from a item

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • williamfelipe
    Junior Member
    • Apr 2020
    • 1

    #1

    How to sum all values from a item

    Hello, guys

    I have been trying to sum all values gethered by a single item. What I want is to accumulate all values of a metric and make a trigger that fires when avalue is reached.
    I know that there is a sum trigger function, but it has a paramater that requires the evaluation period, but I want all the values of all the time, I don't want the last N seconds or N values.

    What I'm doing is setting up the host's uptime system and putting it in a macro. So I do something like:
    {template:system.cpu.util.sum({$UPTIME})}>100

    The problem is that I have to update this macro externally all the time (since there is no way to use uptime system key to update a macro).
    Is there a way to get the seconds a host has been activated with a macro or maybe not to put the seconds in the sum function?

    Another way to do it is to define a new item (Calculated type), where sums the new value and the last value, perhaps? I haven't tried this option.

    In fact, I didn't want to create a new item for this or use uptime system. It would be perfect for the sum function just get all available values.


    Thanks!
  • zekaleka
    Junior Member
    • Jul 2024
    • 8

    #2
    Hi mate, have you found a solution for this case?
    Im looking for something similar, only for power usage!

    Comment

    Working...