Ad Widget

Collapse

Item Calculated

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • nikola291
    Junior Member
    • Mar 2019
    • 3

    #1

    Item Calculated

    I have a problem with a Calculated item.
    Scenario: I have 2 hosts on which I created 1 item which gives me the total amount of bandwidth used by the host.

    Item setting
    Key: net.if.total[enp2s0]

    Preprocessing:
    Custom multiplier 8
    Change per second

    Everything works fine However,
    I am unable to add these values Setting items calculated

    I created a new host and added calculated item

    Key: item.value.sum

    Formula: last(/host1/net.if.total[enp2s0].value + last(/host2/net.if.total[enp2s0].value
    Preprocessing: Custom multiplier 8
    Change per second


    result:

    Incorrect value for field "Formula": incorrect expression starting from "last(/host1/ net.if.total[enp2s0]) + last(/host2/net.if.total[enp2s0].value)".
  • salavie
    Junior Member
    • Oct 2020
    • 29

    #2
    try this , not use XXX.value
    last(/host1/net.if.total[enp2s0]) + last(/host2/net.if.total[enp2s0])

    not use Preprocessing

    example:

    Comment

    Working...