Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (Flatly)
  • No Skin
Collapse
Brand Logo

NetXMS Forum

  1. Home
  2. Support
  3. Sum values from nodes

Sum values from nodes

Scheduled Pinned Locked Moved Support
7 Posts 4 Posters 47.8k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J
    J
    jhonnyvey
    wrote on last edited by
    #1

    Good night to everyone,

    I am using the netxms and enjoying it, however i need a help.
    I would like to sum some dci values ​​from my nodes.
    My nodes are inside containers Ex: Servers\Server1 , Servers\Web1
    I would like to sum, For example , Network in and out and iis current users .
    What is the  better way to do this ?
    I search int forum a few examples , but I can not understand how to do it

    Tks all.

    1 Reply Last reply
    0
    • T
      T
      tomaskir
      wrote on last edited by
      #2

      Take a look in this thread, it discusses something very similar:
      https://www.netxms.org/forum/general-support/dci-question/

      If you need help, post more info.

      1 Reply Last reply
      0
      • J
        J
        jhonnyvey
        wrote on last edited by
        #3

        H itomaskir,

        Tks for reply!
        I see topic, but the sum is from values ​​of a single node.

        I need make  sum of values from two nodes.
        Exemple:

        Node 1, = Name: Server1 , DCI NetworkIN
        Node 2, = Name: Server2 , DCI NetworkIN

        So how can i make a sum from DCI NetworkIN from server1 and server 2 ?

        Tks!

        1 Reply Last reply
        0
        • T
          T
          tomaskir
          wrote on last edited by
          #4

          Its pretty much the same thing:

          val1 = GetDCIValueByDescription(FindObject("node1"), "DCI1 description");
          val2 = GetDCIValueByDescription(FindObject("node2"), "DCI2 description");
          
          if (val1 == null || val2 == null)
            return 0;
          
          return val1 + val2;
          

          Functions can be found here:
          https://wiki.netxms.org/wiki/NXSL_Function_Reference

          Please be award of security implications:
          https://wiki.netxms.org/wiki/SG:Security_Issues

          1 Reply Last reply
          0
          • J
            J
            jhonnyvey
            wrote on last edited by
            #5

            Tks alot tomaskir,

            That work's perfect  ;D ;D

            1 Reply Last reply
            0
            • M
              M
              mgthump
              wrote on last edited by
              #6

              I'm trying to build a variable script to find all objects beneath a template contain and sum a value from a DCI .1.3.6.1.4.1.17713.21.1.2.10.0. that is common to every device within the container.

              is there a way to take the node and DCI values and create them in a dynamic fashion?  the goal is to read the total number of connected subs to an AP and have this read additional APs over time automatically.  I've gotten spoiled with the auto-bind functions 🙂

              val1 = GetDCIValueByDescription(FindObject("node1"), "DCI1 description");
              val2 = GetDCIValueByDescription(FindObject("node2"), "DCI2 description");

              if (val1 == null || val2 == null)
                return 0;

              return val1 + val2;

              1 Reply Last reply
              0
              • Z
                Z
                Tatjana Dubrovica
                wrote on last edited by
                #7

                Find template function using https://wiki.netxms.org/wiki/NXSL:FindObject function and then iterate over children using https://wiki.netxms.org/wiki/NXSL:GetObjectChildren function and for every netObject with type Node execute GetDCIValueByDescription.

                1 Reply Last reply
                0

                Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                With your input, this post could be even better 💗

                Register Login
                Reply
                • Reply as topic
                Log in to reply
                • Oldest to Newest
                • Newest to Oldest
                • Most Votes


                • Login

                • Don't have an account? Register

                • Login or register to search.
                Powered by NodeBB Contributors
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • Users
                • Groups