Ad Widget

Collapse

Calculating last(#1) and last(#2) from the same item

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • silverd
    Junior Member
    • Oct 2012
    • 3

    #1

    Calculating last(#1) and last(#2) from the same item

    Hi Guys

    Does anyone know if its possible to calculate last(#1) and last(#2) from the same item e.g.

    itemA.last(#1) - itemA.last(#2)

    The value I am getting is a ever growing numeric value and I am trying calculate the diffs between the last two readings.

    If so, is it possible to put this in a calculated item?

    Thanks in advance for any help on this.
  • storm
    Member
    • Jan 2012
    • 37

    #2
    do you want this to be a trigger or another item?

    Comment

    • silverd
      Junior Member
      • Oct 2012
      • 3

      #3
      Another item would be great.

      Comment

      • heaje
        Senior Member
        Zabbix Certified Specialist
        • Sep 2009
        • 325

        #4
        Why not just change the item definition to be stored as a delta. There isn't a need for a calculated item.

        Comment

        • silverd
          Junior Member
          • Oct 2012
          • 3

          #5
          Thank you I didn't know what the stored as delta item does. I tried it and it works perfectly thank you for the advice.

          Comment

          • xpehbam
            Junior Member
            • Jul 2012
            • 17

            #6
            There is also the prev() function.

            Comment

            Working...