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!
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!
Comment