<?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[NetXMS 3 automatic apply rules]]></title><description><![CDATA[<p dir="auto">Hi.</p>
<p dir="auto">Since upgrading to NetXMS v3 my template automatic apply rules don't work. They are pretty simple, could this be due to the regex change?</p>
<p dir="auto">This is my one below. Any ideas?</p>
<p dir="auto">return $node-&gt;sysDescription ~= "CSS";</p>
]]></description><link>https://forum.netxms.org/topic/6227/netxms-3-automatic-apply-rules</link><generator>RSS for Node</generator><lastBuildDate>Fri, 13 Nov 2026 14:10:30 GMT</lastBuildDate><atom:link href="https://forum.netxms.org/topic/6227.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 16 Oct 2019 14:29:16 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to NetXMS 3 automatic apply rules on Wed, 16 Oct 2019 15:40:10 GMT]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">this is because ~= operation now returns array of capture groups instead of boolean value. It works as expected in "if" statement and other places where logical expression is expected, but "return" statement just returns array, which is ignored by poller code. This is bug in a poller which we will fix. As a workaround you can use expression like this:</p>
<p dir="auto">return ($node-&gt;sysDescription ~= "CSS") ? true : false;</p>
<p dir="auto">Best regards,<br />
Victor</p>
]]></description><link>https://forum.netxms.org/post/26755</link><guid isPermaLink="true">https://forum.netxms.org/post/26755</guid><dc:creator><![CDATA[victor]]></dc:creator><pubDate>Wed, 16 Oct 2019 15:40:10 GMT</pubDate></item><item><title><![CDATA[Reply to NetXMS 3 automatic apply rules on Wed, 16 Oct 2019 15:33:18 GMT]]></title><description><![CDATA[<p dir="auto">this seems to work</p>
<p dir="auto">return $node-&gt;sysDescription like "*CSS*";</p>
]]></description><link>https://forum.netxms.org/post/26754</link><guid isPermaLink="true">https://forum.netxms.org/post/26754</guid><dc:creator><![CDATA[blingblouw]]></dc:creator><pubDate>Wed, 16 Oct 2019 15:33:18 GMT</pubDate></item></channel></rss>