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 Transformation not working

DCI Table Transformation not working

Scheduled Pinned Locked Moved Support
5 Posts 2 Posters 20.2k 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.
  • K
    K
    knut4linux
    wrote on last edited by
    #1

    Hi @ll,

    i try to transform some dci-vlaues, but it does not work for me.

    conStat = $1->getColumnIndex("TCPConState");
    switch (conStat)
    {
    case "2":
        return "listen";
      break;
    case "5":
        return "established";
      break;
    case "11":
        return "waiting";
      break;
    default:
        return "unknown"; 
    }

    Whe i try this script for a single dci value ($1) it works.

    No Error occurs after applying. I dont know whats wrong  😕

    Thx to @ll for help

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

      Hi,

      Tables are a bit different. Your script is effectively replacing the entire table with one single value.

      The following post might help you get this working:
      https://www.netxms.org/forum/configuration/transformations-scripts-for-table-dci/

      Cheers

      1 Reply Last reply
      0
      • K
        K
        knut4linux
        wrote on last edited by
        #3

        Hi Tursiops,

        thanks for your help. I know this post but misunderstod.

        >> Your script is effectively replacing the entire table with one single value

        This was the decisive note to understand.

        Many Thanks for you  😉

        How i can mark as solved?

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

          Hi,

          In the bottom left you should see a few buttons (for any topics started by you): Remove Topic, Lock Topic and Topic Solved.

          Cheers

          1 Reply Last reply
          0
          • K
            K
            knut4linux
            wrote on last edited by
            #5

            Thx Tursiops and merry christmas  😎

            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