Ad Widget

Collapse

item whose value is a "cumulative" function of the value of another item

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ametsinis
    Junior Member
    • Mar 2016
    • 1

    #1

    item whose value is a "cumulative" function of the value of another item

    We would like to configure a "calculated" item whose value is a "cumulative" function of the value of another item. That is :

    * Let us assume that we have configured an item with key = "A" whose value is 10 at t=0, 5 at t=1, 20 at t=2, etc.
    * We would like to configure a new item with key = "B" whole value is 10 at t=0, 15 at t=1, 35 at t=2, etc. Of course, if it is possible to define a "cumulative" function on item "A" directly even better.

    So, in practice we would like to define a function on item "B" so that B = last(A) + prev(B) but e.g. such a function seems "incorrect" because an error is being thrown as the initial value of "B" at t = 0 cannot be evaluated.

    note | Zabbix version : 2.0.8
    Last edited by ametsinis; 22-03-2016, 11:11.
  • avecestampoco
    Junior Member
    • Feb 2017
    • 1

    #2
    Hi,

    I have the same problem. Did you find a solution?

    thxia

    Comment

    • zekaleka
      Junior Member
      • Jul 2024
      • 8

      #3
      Hi guys,
      still cant understand how to get graph simillar to uptime. To count last + last together in graph.
      Maybe someone can help us?
      Last edited by zekaleka; 28-02-2025, 09:05.

      Comment

      • Brambo
        Senior Member
        • Jul 2023
        • 245

        #4
        Just make a sum_foreach(<itemkey>) as a calculated item. See help: https://www.zabbix.com/documentation...regate/foreach

        zekaleka Assuming uptime is in seconds it's just a integer value so making a graph based on a nummer should be pretty simple.

        Comment

        Working...