<?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[Simple Data Transformation Question]]></title><description><![CDATA[<p dir="auto">Hi Viktor and co</p>
<p dir="auto">Have a NetXMS 2.0.1 system in Server/Remote Agent w/Sites configuration</p>
<p dir="auto">Have a simple data transformation question.<br />
I'm trying to monitor temperature of some Mikrotik routerboards with SNMP via .1.3.6.1.4.1.14988.1.1.3.10.0</p>
<p dir="auto">I need to transform the value that the Mikrotik reports by dividing the value by 10.<br />
I've entered the following values in the Transformation option.</p>
<p dir="auto">Simple Delta</p>
<p dir="auto">sub main()<br />
{<br />
   return $1 / 10;<br />
}</p>
<p dir="auto">Test returns the correct results however values received by in the Last Values tab or DCI History return results of 0</p>
<p dir="auto">Anything I'm missing here ?</p>
<p dir="auto">Thanks</p>
<hr />
<p dir="auto"><img src="/assets/uploads/files/smf/0000000002810-Transformation2.jpg" alt="Transformation2.jpg" class="img-markdown  img-fluid" width="326" height="208" /></p>
<p dir="auto"><img src="/assets/uploads/files/smf/0000000002812-Transformation.jpg" alt="Transformation.jpg" class="img-markdown  img-fluid" width="670" height="632" /></p>
<p dir="auto"><img src="/assets/uploads/files/smf/0000000002814-Last_Values.jpg" alt="Last_Values.jpg" class="img-markdown  img-fluid" width="878" height="742" /></p>
]]></description><link>https://forum.netxms.org/topic/4272/simple-data-transformation-question</link><generator>RSS for Node</generator><lastBuildDate>Fri, 13 Nov 2026 14:50:28 GMT</lastBuildDate><atom:link href="https://forum.netxms.org/topic/4272.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 02 Feb 2016 11:45:24 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Simple Data Transformation Question on Tue, 02 Feb 2016 12:59:14 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/tomaskir" aria-label="Profile: tomaskir">@<bdi>tomaskir</bdi></a> said in <a href="/post/19075">Simple Data Transformation Question</a>:</p>
<blockquote>
<p dir="auto">Hi!</p>
<pre><code>return $1/10;
</code></pre>
<p dir="auto">Is enough actually, you dont need to declare an explicit main() method/function.<br />
See this: <a href="https://wiki.netxms.org/wiki/UM:NetXMS_Scripting_Language_(NXSL)#Script_entry_point" rel="nofollow ugc">https://wiki.netxms.org/wiki/UM:NetXMS_Scripting_Language_(NXSL)#Script_entry_point</a></p>
<p dir="auto">As for why you are seeing 0 in last values, you have "Simple delta" as delta calculation enabled.<br />
Set delta calculation to None, and it will work.</p>
</blockquote>
<p dir="auto">Yikes I feel embarrassed now   :-[ :-[ :-[ :-[ :-[ :-[ :-[ :-[<br />
Setting the delta calculation to zero sorted it right out.<br />
I'll have to re-read the wiki again to make sure I'm understanding it right.</p>
<p dir="auto">Thanks tomaskir and Alex for the quick help.</p>
]]></description><link>https://forum.netxms.org/post/19077</link><guid isPermaLink="true">https://forum.netxms.org/post/19077</guid><dc:creator><![CDATA[djdrastic]]></dc:creator><pubDate>Tue, 02 Feb 2016 12:59:14 GMT</pubDate></item><item><title><![CDATA[Reply to Simple Data Transformation Question on Tue, 02 Feb 2016 12:40:33 GMT]]></title><description><![CDATA[<pre><code>$1/10
</code></pre>
<p dir="auto">will work as well (note missing ";" in the end, that's on purpose)</p>
]]></description><link>https://forum.netxms.org/post/19076</link><guid isPermaLink="true">https://forum.netxms.org/post/19076</guid><dc:creator><![CDATA[alk]]></dc:creator><pubDate>Tue, 02 Feb 2016 12:40:33 GMT</pubDate></item><item><title><![CDATA[Reply to Simple Data Transformation Question on Tue, 02 Feb 2016 12:10:25 GMT]]></title><description><![CDATA[<p dir="auto">Hi!</p>
<pre><code>return $1/10;
</code></pre>
<p dir="auto">Is enough actually, you dont need to declare an explicit main() method/function.<br />
See this: <a href="https://wiki.netxms.org/wiki/UM:NetXMS_Scripting_Language_(NXSL)#Script_entry_point" rel="nofollow ugc">https://wiki.netxms.org/wiki/UM:NetXMS_Scripting_Language_(NXSL)#Script_entry_point</a></p>
<p dir="auto">As for why you are seeing 0 in last values, you have "Simple delta" as delta calculation enabled.<br />
Set delta calculation to None, and it will work.</p>
]]></description><link>https://forum.netxms.org/post/19075</link><guid isPermaLink="true">https://forum.netxms.org/post/19075</guid><dc:creator><![CDATA[tomaskir]]></dc:creator><pubDate>Tue, 02 Feb 2016 12:10:25 GMT</pubDate></item></channel></rss>