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. DCI Table trasform Script help please

DCI Table trasform Script help please

Scheduled Pinned Locked Moved Support
3 Posts 2 Posters 53.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.
  • L
    L
    LogicalNZ
    wrote on last edited by
    #1

    Hey all,

    I'm trying to get a transform script working on my interface table (I'm not very good at scripting).

    This is what I have at the moment:

    idxbin = $1->getColumnIndex("bytes-in");
    idxbout = $1->getColumnIndex("bytes-out");
    
    for (i=0;i<rowCount;i++)
    {
      $1->set(i,idxbin,$1->get(i,idxbin * 8);
      $1->set(i,idxbout,$1->get(i,idxbout * 8);
    }
    

    My columns are "bytes-in" and "bytes-out" and are in octets. Is this correct and also how do I set the transform script to be Delta per second?

    A little lost and any help would be gratefully accepted...

    How do I get rid of them god dam stupid faces!!!

    1 Reply Last reply
    0
    • F
      F
      Filipp Sudanov
      wrote on last edited by
      #2

      What kind of interface table do you mean? Is it a metric of netxms agent or from some SNMP device, or your custom external table? Can you show how data in that table look like?
      What result do you want to get?

      1 Reply Last reply
      0
      • L
        L
        LogicalNZ
        wrote on last edited by
        #3

        What I'm after is to change the output from these two columns to be the result * 8 and Average delta per second.

        This transform only to effect "bytes-in" and "bytes-out" columns in the table.

        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