<?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[Add custom parameter to Event Template?]]></title><description><![CDATA[<p dir="auto">Event <strong>SYS_IF_DOWN</strong> has default message <strong>Interface "%2" changed state to DOWN (IP Addr: %3/%4, IfIndex: %5)</strong><br />
How can i add %6 or %? with interface ifAlias?</p>
]]></description><link>https://forum.netxms.org/topic/6093/add-custom-parameter-to-event-template</link><generator>RSS for Node</generator><lastBuildDate>Fri, 13 Nov 2026 09:22:53 GMT</lastBuildDate><atom:link href="https://forum.netxms.org/topic/6093.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 20 Aug 2019 01:59:07 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Add custom parameter to Event Template? on Fri, 25 Oct 2019 14:35:02 GMT]]></title><description><![CDATA[<p dir="auto">Currently $dci is not supported when a script is called from event processing. For SYS_THRESHOLD_EVENTs DCI ID is passed as 5-th parameter of $event:</p>
<pre><code>trace(1, "Script on SYS_THRESHOLD_EVENT: DCI ID: ".$event-&gt;parameters[5]+0);
trace(1, "Script on SYS_THRESHOLD_EVENT: DCI name: ".GetDCIObject($node,($event-&gt;parameters[5]))-&gt;name);
trace(1, "Script on SYS_THRESHOLD_EVENT: Interface name: ".GetDCIObject($node,($event-&gt;parameters[5]))-&gt;relatedObject-&gt;name);
</code></pre>
]]></description><link>https://forum.netxms.org/post/26825</link><guid isPermaLink="true">https://forum.netxms.org/post/26825</guid><dc:creator><![CDATA[Filipp Sudanov]]></dc:creator><pubDate>Fri, 25 Oct 2019 14:35:02 GMT</pubDate></item><item><title><![CDATA[Reply to Add custom parameter to Event Template? on Tue, 22 Oct 2019 00:58:57 GMT]]></title><description><![CDATA[<p dir="auto">I create the script GetInterfaceAlias</p>
<pre><code>if ($dci==null)
  return "?";
else
  return GetInterfaceObject($node, $dci-&gt;instanceData)-&gt;alias;
</code></pre>
<p dir="auto">and using macro in message <strong>%[GetInterfaceAlias]</strong> but this return "?"<br />
my threshold script run correct</p>
<pre><code>ifo = GetInterfaceObject($node, $dci-&gt;instanceData);
speed = ifo-&gt;speed;
if (speed!=null)
  if ($1/speed*100 &gt; $2)
    return true;
return false;
</code></pre>
<p dir="auto">I'am using NETXMS 3.0.2287.<br />
Can you tell me my mistake.</p>
]]></description><link>https://forum.netxms.org/post/26802</link><guid isPermaLink="true">https://forum.netxms.org/post/26802</guid><dc:creator><![CDATA[ntnam]]></dc:creator><pubDate>Tue, 22 Oct 2019 00:58:57 GMT</pubDate></item><item><title><![CDATA[Reply to Add custom parameter to Event Template? on Fri, 18 Oct 2019 14:48:00 GMT]]></title><description><![CDATA[<p dir="auto">In version 3.0 you can set interface as related object for DCI and then access it via DCI object.</p>
<p dir="auto">Best regards,<br />
Victor</p>
]]></description><link>https://forum.netxms.org/post/26788</link><guid isPermaLink="true">https://forum.netxms.org/post/26788</guid><dc:creator><![CDATA[victor]]></dc:creator><pubDate>Fri, 18 Oct 2019 14:48:00 GMT</pubDate></item><item><title><![CDATA[Reply to Add custom parameter to Event Template? on Fri, 18 Oct 2019 04:08:27 GMT]]></title><description><![CDATA[<p dir="auto">Event <strong>SYS_THRESHOLD_REACHED</strong> don't have parameter index of interface.<br />
Can i store it from Threshold Script and get it in Event?<br />
Can you show me another way to get it?</p>
]]></description><link>https://forum.netxms.org/post/26774</link><guid isPermaLink="true">https://forum.netxms.org/post/26774</guid><dc:creator><![CDATA[ntnam]]></dc:creator><pubDate>Fri, 18 Oct 2019 04:08:27 GMT</pubDate></item><item><title><![CDATA[Reply to Add custom parameter to Event Template? on Tue, 20 Aug 2019 11:06:26 GMT]]></title><description><![CDATA[<p dir="auto">Yes. Thanks you very much.</p>
]]></description><link>https://forum.netxms.org/post/26310</link><guid isPermaLink="true">https://forum.netxms.org/post/26310</guid><dc:creator><![CDATA[ntnam]]></dc:creator><pubDate>Tue, 20 Aug 2019 11:06:26 GMT</pubDate></item><item><title><![CDATA[Reply to Add custom parameter to Event Template? on Tue, 20 Aug 2019 10:05:50 GMT]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">interface alias is not passed to SYS_IF_DOWN. You can create script in script library called GetInterfaceAlias with the following code:</p>
<pre><code>return GetInterfaceObject($node, $event-&gt;parameters[5])-&gt;alias;
</code></pre>
<p dir="auto">and then use macro <strong>%[GetInterfaceAlias]</strong> in message text.</p>
<p dir="auto">Best regards,<br />
Victor</p>
]]></description><link>https://forum.netxms.org/post/26309</link><guid isPermaLink="true">https://forum.netxms.org/post/26309</guid><dc:creator><![CDATA[victor]]></dc:creator><pubDate>Tue, 20 Aug 2019 10:05:50 GMT</pubDate></item></channel></rss>