<?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[GetDCI]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">I was wondering whether i can achieve this or not:</p>
<p dir="auto">I have dci's who shows free disk space and dci's who shows total disk space. For one node there are more than one disk.<br />
What i want is, when alarm ir raised from free disk space threshold, i want to pass the total disk value to event too.<br />
I can achieve this with script:</p>
<blockquote>
<p dir="auto">return GetDCIValue($node, FindDCIByName($node, "Filesystem.Total(C:)"));</p>
</blockquote>
<p dir="auto">but this is for one dci with disk C.<br />
So is there a way to use this one script or event for more than one disk, or I must create new script and event for each disk?</p>
<p dir="auto">Regards,<br />
Nikk</p>
]]></description><link>https://forum.netxms.org/topic/3127/getdci</link><generator>RSS for Node</generator><lastBuildDate>Fri, 13 Nov 2026 09:47:14 GMT</lastBuildDate><atom:link href="https://forum.netxms.org/topic/3127.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 30 Apr 2014 08:59:51 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to GetDCI on Thu, 29 May 2014 17:50:11 GMT]]></title><description><![CDATA[<p dir="auto">Sorry for late answer, been busy.</p>
<p dir="auto">I checked with nxget and it returned non-zero value.</p>
]]></description><link>https://forum.netxms.org/post/14014</link><guid isPermaLink="true">https://forum.netxms.org/post/14014</guid><dc:creator><![CDATA[Nikk]]></dc:creator><pubDate>Thu, 29 May 2014 17:50:11 GMT</pubDate></item><item><title><![CDATA[Reply to GetDCI on Wed, 14 May 2014 14:57:41 GMT]]></title><description><![CDATA[<p dir="auto">You can query FileSystem.Total(E:) using nxget to check it.</p>
<p dir="auto">Best regards,<br />
Victor</p>
]]></description><link>https://forum.netxms.org/post/13893</link><guid isPermaLink="true">https://forum.netxms.org/post/13893</guid><dc:creator><![CDATA[victor]]></dc:creator><pubDate>Wed, 14 May 2014 14:57:41 GMT</pubDate></item><item><title><![CDATA[Reply to GetDCI on Wed, 14 May 2014 06:42:54 GMT]]></title><description><![CDATA[<p dir="auto">It could be, but I don't have no direct access to that server to check it. Thank you!</p>
]]></description><link>https://forum.netxms.org/post/13884</link><guid isPermaLink="true">https://forum.netxms.org/post/13884</guid><dc:creator><![CDATA[Nikk]]></dc:creator><pubDate>Wed, 14 May 2014 06:42:54 GMT</pubDate></item><item><title><![CDATA[Reply to GetDCI on Mon, 12 May 2014 16:50:04 GMT]]></title><description><![CDATA[<p dir="auto">Script looks correct. Could it be that disk E: has non-zero total space (could be the case if this is CD drive with disk inserted or any other read-only device)?</p>
<p dir="auto">Best regards,<br />
Victor</p>
]]></description><link>https://forum.netxms.org/post/13882</link><guid isPermaLink="true">https://forum.netxms.org/post/13882</guid><dc:creator><![CDATA[victor]]></dc:creator><pubDate>Mon, 12 May 2014 16:50:04 GMT</pubDate></item><item><title><![CDATA[Reply to GetDCI on Mon, 12 May 2014 09:10:38 GMT]]></title><description><![CDATA[<p dir="auto">Anyway, i'm still getting the other disks (see 1. screen), maybe the script isn't right.</p>
<p dir="auto">Then i tried your script:</p>
<blockquote>
<p dir="auto">value = AgentReadParameter($node, "FileSystem.Total(" . $1 . ")");<br />
return (value != null) &amp;&amp; (value &gt; 0);</p>
</blockquote>
<p dir="auto">And get rid only of Disk A:, but no disk E: (see 2. screen).</p>
<hr />
<p dir="auto"><img src="/assets/uploads/files/smf/0000000001733-1.png" alt="1.png" class="img-markdown  img-fluid" width="813" height="76" /></p>
<p dir="auto"><img src="/assets/uploads/files/smf/0000000001735-2.png" alt="2.png" class="img-markdown  img-fluid" width="820" height="58" /></p>
]]></description><link>https://forum.netxms.org/post/13873</link><guid isPermaLink="true">https://forum.netxms.org/post/13873</guid><dc:creator><![CDATA[Nikk]]></dc:creator><pubDate>Mon, 12 May 2014 09:10:38 GMT</pubDate></item><item><title><![CDATA[Reply to GetDCI on Mon, 12 May 2014 07:05:20 GMT]]></title><description><![CDATA[<p dir="auto">Really, thank you for the obvious mistake <img src="https://forum.netxms.org/assets/plugins/nodebb-plugin-emoji/emoji/android/1f642.png?v=72b86a538fc" class="not-responsive emoji emoji-android emoji--slightly_smiling_face" style="height:1.4em;width:auto;vertical-align:middle" title=":)" alt="🙂" /></p>
]]></description><link>https://forum.netxms.org/post/13868</link><guid isPermaLink="true">https://forum.netxms.org/post/13868</guid><dc:creator><![CDATA[Nikk]]></dc:creator><pubDate>Mon, 12 May 2014 07:05:20 GMT</pubDate></item><item><title><![CDATA[Reply to GetDCI on Wed, 07 May 2014 15:10:16 GMT]]></title><description><![CDATA[<p dir="auto">Looks like typo - you use = instead of == for comparison.</p>
<p dir="auto">Best regards,<br />
Victor</p>
]]></description><link>https://forum.netxms.org/post/13816</link><guid isPermaLink="true">https://forum.netxms.org/post/13816</guid><dc:creator><![CDATA[victor]]></dc:creator><pubDate>Wed, 07 May 2014 15:10:16 GMT</pubDate></item><item><title><![CDATA[Reply to GetDCI on Wed, 07 May 2014 12:33:25 GMT]]></title><description><![CDATA[<p dir="auto">Thanks for solution!</p>
<p dir="auto">So I tried it, stumpled upon instance discovery filter script. I wanted to get only C and D disks.<br />
I tried this script:</p>
<blockquote>
<p dir="auto">if (substr($1,1,1) = "C") || (substr($1,1,1) = "D")<br />
{<br />
    return true;<br />
}<br />
else<br />
{<br />
    return false;<br />
}</p>
</blockquote>
<p dir="auto">Seems like i don't get something, please guide me to right path <img src="https://forum.netxms.org/assets/plugins/nodebb-plugin-emoji/emoji/android/1f642.png?v=72b86a538fc" class="not-responsive emoji emoji-android emoji--slightly_smiling_face" style="height:1.4em;width:auto;vertical-align:middle" title=":)" alt="🙂" /></p>
<p dir="auto">Nikk</p>
]]></description><link>https://forum.netxms.org/post/13811</link><guid isPermaLink="true">https://forum.netxms.org/post/13811</guid><dc:creator><![CDATA[Nikk]]></dc:creator><pubDate>Wed, 07 May 2014 12:33:25 GMT</pubDate></item><item><title><![CDATA[Reply to GetDCI on Mon, 05 May 2014 13:37:26 GMT]]></title><description><![CDATA[<p dir="auto">Hi!</p>
<p dir="auto">In the script you have access to DCI's "instance" field (via $event-&gt;instance). If you have correct disk name in that field (and it will be populated automatically if DCI in question was created by instance discovery) you can form correct DCI name for FindDCIByName.</p>
<p dir="auto">Best regards,<br />
Victor</p>
]]></description><link>https://forum.netxms.org/post/13791</link><guid isPermaLink="true">https://forum.netxms.org/post/13791</guid><dc:creator><![CDATA[victor]]></dc:creator><pubDate>Mon, 05 May 2014 13:37:26 GMT</pubDate></item></channel></rss>