<?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[Trivial transformation not working]]></title><description><![CDATA[<p dir="auto">Hi guys!</p>
<p dir="auto">I recently installed netXMS 2.2.11 on linux from sources and added some DCIs to templates for getting started.<br />
I watched the video tutorial and read the docs.</p>
<p dir="auto">I read an SNMP value (uptime) and want to transform it to minutes (timeticks/6000). Analog to tutorials this should be pretty easy.</p>
<p dir="auto">My transformation:</p>
<pre><code>$1/6000
</code></pre>
<p dir="auto">or</p>
<pre><code>return $1/6000;
</code></pre>
<p dir="auto">I set data type to floating point, but all I get is:</p>
<blockquote>
<p dir="auto">Cannot execute script: Incompatible operation</p>
</blockquote>
<p dir="auto">Server debug log (lvl7) shows</p>
<blockquote>
<p dir="auto">2019.01.11 09:40:52.707 [client.session.0   ] Received message CMD_TEST_DCI_TRANSFORMATION<br />
2019.01.11 09:40:52.707 [client.session.0   ] Sending message CMD_REQUEST_COMPLETED (32 bytes)</p>
</blockquote>
<p dir="auto">I also tested nxscript command on cli and compiled some preinstalled scripts from script library. Script compiler seems to work.</p>
<p dir="auto">So what am I doing wrong or do i have to change, that transformations work? This is a real show stopper.</p>
]]></description><link>https://forum.netxms.org/topic/5788/trivial-transformation-not-working</link><generator>RSS for Node</generator><lastBuildDate>Fri, 13 Nov 2026 18:07:27 GMT</lastBuildDate><atom:link href="https://forum.netxms.org/topic/5788.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 11 Jan 2019 08:50:23 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Trivial transformation not working on Mon, 14 Jan 2019 08:56:14 GMT]]></title><description><![CDATA[<p dir="auto">It is a template. Somewhere in forum, I found the quote:</p>
<blockquote>
<p dir="auto">Transformation scripts in templates never executed - it is just a template for real DCIs.</p>
</blockquote>
<p dir="auto">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.</p>
]]></description><link>https://forum.netxms.org/post/25204</link><guid isPermaLink="true">https://forum.netxms.org/post/25204</guid><dc:creator><![CDATA[hbc]]></dc:creator><pubDate>Mon, 14 Jan 2019 08:56:14 GMT</pubDate></item><item><title><![CDATA[Reply to Trivial transformation not working on Fri, 11 Jan 2019 17:32:39 GMT]]></title><description><![CDATA[<p dir="auto">Hi!</p>
<p dir="auto">Looks very strange. Could you post screenshots of your DCI configuration? Also, is it template DCI or you configure it directly on node?</p>
<p dir="auto">Best regards,<br />
Victor</p>
]]></description><link>https://forum.netxms.org/post/25198</link><guid isPermaLink="true">https://forum.netxms.org/post/25198</guid><dc:creator><![CDATA[victor]]></dc:creator><pubDate>Fri, 11 Jan 2019 17:32:39 GMT</pubDate></item></channel></rss>