Ad Widget

Collapse

Is there way to calculate the average of discovery items?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • registration_is_lame
    Senior Member
    • Nov 2007
    • 148

    #1

    Is there way to calculate the average of discovery items?

    Example:
    name - cpu core {#SNMPINDEX}
    Item - 1.3.6.1.4.1.9.9.109.1.1.1.1.8.{#SNMPINDEX}
    key - CPUTotal5minRev[{#SNMPINDEX}]

    That creates a few items like "cpu core 1" "cpu core 2" "cpu core 3" etc.,

    Now I want the average value of all the CPU cores #SNMPINDEX.

    I wondered if a calculated item like avg("CPUTotal5minRev[{#SNMPINDEX}]") would have worked but it doesn't even create the item.

    I'm guessing this is not possible? Other than maybe scripting (external check?)
    Last edited by registration_is_lame; 28-03-2017, 11:58.
  • fserve
    Junior Member
    • Jan 2015
    • 2

    #2
    This is very close to what i need.



    I'm trying to sum two discovered items.

    Template OS Windows do something like this for disk space. But didnt work for my problem.

    Comment

    • registration_is_lame
      Senior Member
      • Nov 2007
      • 148

      #3
      Originally posted by fserve
      This is very close to what i need.



      I'm trying to sum two discovered items.

      Template OS Windows do something like this for disk space. But didnt work for my problem.
      Yeah we're trying to achieve the same thing. Calculate the value of each indexes in one item.

      Windows OS template is different method. It calculates 2 different keys by creating item for each sub. Example: Key1[{#SNMPINDEX}].last()+Key2[{#SNMPINDEX}].last()
      Last edited by registration_is_lame; 28-03-2017, 15:06.

      Comment

      • Cynchie
        Junior Member
        • Jun 2019
        • 9

        #4
        Did anyone find the solution to this? I am still struggling to achieve this.

        Comment

        Working...