Ad Widget

Collapse

Aggregate calculated item syntax

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • alexlh
    Junior Member
    • Feb 2022
    • 3

    #1

    Aggregate calculated item syntax

    Hi,

    I'm confused about which syntax to use for aggregated calculated items.

    I have a working calculated item that uses the syntax:

    Key: junos.rpm.probe.NETARCH.loss.[{#SNMPINDEX}]
    Formula: (1 - last("junos.rpm.probe.NETARCH.ProbeResponses.[{#SNMPINDEX}]") / last("junos.rpm.probe.NETARCH.ProbesSent.[{#SNMPINDEX}]")) * 100

    And this works.

    I'm trying to create another item which would add up all junos.rpm.probe.NETARCH.loss.[*] in a single item.

    This seems to describe a different syntax than the one I used above:



    So when I use this:

    Formula: sum("junos.rpm.probe.NETARCH.loss.[*]")

    I get the error:

    Cannot evaluate function "sum()": item "cr01-cnco01.tingfiber.net:junos.rpm.probe.NETARCH.loss.[*]" does not exist.


    While I do have items like these on the host:
    • junos.rpm.probe.NETARCH.loss.[""XXXX""]
    • junos.rpm.probe.NETARCH.loss.[""YYYY""]
    Does anyone have a pointer about what I'm doing wrong?
Working...