<?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[Include node's interface description in alarm mail]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">this is my context:</p>
<p dir="auto">i have a switch, for each interface i have a description that indicate the patch panel position or the end device connected.</p>
<p dir="auto">this is my goal:</p>
<p dir="auto">i'd like to have on Netxms for each interface a field that contains the description and when an up/down alarm for the interface is raised, i'd like to have the description field inclused in the alarm mail.</p>
<p dir="auto">I think to realize this using the comment field of the interface or adding a custum attribute for the interface...and until here no problem...but, how i can include the comment or the custum attribute in the alarm mail?<br />
If i add a custum attribute, in the event manager panel, when i configure the the "SYS_IF_DOWN" event, can i get the custom attribute using the  "$number" format (in other word, the classic way for use the parameter in the message string) ?</p>
<p dir="auto">Thank you,</p>
<p dir="auto">Giovanni</p>
]]></description><link>https://forum.netxms.org/topic/2368/include-node-s-interface-description-in-alarm-mail</link><generator>RSS for Node</generator><lastBuildDate>Fri, 13 Nov 2026 16:59:40 GMT</lastBuildDate><atom:link href="https://forum.netxms.org/topic/2368.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 06 May 2013 10:53:59 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Include node's interface description in alarm mail on Tue, 07 May 2013 20:33:49 GMT]]></title><description><![CDATA[<p dir="auto">Hi!</p>
<p dir="auto">You can include custom attribute in mail and/or alarm message by using %{<em>name</em>} macro. For example, if you have custom attribute named <strong>additionalInfo</strong>, you can use %{additionalInfo} to insert value of this attribute into message text.</p>
<p dir="auto">Inserting comments into message is a bit more complicated - you have to create script in script library, like this:</p>
<pre><code>return $node-&gt;comments;
</code></pre>
<p dir="auto">and then call it using %[<em>script_name</em>] macro.</p>
<p dir="auto">Best regards,<br />
Victor</p>
]]></description><link>https://forum.netxms.org/post/10223</link><guid isPermaLink="true">https://forum.netxms.org/post/10223</guid><dc:creator><![CDATA[victor]]></dc:creator><pubDate>Tue, 07 May 2013 20:33:49 GMT</pubDate></item></channel></rss>