<?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[Issue with auto apply/remove template]]></title><description><![CDATA[<p dir="auto">Hello team,</p>
<p dir="auto">I have configured a simple script which work as a DCI in NetXMS. The script and the DCI works perfect, but the devices on which i need the script are a lot and i have configured auto apply on a template, which seemed to be working fine.</p>
<p dir="auto">The auto apply script is really simple, it check if the device have a specific Custom Attribute and if it is router or switch:</p>
<p dir="auto">if ((GetCustomAttribute($node, "RANCID_ENABLED") ~= "1") &amp;&amp; ($node-&gt;isRouter ~= "1") || ($node-&gt;isBridge ~= "1"))<br />
{ return true;<br />
} else {<br />
return false;<br />
}</p>
<p dir="auto">Yesterday for some reason auto apply set devices under the template which doesn't really apply to the filter. This resulted in false positive alarms. The strange thing is when i initiate configuration poll the DCI is not removed. If removed manually it does not apply again (just tried to reproduce the issue). Is there a problem with automatically removing DCI when they no longer passes though the filter?<br />
Configuration poll with debug level 6 from problematic device attached (nothing happens).</p>
<hr />
<p dir="auto"><a href="/assets/uploads/files/smf/0000000003809-confpoll.txt">confpoll.txt</a></p>
]]></description><link>https://forum.netxms.org/topic/5324/issue-with-auto-apply-remove-template</link><generator>RSS for Node</generator><lastBuildDate>Fri, 13 Nov 2026 09:39:57 GMT</lastBuildDate><atom:link href="https://forum.netxms.org/topic/5324.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 13 Nov 2017 09:56:33 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Issue with auto apply/remove template on Mon, 27 Nov 2017 13:22:49 GMT]]></title><description><![CDATA[<p dir="auto">Hello Tatjana, team,</p>
<p dir="auto">I can confirm that "Remove this template automatically when node no longer passes through filer" option is selected. Thanks for pointing my mistake out. I will check if this is the issue here and will update.</p>
<p dir="auto">Best regards,<br />
Adrian</p>
]]></description><link>https://forum.netxms.org/post/23435</link><guid isPermaLink="true">https://forum.netxms.org/post/23435</guid><dc:creator><![CDATA[adimitrov]]></dc:creator><pubDate>Mon, 27 Nov 2017 13:22:49 GMT</pubDate></item><item><title><![CDATA[Reply to Issue with auto apply/remove template on Tue, 14 Nov 2017 15:57:32 GMT]]></title><description><![CDATA[<p dir="auto">We have not faced any issues with auto remove.<br />
Please verify, that "Remove this template automatically when node no longer passes through filter" option is selected for the template on "Automatic Apply Rules" property page.</p>
<p dir="auto">Also in your script:<br />
Template will be applied to all routers with custom attribute or to bridges(with or without custom attributes). If you want to check custom attributes for bot is should look like:</p>
<p dir="auto">if ((GetCustomAttribute($node, "RANCID_ENABLED") ~= "1") &amp;&amp; (($node-&gt;isRouter ~= "1") || ($node-&gt;isBridge ~= "1")))<br />
{ return true;<br />
} else {<br />
return false;<br />
}</p>
]]></description><link>https://forum.netxms.org/post/23374</link><guid isPermaLink="true">https://forum.netxms.org/post/23374</guid><dc:creator><![CDATA[zev]]></dc:creator><pubDate>Tue, 14 Nov 2017 15:57:32 GMT</pubDate></item></channel></rss>