<?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[Send different DCI values from the same node (or not?)]]></title><description><![CDATA[<p dir="auto">Hello,</p>
<p dir="auto">I'm generating an event when disk space is low -&gt; no problem.</p>
<p dir="auto">I generate a Treshold when FileSystemFreePerc &lt; 10%.<br />
On the message field of Event configuration I write: "Low disk space of %n : %4 %% (limit %3 %%)" and then send it by mail.</p>
<p dir="auto">But how can I send the value of another parameter like FileSystem.Total of the same node? (or of another? I see that each parameter have ID).</p>
<p dir="auto">Regards</p>
]]></description><link>https://forum.netxms.org/topic/4303/send-different-dci-values-from-the-same-node-or-not</link><generator>RSS for Node</generator><lastBuildDate>Fri, 13 Nov 2026 09:34:51 GMT</lastBuildDate><atom:link href="https://forum.netxms.org/topic/4303.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 12 Feb 2016 10:44:06 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Send different DCI values from the same node (or not?) on Fri, 19 Feb 2016 17:17:08 GMT]]></title><description><![CDATA[<p dir="auto">Thanks !!  ;D</p>
]]></description><link>https://forum.netxms.org/post/19281</link><guid isPermaLink="true">https://forum.netxms.org/post/19281</guid><dc:creator><![CDATA[sergio]]></dc:creator><pubDate>Fri, 19 Feb 2016 17:17:08 GMT</pubDate></item><item><title><![CDATA[Reply to Send different DCI values from the same node (or not?) on Fri, 12 Feb 2016 17:09:04 GMT]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">there are few errors:</p>
<ol>
<li>you should place your code within main() function or not use functions at all;</li>
<li>If this is threshold violation event, then instance will be passed as event's parameter #6, and can be accessed as $event-&gt;parameters[6]</li>
<li>Expression</li>
</ol>
<p dir="auto">return (value != null) &amp;&amp; (value &gt; 0);</p>
<p dir="auto">will return 0 (false) or 1 (true) which is probably not what you want.</p>
<p dir="auto">Script that will return value of FileSystem.Free for current instance or N/A if it cannot be obtained can looks like following:</p>
<pre><code>value = AgentReadParameter($node, "FileSystem.Free(" . $event-&gt;parameters[6] . ")");
return (value != null) ? value : "N/A";
</code></pre>
<p dir="auto">Best regards,<br />
Victor</p>
]]></description><link>https://forum.netxms.org/post/19241</link><guid isPermaLink="true">https://forum.netxms.org/post/19241</guid><dc:creator><![CDATA[victor]]></dc:creator><pubDate>Fri, 12 Feb 2016 17:09:04 GMT</pubDate></item><item><title><![CDATA[Reply to Send different DCI values from the same node (or not?) on Fri, 12 Feb 2016 15:57:55 GMT]]></title><description><![CDATA[<p dir="auto">Thanks for the reply,</p>
<p dir="auto">I've done:</p>
<pre><code>sub Free()
{

   value = AgentReadParameter($node, "FileSystem.Free(" . $1 . ")");
   return (value != null) &amp;&amp; (value &gt; 0);
}
</code></pre>
<p dir="auto">In a script library.</p>
<p dir="auto">(I wanted that the script work on the actual "instance" letter Drive, is that possible?)</p>
<p dir="auto">Then, in event message <strong>"%[NameInTheLibrary]"</strong> doesn't work.</p>
]]></description><link>https://forum.netxms.org/post/19239</link><guid isPermaLink="true">https://forum.netxms.org/post/19239</guid><dc:creator><![CDATA[sergio]]></dc:creator><pubDate>Fri, 12 Feb 2016 15:57:55 GMT</pubDate></item><item><title><![CDATA[Reply to Send different DCI values from the same node (or not?) on Fri, 12 Feb 2016 10:52:46 GMT]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">you can use scripts for that. You can insert return value of script from script library using %[script_name] macro, and in a script you can use AgentReadParameter to read data directly from agent or GetDCIValueByName/GetDCIValueByDescription to get value of another DCI.</p>
<p dir="auto">Best regards,<br />
Victor</p>
]]></description><link>https://forum.netxms.org/post/19231</link><guid isPermaLink="true">https://forum.netxms.org/post/19231</guid><dc:creator><![CDATA[victor]]></dc:creator><pubDate>Fri, 12 Feb 2016 10:52:46 GMT</pubDate></item></channel></rss>