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