<?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[Custom Message Not Being Passed]]></title><description><![CDATA[<p dir="auto">Hi.  I currently have the following filtering script in my "Interface Up Email" Event Processing Policy:</p>
<p dir="auto">sub main()<br />
{<br />
   CUSTOM_MESSAGE = "TEST";<br />
   i = GetInterfaceObject ($node, $1);<br />
   include_node = false;<br />
   switch ($node-&gt;ipAddr)<br />
   {<br />
      case "10.230.0.212":<br />
         if (i-&gt;name == "gi7")<br />
         {<br />
            CUSTOM_MESSAGE = "PC to Switch Test Interface";<br />
            include_node = true;<br />
         }<br />
         if (i-&gt;name == "gi2")<br />
         {<br />
            CUSTOM_MESSAGE = "PC to Switch Test Interface2";<br />
            include_node = true;<br />
         }<br />
         break;<br />
      default:<br />
         include_node = false;<br />
   }<br />
   return include_node;<br />
}</p>
<p dir="auto">My Message Text in Action Configuration for email looks like this:  %n - %m - %M</p>
<p dir="auto">I am getting the email for the correct interfaces and the first 2 parameters for the message (%n and %m) are being passed but the CUSTOM_MESSAGE (%M) is not being displayed.</p>
<p dir="auto">Any ideas?</p>
<p dir="auto">Thanks for any help.</p>
]]></description><link>https://forum.netxms.org/topic/4411/custom-message-not-being-passed</link><generator>RSS for Node</generator><lastBuildDate>Fri, 13 Nov 2026 14:55:02 GMT</lastBuildDate><atom:link href="https://forum.netxms.org/topic/4411.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 15 Apr 2016 17:45:58 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Custom Message Not Being Passed on Mon, 18 Apr 2016 18:13:21 GMT]]></title><description><![CDATA[<p dir="auto">I figured this out.  I should have been using:</p>
<p dir="auto">i = GetInterfaceObject ($node, $5) for the specific interface index</p>
<p dir="auto">instead of </p>
<p dir="auto">i = GetInterfaceObject ($node, $1);</p>
]]></description><link>https://forum.netxms.org/post/19663</link><guid isPermaLink="true">https://forum.netxms.org/post/19663</guid><dc:creator><![CDATA[pdelvaglio]]></dc:creator><pubDate>Mon, 18 Apr 2016 18:13:21 GMT</pubDate></item></channel></rss>