<?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[Polls needed for deactivation event 'rearm-event' in THRESHOLD configuration]]></title><description><![CDATA[<p dir="auto">I know how to configure the number of polls needed for an activation event in THRESHOLD configuration. This is the 'samples' field.</p>
<p dir="auto">Can this also be done for the number of polls needed for a deactivation event in THRESHOLD configuration.</p>
<p dir="auto">At the moment when i have a look at the logging values of  a DCI with a threshold set i can see that a deactivation event already occurs after 1 poll with a value below the set threshold.<br />
I would like to set the number of polls needed for a deactivation event  (rearm-event) to for example 5.</p>
<p dir="auto">Anyone any suggestions?<br />
Thanks in advance.</p>
]]></description><link>https://forum.netxms.org/topic/4533/polls-needed-for-deactivation-event-rearm-event-in-threshold-configuration</link><generator>RSS for Node</generator><lastBuildDate>Fri, 13 Nov 2026 12:28:21 GMT</lastBuildDate><atom:link href="https://forum.netxms.org/topic/4533.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 17 Jun 2016 11:49:17 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Polls needed for deactivation event 'rearm-event' in THRESHOLD configuration on Wed, 13 Jul 2016 13:26:48 GMT]]></title><description><![CDATA[<p dir="auto">Thank you for your help.</p>
<p dir="auto">Kindest regards.</p>
]]></description><link>https://forum.netxms.org/post/20410</link><guid isPermaLink="true">https://forum.netxms.org/post/20410</guid><dc:creator><![CDATA[Mark.Ouwendijk]]></dc:creator><pubDate>Wed, 13 Jul 2016 13:26:48 GMT</pubDate></item><item><title><![CDATA[Reply to Polls needed for deactivation event 'rearm-event' in THRESHOLD configuration on Tue, 05 Jul 2016 15:50:13 GMT]]></title><description><![CDATA[<p dir="auto">For now there is no easy solution for it. I have created bug about it: <a href="https://dev.raden.solutions/issues/1253" rel="nofollow ugc">https://dev.raden.solutions/issues/1253</a></p>
<p dir="auto">One of non trivial solutions can be:<br />
Create script DCI that will return 1 if threshold should be generated and 0 if deactivation event should be generated. And count everything by yourselves(it should be working but "dirty" solution).</p>
<p dir="auto">Something like this(have not tested this):<br />
value = GetDCIValue($node, FindDCIByName($node, "Agent log status"));<br />
if(value != null)<br />
{<br />
    attr = GetCustomAttribute($node, "NormalStateSampleCount");<br />
    count = 5;<br />
    if(attr != null)<br />
    {<br />
        count = int32(attr);<br />
    }<br />
    if(int32(value) &gt; 5) //Activation event should be generated<br />
    {<br />
        SetCustomAttribute($node, "NormalStateSampleCount", "0");<br />
        return 1;<br />
    }<br />
    <br />
    if(int32(value) &lt; 5)<br />
    {<br />
        count++;<br />
        SetCustomAttribute($node, "NormalStateSampleCount", "0");<br />
        if(count == 5) //Deactivation event should be generated<br />
        {<br />
            return 0;<br />
        }<br />
        return 1;<br />
    }<br />
}</p>
<p dir="auto">SetCustomAttribute($node, "NormalStateSampleCount", "0");<br />
return 1;</p>
]]></description><link>https://forum.netxms.org/post/20336</link><guid isPermaLink="true">https://forum.netxms.org/post/20336</guid><dc:creator><![CDATA[zev]]></dc:creator><pubDate>Tue, 05 Jul 2016 15:50:13 GMT</pubDate></item></channel></rss>