<?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[[SOLVED] Unable to use macro %5 as key in event processing policy]]></title><description><![CDATA[<p dir="auto">Hi!</p>
<p dir="auto">I found this in the forum, which is a great way to differentiate events:</p>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/victor" aria-label="Profile: victor">@<bdi>victor</bdi></a> said in <a href="/post/4410">Event Processing Policy</a>:</p>
<blockquote>
<p dir="auto">Hi!</p>
<p dir="auto">I would suggest to change alarm key in your configuration for %m (message text) to DC_%i_%5 - that would create separate alarms for different nodes, even if they have same message text. But anyway, that is not important for sending e-mails. From information you have sent it is not clear why you getting e-mail only for 1 DCI - I should see configuration and values of all 4 DCIs. Also, was it your intention to send e-mails every minute as long as there are files matching filter?</p>
<p dir="auto">Best regards,<br />
Victor</p>
</blockquote>
<p dir="auto">But, when I use it in already existing events in my event processing policy, it is blank.<br />
If I try to set it as a text message, the macro parameter is shown as a blank, i.e null or nothing.</p>
<p dir="auto">I configure the DCI that uses these events from a template that distributes to my nodes.</p>
<p dir="auto">When I create a new DCI on one of my nodes, not through a template, and then test it, the macro %5 shows output, which I think is the correct one.</p>
<p dir="auto">Could there be a problem because I use a template?</p>
<p dir="auto">Best regards,<br />
Dan</p>
]]></description><link>https://forum.netxms.org/topic/995/solved-unable-to-use-macro-5-as-key-in-event-processing-policy</link><generator>RSS for Node</generator><lastBuildDate>Fri, 13 Nov 2026 07:26:35 GMT</lastBuildDate><atom:link href="https://forum.netxms.org/topic/995.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 08 Oct 2010 14:59:08 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to [SOLVED] Unable to use macro %5 as key in event processing policy on Sun, 10 Oct 2010 13:37:10 GMT]]></title><description><![CDATA[<p dir="auto">Seems like that was the problem, the difference between %5 when using it in a threshold and a rearm event.</p>
<p dir="auto">Thank you very much for your help!</p>
<p dir="auto">Best regards,<br />
Dan</p>
]]></description><link>https://forum.netxms.org/post/4524</link><guid isPermaLink="true">https://forum.netxms.org/post/4524</guid><dc:creator><![CDATA[Dan]]></dc:creator><pubDate>Sun, 10 Oct 2010 13:37:10 GMT</pubDate></item><item><title><![CDATA[Reply to [SOLVED] Unable to use macro %5 as key in event processing policy on Sun, 10 Oct 2010 13:22:04 GMT]]></title><description><![CDATA[<p dir="auto">Hi!</p>
<p dir="auto">I think it is me that configured it wrong, I used %5 on my rearm, instead of %3.<br />
I will try this first just to ensure that it is not me.</p>
<p dir="auto">If it does not work I will try to explain my configuration <img src="https://forum.netxms.org/assets/plugins/nodebb-plugin-emoji/emoji/android/1f642.png?v=72b86a538fc" class="not-responsive emoji emoji-android emoji--slightly_smiling_face" style="height:1.4em;width:auto;vertical-align:middle" title=":)" alt="🙂" /></p>
<p dir="auto">Thank you for your answer!</p>
<p dir="auto">Best regards,<br />
Dan</p>
]]></description><link>https://forum.netxms.org/post/4523</link><guid isPermaLink="true">https://forum.netxms.org/post/4523</guid><dc:creator><![CDATA[Dan]]></dc:creator><pubDate>Sun, 10 Oct 2010 13:22:04 GMT</pubDate></item><item><title><![CDATA[Reply to [SOLVED] Unable to use macro %5 as key in event processing policy on Fri, 08 Oct 2010 20:28:27 GMT]]></title><description><![CDATA[<p dir="auto">Hi!</p>
<p dir="auto">All %<em>number</em> macros are event-dependent. %5 will be DCI ID for threshold violation events. However, for threshold rearm events DCI ID will be %3 (I know that it's confusing, but unfortunately this cannot be changed without breaking backward compatibility). There should not be any difference on how DCI was created - directly on the node or via template.<br />
Could you please provide more details about your configuration (DCI thresholds configuration, event policy rule)?</p>
<p dir="auto">Best regards,<br />
Victor</p>
]]></description><link>https://forum.netxms.org/post/4522</link><guid isPermaLink="true">https://forum.netxms.org/post/4522</guid><dc:creator><![CDATA[victor]]></dc:creator><pubDate>Fri, 08 Oct 2010 20:28:27 GMT</pubDate></item><item><title><![CDATA[Reply to [SOLVED] Unable to use macro %5 as key in event processing policy on Fri, 08 Oct 2010 17:09:32 GMT]]></title><description><![CDATA[<p dir="auto">I forgot to mention that I am using 1.0.4.</p>
<p dir="auto">Best regards,<br />
Dan</p>
]]></description><link>https://forum.netxms.org/post/4519</link><guid isPermaLink="true">https://forum.netxms.org/post/4519</guid><dc:creator><![CDATA[Dan]]></dc:creator><pubDate>Fri, 08 Oct 2010 17:09:32 GMT</pubDate></item></channel></rss>