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. Max Parameter Length?

Max Parameter Length?

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

    I'm trying to use Service.Check(*) to check a URL. Unfortunately, the URL I need to check is really long and looks like this:

    https://hostA.mydomain.com/file1.aspx?KaB6rTg6%2FcIKlmbmN%40ecOi%2Fjkr%407oXTOfLonrtxEolozX7HjHuvdXzfSZLXGSyM%2Fz%2F88GXwVAXPhKIP893OYWC1N4zkKcFEoGnXlORpSV0GyA%40ljEZT3xDK72S46Y6luNEnz0lBYEqb8bzPEJ%40V28pJbIRpMLDp3uKPUnqit19t%40I5uY%40bZtcGI7NXZ5O81c8HDPmmxYci%40xpL7oAqLR9A%3D%3D

    The URL above doesn't work and results in a "Cannot get current parameter value: Requested data collection item is not supported by agent" error.
    If I shorten the URL slightly, the error goes away and it actually makes the call (but then obviously I have the wrong URL!)

    https://hostA.mydomain.com/file1.aspx?KaB6rTg6%2FcIKlmbmN%40ecOi%2Fjkr%407oXTOfLonrtxEolozX7HjHuvdXzfSZLXGSyM%2Fz%2F88GXwVAXPhKIP893OYWC1N4zkKcFEoGnXlORpSV0GyA%40ljEZT3xDK72S46Y6luNEnz0lBYEqb8bzPEJ%40V28pJbIRpMLDp3uKPUnqit19t%40I5uY%40bZtcG

    ... works. If I add one more character, it stops working.

    Is there a length limit to what's passed to Service.Check? If so, what's the limit?
    Thanks!

    Peter

    1 Reply Last reply
    0
    • P
      P
      pzandvoort
      wrote on last edited by
      #2

      On further investigation, this doesn't seem to be limited to just Service.Check(*). Unless I'm looking at this wrong, all checks and DCIs seem to break after the parameters reach a certain length.

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

        Hi,

        It is cut to 255 characters. Some time ago it was the limit on parameter name in DCI definition. When DCI name length limit was increased, limit on agent side was forgotten. I just fix it.

        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