<?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[transformation]]></title><description><![CDATA[<p dir="auto">hi,</p>
<p dir="auto">i have configured a dci to show me the system and agent uptime and when i look at the dci values i see the number of seconds and the only thing i can do is to display it as multiplier.<br />
i want to view it in days and hours format and came across a function called secondstouptime and i tried to use it but no luck.<br />
what is the right way to get what i want ?</p>
<p dir="auto">10x,<br />
lindeamon</p>
]]></description><link>https://forum.netxms.org/topic/1309/transformation</link><generator>RSS for Node</generator><lastBuildDate>Fri, 13 Nov 2026 10:39:11 GMT</lastBuildDate><atom:link href="https://forum.netxms.org/topic/1309.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 16 Aug 2011 09:16:42 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to transformation on Sun, 21 Aug 2011 06:58:30 GMT]]></title><description><![CDATA[<p dir="auto">thank you very much victor.</p>
]]></description><link>https://forum.netxms.org/post/5786</link><guid isPermaLink="true">https://forum.netxms.org/post/5786</guid><dc:creator><![CDATA[lindeamon]]></dc:creator><pubDate>Sun, 21 Aug 2011 06:58:30 GMT</pubDate></item><item><title><![CDATA[Reply to transformation on Thu, 18 Aug 2011 13:41:26 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/lindeamon" aria-label="Profile: lindeamon">@<bdi>lindeamon</bdi></a> said in <a href="/post/5767">transformation</a>:</p>
<blockquote>
<p dir="auto">another thing regarding this solution:<br />
i have configured a dci to find uptime through snmp and in the autoapply it told it to apply it on node that have snmp and do not have an agent.what i want to know is,once a node was applyed with this dci and i install an agent on it,will the template be automatically unbind ? if not,what is the right way do unbind it automatically ?</p>
</blockquote>
<p dir="auto">It all depends on your auto apply script. Template is applied when script returns true, and removed when script return false. So, if you wish template to be applied only on nodes with SNMP, but without NetXMS agent, and remoed from SNMP-only node when NetXMS agent installed on it, your auto apply script should looks like following:</p>
<pre><code>return $node-&gt;isSNMP &amp;&amp; !$node-&gt;isAgent;
</code></pre>
<p dir="auto">Best regards,<br />
Victor</p>
]]></description><link>https://forum.netxms.org/post/5777</link><guid isPermaLink="true">https://forum.netxms.org/post/5777</guid><dc:creator><![CDATA[victor]]></dc:creator><pubDate>Thu, 18 Aug 2011 13:41:26 GMT</pubDate></item><item><title><![CDATA[Reply to transformation on Wed, 17 Aug 2011 06:28:23 GMT]]></title><description><![CDATA[<p dir="auto">hi victor,</p>
<p dir="auto">u r the <a href="http://man.it" rel="nofollow ugc">man.it</a> worked like a charm,pitty this things do not appear on the user manual.<br />
another thing regarding this solution:<br />
i have configured a dci to find uptime through snmp and in the autoapply it told it to apply it on node that have snmp and do not have an agent.what i want to know is,once a node was applyed with this dci and i install an agent on it,will the template be automatically unbind ? if not,what is the right way do unbind it automatically ?</p>
<p dir="auto">10x<br />
lindeamon</p>
]]></description><link>https://forum.netxms.org/post/5767</link><guid isPermaLink="true">https://forum.netxms.org/post/5767</guid><dc:creator><![CDATA[lindeamon]]></dc:creator><pubDate>Wed, 17 Aug 2011 06:28:23 GMT</pubDate></item><item><title><![CDATA[Reply to transformation on Wed, 17 Aug 2011 05:39:54 GMT]]></title><description><![CDATA[<p dir="auto">Hi!</p>
<p dir="auto">SecondsToUptime should do the work. Don't forget that function names are case-sensitive, and don't forget to change DCI type to String. You transformation script may looks like following:</p>
<pre><code>SecondsToUptime($1)
</code></pre>
<p dir="auto">or</p>
<pre><code>return SecondsToUptime($1);
</code></pre>
<p dir="auto">Best regards,<br />
Victor</p>
]]></description><link>https://forum.netxms.org/post/5764</link><guid isPermaLink="true">https://forum.netxms.org/post/5764</guid><dc:creator><![CDATA[victor]]></dc:creator><pubDate>Wed, 17 Aug 2011 05:39:54 GMT</pubDate></item></channel></rss>