<?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[Threshold script]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">Could you send me a sample threshold function script for the following situation:</p>
<p dir="auto">The configured activation event will be started if the last polled value more than 0 and less than 1</p>
<p dir="auto">Thank you in advance and best regards,<br />
Zsolt</p>
]]></description><link>https://forum.netxms.org/topic/3475/threshold-script</link><generator>RSS for Node</generator><lastBuildDate>Fri, 13 Nov 2026 08:53:44 GMT</lastBuildDate><atom:link href="https://forum.netxms.org/topic/3475.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 13 Nov 2014 11:06:24 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Threshold script on Sat, 29 Nov 2014 13:31:12 GMT]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">Yes you're right, this is a useful advice.</p>
<p dir="auto">thanks a lot,<br />
Zsolt</p>
]]></description><link>https://forum.netxms.org/post/15433</link><guid isPermaLink="true">https://forum.netxms.org/post/15433</guid><dc:creator><![CDATA[cserzs]]></dc:creator><pubDate>Sat, 29 Nov 2014 13:31:12 GMT</pubDate></item><item><title><![CDATA[Reply to Threshold script on Fri, 28 Nov 2014 16:20:45 GMT]]></title><description><![CDATA[<p dir="auto">In transformation and threshold scripts, think you can simply use the "$1" to get last collected value.</p>
<pre><code>dcival = $1;
</code></pre>
<p dir="auto">If you wish to process values from another DCI you must of course use the FindDCI* methods, but here it looks like you are interested in the value from this particular DCI itself.</p>
<p dir="auto">Best regards,<br />
Kjell</p>
]]></description><link>https://forum.netxms.org/post/15432</link><guid isPermaLink="true">https://forum.netxms.org/post/15432</guid><dc:creator><![CDATA[KjellO]]></dc:creator><pubDate>Fri, 28 Nov 2014 16:20:45 GMT</pubDate></item><item><title><![CDATA[Reply to Threshold script on Wed, 19 Nov 2014 21:18:35 GMT]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">Thank you very much it is works well.</p>
<p dir="auto">Regards,<br />
Zsolt</p>
]]></description><link>https://forum.netxms.org/post/15387</link><guid isPermaLink="true">https://forum.netxms.org/post/15387</guid><dc:creator><![CDATA[cserzs]]></dc:creator><pubDate>Wed, 19 Nov 2014 21:18:35 GMT</pubDate></item><item><title><![CDATA[Reply to Threshold script on Wed, 19 Nov 2014 15:29:51 GMT]]></title><description><![CDATA[<p dir="auto">Use FindDCIByDescription.</p>
<p dir="auto">The field you are searching for is the description, not the name.</p>
]]></description><link>https://forum.netxms.org/post/15382</link><guid isPermaLink="true">https://forum.netxms.org/post/15382</guid><dc:creator><![CDATA[tomaskir]]></dc:creator><pubDate>Wed, 19 Nov 2014 15:29:51 GMT</pubDate></item><item><title><![CDATA[Reply to Threshold script on Wed, 19 Nov 2014 14:58:36 GMT]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">Please find in the attachement.</p>
<p dir="auto">BR,<br />
Zsolt</p>
<hr />
<p dir="auto"><img src="/assets/uploads/files/smf/0000000002079-dci_config1.jpg" alt="dci_config1.jpg" class="img-markdown  img-fluid" width="1280" height="998" /></p>
<p dir="auto"><img src="/assets/uploads/files/smf/0000000002081-dci_config2.jpg" alt="dci_config2.jpg" class="img-markdown  img-fluid" width="1276" height="989" /></p>
]]></description><link>https://forum.netxms.org/post/15381</link><guid isPermaLink="true">https://forum.netxms.org/post/15381</guid><dc:creator><![CDATA[cserzs]]></dc:creator><pubDate>Wed, 19 Nov 2014 14:58:36 GMT</pubDate></item><item><title><![CDATA[Reply to Threshold script on Tue, 18 Nov 2014 21:45:53 GMT]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">can you show a screenshot of DCI "MUXD_CurrentPA" configuration?</p>
<p dir="auto">Best regards,<br />
Victor</p>
]]></description><link>https://forum.netxms.org/post/15357</link><guid isPermaLink="true">https://forum.netxms.org/post/15357</guid><dc:creator><![CDATA[victor]]></dc:creator><pubDate>Tue, 18 Nov 2014 21:45:53 GMT</pubDate></item><item><title><![CDATA[Reply to Threshold script on Mon, 17 Nov 2014 20:44:40 GMT]]></title><description><![CDATA[<p dir="auto">Hello,</p>
<p dir="auto">Yes, in the DCI name also exist the space character before "(A)" substring. However I modified the DCI name to "MUXD_CurrentPA" and I checked the script with this name as well. The result was also the "(null)" value.</p>
<p dir="auto">BR,<br />
Zsolt</p>
]]></description><link>https://forum.netxms.org/post/15338</link><guid isPermaLink="true">https://forum.netxms.org/post/15338</guid><dc:creator><![CDATA[cserzs]]></dc:creator><pubDate>Mon, 17 Nov 2014 20:44:40 GMT</pubDate></item><item><title><![CDATA[Reply to Threshold script on Mon, 17 Nov 2014 17:10:01 GMT]]></title><description><![CDATA[<p dir="auto">There is a space in DCI name, please verify that you have space in configuration too.</p>
]]></description><link>https://forum.netxms.org/post/15337</link><guid isPermaLink="true">https://forum.netxms.org/post/15337</guid><dc:creator><![CDATA[alk]]></dc:creator><pubDate>Mon, 17 Nov 2014 17:10:01 GMT</pubDate></item><item><title><![CDATA[Reply to Threshold script on Mon, 17 Nov 2014 16:42:48 GMT]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">Thank you very much for your answer. I have tested your script but I found that the value of dcival in each case were "(null)". Please find the details in the attachment. However the dci value was about 2.8</p>
<p dir="auto">What could be the problem?</p>
<p dir="auto">BR,<br />
Zsolt</p>
<hr />
<p dir="auto"><img src="/assets/uploads/files/smf/0000000002074-dcival.jpg" alt="dcival.jpg" class="img-markdown  img-fluid" width="883" height="598" /></p>
]]></description><link>https://forum.netxms.org/post/15336</link><guid isPermaLink="true">https://forum.netxms.org/post/15336</guid><dc:creator><![CDATA[cserzs]]></dc:creator><pubDate>Mon, 17 Nov 2014 16:42:48 GMT</pubDate></item><item><title><![CDATA[Reply to Threshold script on Sun, 16 Nov 2014 10:23:28 GMT]]></title><description><![CDATA[<p dir="auto">Hi<br />
in treshold section, you must select "script" from function, samples=1, activation event and deactivation event as your choice.</p>
<p dir="auto">Press Script Button and write :</p>
<p dir="auto">dcival=GetDCIValue($node, FindDCIByName($node, "Status")); (Status=your DCI name)<br />
if (dcival&gt;0 &amp;&amp; decimal &lt;1) return true;<br />
return false;</p>
]]></description><link>https://forum.netxms.org/post/15327</link><guid isPermaLink="true">https://forum.netxms.org/post/15327</guid><dc:creator><![CDATA[mkemerci]]></dc:creator><pubDate>Sun, 16 Nov 2014 10:23:28 GMT</pubDate></item></channel></rss>