<?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[How to access delay timer key in NXSL?]]></title><description><![CDATA[<p dir="auto">Hi All, I am trying to create a filtering script to check if a delay timer key has expired or not.  Is there any NXSL Class serves such purpose?</p>
<p dir="auto">Here is what I am trying to achieve :-</p>
<ol>
<li>Delay the email alert by 180 seconds if any node/interface is down [Done]</li>
<li>When the node/interface is up and the delay timer is still within 180 seconds, no email alert. Otherwise, an email alert on the node/interface is UP.</li>
</ol>
<p dir="auto">Any help is greatly appreciated!</p>
<p dir="auto">Pedro</p>
]]></description><link>https://forum.netxms.org/topic/5794/how-to-access-delay-timer-key-in-nxsl</link><generator>RSS for Node</generator><lastBuildDate>Fri, 13 Nov 2026 07:22:49 GMT</lastBuildDate><atom:link href="https://forum.netxms.org/topic/5794.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 15 Jan 2019 10:42:16 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to How to access delay timer key in NXSL? on Fri, 25 Sep 2020 10:35:39 GMT]]></title><description><![CDATA[<p dir="auto">Also, in 3.5 there's now an ability to skip action, if a particular timer is running. So your condition should now fit into 2 EPP rules.</p>
<hr />
<p dir="auto"><img src="/assets/uploads/files/smf/0000000005299-Screenshot_at_2020-09-25_13-07-15.png" alt="Screenshot at 2020-09-25 13-07-15.png" class="img-markdown  img-fluid" width="572" height="216" /></p>
]]></description><link>https://forum.netxms.org/post/28613</link><guid isPermaLink="true">https://forum.netxms.org/post/28613</guid><dc:creator><![CDATA[Filipp Sudanov]]></dc:creator><pubDate>Fri, 25 Sep 2020 10:35:39 GMT</pubDate></item><item><title><![CDATA[Reply to How to access delay timer key in NXSL? on Wed, 19 Aug 2020 10:12:53 GMT]]></title><description><![CDATA[<p dir="auto">In addition - a good practice is to use expandString function, e.g.</p>
<pre><code>key = $event-&gt;expandString("TIMER_DC_THRESHOLD_%I_%&lt;dciId&gt;");
</code></pre>
<p dir="auto">in this case you just use the same string with macros as when specifying timer key, so there's no need to compose the key manually.</p>
]]></description><link>https://forum.netxms.org/post/28443</link><guid isPermaLink="true">https://forum.netxms.org/post/28443</guid><dc:creator><![CDATA[Filipp Sudanov]]></dc:creator><pubDate>Wed, 19 Aug 2020 10:12:53 GMT</pubDate></item><item><title><![CDATA[Reply to How to access delay timer key in NXSL? on Wed, 10 Jun 2020 03:12:19 GMT]]></title><description><![CDATA[<p dir="auto">hi Token, thank you so much for your reply! The trick is very useful!</p>
]]></description><link>https://forum.netxms.org/post/28030</link><guid isPermaLink="true">https://forum.netxms.org/post/28030</guid><dc:creator><![CDATA[pedrong]]></dc:creator><pubDate>Wed, 10 Jun 2020 03:12:19 GMT</pubDate></item><item><title><![CDATA[Reply to How to access delay timer key in NXSL? on Tue, 02 Jun 2020 11:14:16 GMT]]></title><description><![CDATA[<p dir="auto">You can configure Processing Policy like in attached image.</p>
<p dir="auto">Note a difference between variables <em>%i</em> and <em>%I</em>. They are points to a same data - object ID but <em>%i</em> represent it in hex value and <em>%I</em> represent in decimal value. Used in script <em>$node-&gt;id</em> returns value in decimal, so the timer key must be generated with decimal value too.</p>
<hr />
<p dir="auto"><img src="/assets/uploads/files/smf/0000000005171-IMAGE_2020-06-02_18_03_59.png" alt="IMAGE 2020-06-02 18:03:59.png" class="img-markdown  img-fluid" width="1150" height="619" /></p>
]]></description><link>https://forum.netxms.org/post/27992</link><guid isPermaLink="true">https://forum.netxms.org/post/27992</guid><dc:creator><![CDATA[token]]></dc:creator><pubDate>Tue, 02 Jun 2020 11:14:16 GMT</pubDate></item></channel></rss>