<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[String length cut at 255 Characters]]></title><description><![CDATA[<p dir="auto">Hi Everyone,</p>
<p dir="auto">i wrote a simple curl Shell script that consumes a REST API from my Service i need to monitor.<br />
The ccript is stored on my netxms server and executed as an ExternalParameter from the local netxms agent.<br />
It returns JSON Data which i transform with nxsl to get the Information that i want. (This way i can reuse my CURL Script for diffrent APIs)</p>
<p dir="auto">My Problem occures when the API returns more than 255 Characters (which it does most of the time).<br />
The Datatype from the DCI is a String and apparently it can contain 255 Characters max. Everything longer gets cut off.</p>
<p dir="auto">Is there a better way to monitor my REST API or am i limited to those 255 Chars?<br />
I want to transform the Data with nxsl so i dont need a new shellscript for each diffrent API Parameter i want to monitor.<br />
I think this is a common Monitoring Task, so i think i am just doing this wrong <img src="https://forum.netxms.org/assets/plugins/nodebb-plugin-emoji/emoji/android/1f604.png?v=72b86a538fc" class="not-responsive emoji emoji-android emoji--smile" style="height:1.4em;width:auto;vertical-align:middle" title=":D" alt="😄" /></p>
<p dir="auto">Best Regards<br />
Henry</p>
]]></description><link>https://forum.netxms.org/topic/6373/string-length-cut-at-255-characters</link><generator>RSS for Node</generator><lastBuildDate>Fri, 13 Nov 2026 18:06:33 GMT</lastBuildDate><atom:link href="https://forum.netxms.org/topic/6373.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 15 Jan 2020 15:04:58 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to String length cut at 255 Characters on Thu, 16 Jan 2020 08:46:41 GMT]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">DCI value length is limited to 255 characters. In your case you can use external parameter provider instead of external parameter, do JSON parsing in agent side script and output all parameters you are interested in as name = value. Then you'll be able to collect them by name as any other agent's parameters.</p>
<p dir="auto">Best regards,<br />
Victor</p>
]]></description><link>https://forum.netxms.org/post/27282</link><guid isPermaLink="true">https://forum.netxms.org/post/27282</guid><dc:creator><![CDATA[victor]]></dc:creator><pubDate>Thu, 16 Jan 2020 08:46:41 GMT</pubDate></item></channel></rss>