Ad Widget

Collapse

Using Last Function within Calculated Items

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • yummysmokedham
    Junior Member
    • Mar 2011
    • 2

    #1

    Using Last Function within Calculated Items

    My end goal is to calculate input and output port ethernet port utilization on our core switches, right now I am just trying to get the last function to work correctly. I have an SNMPv1 value that is working properly with the key name of ifspeed1. I am trying to create a calculated item using this SNMPv1 value. I have tried last("BROCADE_CES_INTERFACES:ifspeed1"), last(BROCADE_CES_INTERFACES:ifspeed1), last("BROCADE_CES_INTERFACES:ifspeed1.0"), and several other different combinations. My audit log returns something similar to this each time, items.error: Can not evaluate function [last()]: item [BROCADE_CES_INTERFACES:ifspeed1.0] not found =>

    Is something wrong with my syntax?

    Thanks in advance.
  • yummysmokedham
    Junior Member
    • Mar 2011
    • 2

    #2
    my goal will be to have a formula in the end that looks something like this (I know the formatting is wrong, the formatting follows the trigger syntax)

    {{BROCADE_CES_INTERFACES:ifOutOctets1.last(0) - BROCADE_CES_INTERFACES:ifOutOctets1.last(#2)} * 8 * 100}/{90 / {BROCADE_CES_INTERFACES:ifSpeed1.last(0) * 100000}

    Comment

    • stepedro83
      Junior Member
      • May 2011
      • 1

      #3
      I have the same problem, someone found a solution?

      Comment

      Working...