Ad Widget

Collapse

sum of items in a graph

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • fege
    Member
    • Dec 2008
    • 34

    #1

    sum of items in a graph

    i have the Input bandwith for two machines X and Y.
    is it possible to create a single graph with the sum of INbandwith.X + INbandwith.Y?
  • loalvares
    Member
    • Jun 2011
    • 35

    #2
    Its perfectly possible

    Originally posted by fege
    i have the Input bandwith for two machines X and Y.
    is it possible to create a single graph with the sum of INbandwith.X + INbandwith.Y?

    If you create a diferent item, using the sum with this itens at Formula field. For example:

    last("system.cpu.util[,system,avg1]")+last("system.cpu.util[,user,avg1]")

    So you only have to add this iten at your graph

    Comment

    • fege
      Member
      • Dec 2008
      • 34

      #3
      i use snmp in my items in order to know the bandwith, can i use the formula field with snmp on two different machines?
      i tried to write a new item with {proxy2:ifInOctects.1.last(0)}+proxy1:ifInOctects. 1.last(0)} in the field expression, but it doesn't work
      Last edited by fege; 27-07-2011, 11:10. Reason: more information

      Comment

      • loalvares
        Member
        • Jun 2011
        • 35

        #4
        Sorry.

        I don`t know. I will try a solution and post a result here.

        Comment

        • vlturner
          Junior Member
          • Aug 2011
          • 28

          #5
          Use an aggregate.

          Instead of

          {proxy2:ifInOctects.1.last(0)}+proxy1:ifInOctects. 1.last(0)}

          do

          grpsum["{HOSTGROUP}","ifInOctets1","last","0"]

          I am using this to read the the last value and saving it as a delta per sec.

          This way I keep the "AS IS" value for ifInOctet1 for historical analysis, and use the aggregate to create the key "ifInOctet1 per sec"

          Comment

          Working...