<?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[Value from dci table to event template?]]></title><description><![CDATA[<p dir="auto">Is there any possibility to get a value to event template other than the instance one.<br />
It returns the row but you cannot use this in the event template like %<a rel="nofollow ugc">column:ColumName</a> or %<a rel="nofollow ugc">row:ColumName</a>??</p>
]]></description><link>https://forum.netxms.org/topic/8093/value-from-dci-table-to-event-template</link><generator>RSS for Node</generator><lastBuildDate>Fri, 13 Nov 2026 08:53:20 GMT</lastBuildDate><atom:link href="https://forum.netxms.org/topic/8093.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 16 Jan 2025 14:34:18 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Value from dci table to event template? on Fri, 17 Jan 2025 18:32:19 GMT]]></title><description><![CDATA[<p dir="auto">In many cases it's better to use regular DCIs and instance discovery to automatically creation and removal of them.</p>
]]></description><link>https://forum.netxms.org/post/34094</link><guid isPermaLink="true">https://forum.netxms.org/post/34094</guid><dc:creator><![CDATA[Filipp Sudanov]]></dc:creator><pubDate>Fri, 17 Jan 2025 18:32:19 GMT</pubDate></item><item><title><![CDATA[Reply to Value from dci table to event template? on Fri, 17 Jan 2025 17:56:30 GMT]]></title><description><![CDATA[<p dir="auto">I might have been overthinking this issue.</p>
<p dir="auto">I think its enough to have this in the event template:</p>
<p dir="auto">Nginx certificate will expire in 14 days for: %&lt;instance&gt; on server %n</p>
<p dir="auto">%&lt;instance&gt; is the certificate name in my case<br />
and %n is the node or object name in netxms.</p>
<p dir="auto">Thank you so much for the input though.</p>
]]></description><link>https://forum.netxms.org/post/34092</link><guid isPermaLink="true">https://forum.netxms.org/post/34092</guid><dc:creator><![CDATA[Hanfelt]]></dc:creator><pubDate>Fri, 17 Jan 2025 17:56:30 GMT</pubDate></item><item><title><![CDATA[Reply to Value from dci table to event template? on Thu, 16 Jan 2025 23:12:25 GMT]]></title><description><![CDATA[<p dir="auto">In all places where macros are supported you can use %[script_name] macro. Script with specified name should be in script library. In that script you can access table value (it will be object of class table - <a href="https://www.netxms.org/documentation/nxsl-latest/#class-table" rel="nofollow ugc">https://www.netxms.org/documentation/nxsl-latest/#class-table</a>) and get value of specific cell from it.</p>
<p dir="auto">When developing your script, you can run it via Execute Script on the node where you have your table DCI. However, there's a difference - when script is ran automatically on threshold violation, variables $event, $dci will be set - you can use these to get parameters of event or id of the DCI. When running via Execute Script, these variables will not be set, so you need to modify your script slightly.</p>
<p dir="auto">Here's a brief example:</p>
<pre><code>//t = GetDCIValue($node, $dci.id); // for use in script called on threshold violation
t = GetDCIValue($node, 13741); // for testing - use via Execute Script on node

//row = $event.getParameter(4); // for use in script called on threshold violation
row = t.findRowIndexByInstance("/sys"); // for testing

return t.get(row, 1);
</code></pre>
<p dir="auto">You can give some more information, what exactly cell of your table you want to extract, then I can give some more examples.</p>
]]></description><link>https://forum.netxms.org/post/34089</link><guid isPermaLink="true">https://forum.netxms.org/post/34089</guid><dc:creator><![CDATA[Filipp Sudanov]]></dc:creator><pubDate>Thu, 16 Jan 2025 23:12:25 GMT</pubDate></item></channel></rss>