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. problem with tranformation tool in DCI

problem with tranformation tool in DCI

Scheduled Pinned Locked Moved Support
3 Posts 3 Posters 14.6k 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.
  • D
    D
    Dariusk
    wrote on last edited by
    #1

    Hey Victor,

    I think there could be a problem with the transformation tool in the DCI configuration

    in pic1 I have added a oid for monitoring memory usage of a server, set it to unsigned because else you will get a negative value with large numbers. The data that is send via SNMP it in kB, i want to convert it to Bytes so it shows correctly with the multipliers.

    I tested a couple of scenarios, but I kept getting negative values back. (pic2),(pic3)

    So eventually I thought it might be the tranformation tool. and when i looked at the last value. it showed up correctly(pic4)

    Am I doing something wrong or is it a bug?


    pic1.jpg

    pic2.jpg

    pic3.jpg

    pic4.jpg

    1 Reply Last reply
    0
    • L
      L
      lweidig
      wrote on last edited by
      #2

      Just a couple of comments:

      1. Try changing your data type on the General tab to Unsigned integer 64 bit.  With your transformation anything over 4GB may fail.
      2. Update your transformation to '$1 * 1024' as that is the correct conversion from KB to bytes, not 1000
      3. I cannot comment on the test transformation window, I have NEVER had it actually pop up for me.  My only guess is that it is using the base type provided by the SNMP value as its type for processing which means anything over 2,147,483,647 (MAX for 32 bit signed) bytes becomes negative
      1 Reply Last reply
      0
      • V
        V
        Victor Kirhenshtein
        wrote on last edited by
        #3

        @lweidig said in problem with tranformation tool in DCI:

        Just a couple of comments:

        1. Try changing your data type on the General tab to Unsigned integer 64 bit.  With your transformation anything over 4GB may fail.
        2. Update your transformation to '$1 * 1024' as that is the correct conversion from KB to bytes, not 1000
        3. I cannot comment on the test transformation window, I have NEVER had it actually pop up for me.  My only guess is that it is using the base type provided by the SNMP value as its type for processing which means anything over 2,147,483,647 (MAX for 32 bit signed) bytes becomes negative

        You are absolutely correct - test uses DCI data type, so it must be changed to 64 bit integer to get correct result.

        Best regards,
        Victor

        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