NetXMS Support Forum

Please login or register.

Login with username, password and session length

Author Topic: Max Parameter Length?  (Read 546 times)

pzandvoort

  • Newbie
  • *
  • Posts: 33
    • View Profile
Max Parameter Length?
« on: July 10, 2018, 09:09:55 pm »

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

« Last Edit: July 10, 2018, 09:13:53 pm by pzandvoort »
Logged

pzandvoort

  • Newbie
  • *
  • Posts: 33
    • View Profile
Re: Max Parameter Length?
« Reply #1 on: July 10, 2018, 09:38:48 pm »

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.
Logged

Victor Kirhenshtein

  • Lead Developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 6654
    • View Profile
Re: Max Parameter Length?
« Reply #2 on: July 18, 2018, 03:05:46 pm »

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
Logged