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. Trivial transformation not working

Trivial transformation not working

Scheduled Pinned Locked Moved Support
3 Posts 2 Posters 31.1k 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.
  • H
    H
    hbc
    wrote on last edited by
    #1

    Hi guys!

    I recently installed netXMS 2.2.11 on linux from sources and added some DCIs to templates for getting started.
    I watched the video tutorial and read the docs.

    I read an SNMP value (uptime) and want to transform it to minutes (timeticks/6000). Analog to tutorials this should be pretty easy.

    My transformation:

    $1/6000
    

    or

    return $1/6000;
    

    I set data type to floating point, but all I get is:

    Cannot execute script: Incompatible operation

    Server debug log (lvl7) shows

    2019.01.11 09:40:52.707 [client.session.0  ] Received message CMD_TEST_DCI_TRANSFORMATION
    2019.01.11 09:40:52.707 [client.session.0  ] Sending message CMD_REQUEST_COMPLETED (32 bytes)

    I also tested nxscript command on cli and compiled some preinstalled scripts from script library. Script compiler seems to work.

    So what am I doing wrong or do i have to change, that transformations work? This is a real show stopper.

    1 Reply Last reply
    0
    • V
      V
      Victor Kirhenshtein
      wrote on last edited by
      #2

      Hi!

      Looks very strange. Could you post screenshots of your DCI configuration? Also, is it template DCI or you configure it directly on node?

      Best regards,
      Victor

      1 Reply Last reply
      0
      • H
        H
        hbc
        wrote on last edited by
        #3

        It is a template. Somewhere in forum, I found the quote:

        Transformation scripts in templates never executed - it is just a template for real DCIs.

        So, I tried to run the test in object DCI and there it worked. A bit tricky to develop templates, since I have to apply them to test scripts.

        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