<?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[Event Processing Filter Script not filtering]]></title><description><![CDATA[<p dir="auto">Hello,<br />
I would love a pointer. Nodes in our system have a custom attribute "map" and I would like to filter event processing rules based on this value. What I have setup does not work. The filter passes all events, regardless of the custom attribute value.</p>
<p dir="auto">Does my filter look right? I would expect that if I've screwed it up, it would pass 0 events, but for some reason it passes everything.</p>
<p dir="auto">Thanks a bunch!</p>
<hr />
<p dir="auto"><img src="/assets/uploads/files/smf/0000000006508-Capture.PNG" alt="Capture.PNG" class="img-markdown  img-fluid" width="1149" height="455" /></p>
]]></description><link>https://forum.netxms.org/topic/7770/event-processing-filter-script-not-filtering</link><generator>RSS for Node</generator><lastBuildDate>Fri, 13 Nov 2026 09:23:15 GMT</lastBuildDate><atom:link href="https://forum.netxms.org/topic/7770.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 20 Sep 2023 21:24:11 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Event Processing Filter Script not filtering on Tue, 26 Sep 2023 17:19:01 GMT]]></title><description><![CDATA[<p dir="auto">Great, thanks for all your hard work. We are getting into the system and it's really great, lots of rooms for scripts and customization!</p>
]]></description><link>https://forum.netxms.org/post/32842</link><guid isPermaLink="true">https://forum.netxms.org/post/32842</guid><dc:creator><![CDATA[zw_gs]]></dc:creator><pubDate>Tue, 26 Sep 2023 17:19:01 GMT</pubDate></item><item><title><![CDATA[Reply to Event Processing Filter Script not filtering on Mon, 25 Sep 2023 11:43:26 GMT]]></title><description><![CDATA[<p dir="auto">Yes, currently error is treated as true, which is not good. Will be changed to false in next release.</p>
]]></description><link>https://forum.netxms.org/post/32832</link><guid isPermaLink="true">https://forum.netxms.org/post/32832</guid><dc:creator><![CDATA[Filipp Sudanov]]></dc:creator><pubDate>Mon, 25 Sep 2023 11:43:26 GMT</pubDate></item><item><title><![CDATA[Reply to Event Processing Filter Script not filtering on Thu, 21 Sep 2023 00:46:53 GMT]]></title><description><![CDATA[<p dir="auto">Okay I think I've solved my problem. Some nodes are missing the attribute.</p>
<pre><code>if (GetCustomAttribute($node, "map") like "[RTH]*") {
    return true;
}
return false;
</code></pre>
<p dir="auto">Into</p>
<pre><code>map_attr = GetCustomAttribute($node, "map");

if (map_attr != null &amp;&amp; map_attr like "[RTH]*") {
    return true;
}
return false;
</code></pre>
<p dir="auto">I assume 'null like "[RTH]*"' produces an exception. Though I would think an exception in the filter script would be equivalent to accept=false, but it seems exception means accept=true</p>
]]></description><link>https://forum.netxms.org/post/32813</link><guid isPermaLink="true">https://forum.netxms.org/post/32813</guid><dc:creator><![CDATA[zw_gs]]></dc:creator><pubDate>Thu, 21 Sep 2023 00:46:53 GMT</pubDate></item><item><title><![CDATA[Reply to Event Processing Filter Script not filtering on Wed, 20 Sep 2023 21:26:39 GMT]]></title><description><![CDATA[<p dir="auto"><img src="/assets/uploads/files/smf/0000000006512-Capture.PNG" alt="Capture.PNG" class="img-markdown  img-fluid" width="1149" height="455" /></p>
]]></description><link>https://forum.netxms.org/post/32811</link><guid isPermaLink="true">https://forum.netxms.org/post/32811</guid><dc:creator><![CDATA[zw_gs]]></dc:creator><pubDate>Wed, 20 Sep 2023 21:26:39 GMT</pubDate></item></channel></rss>