<?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[Как создать параметр на основе другого параметра]]></title><description><![CDATA[<p dir="auto">По SNMP получил и дорасчитал текущую скорость интерфейса на свиче. Но хочу также увидеть эту загрузку в процентах. При этом запрашивать еще раз скорость интерфейса с устройства не хочу, чтобы не нагружать само устройство. Как на основе уже полученных данных получить загрузку интерфейса и в килобитах/мегабитах, и в процентах?</p>
]]></description><link>https://forum.netxms.org/topic/3645/как-создать-параметр-на-основе-другого-параметра</link><generator>RSS for Node</generator><lastBuildDate>Fri, 13 Nov 2026 14:59:47 GMT</lastBuildDate><atom:link href="https://forum.netxms.org/topic/3645.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 19 Mar 2015 10:03:13 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Как создать параметр на основе другого параметра on Mon, 23 Mar 2015 09:03:07 GMT]]></title><description><![CDATA[<p dir="auto"><div class="card col-md-9 col-lg-6 position-relative link-preview p-0">



<a href="https://netxms.org/404" title="Page not found — NetXMS">
<img src="https://netxms.org/og-image.png" class="card-img-top not-responsive" style="max-height: 15rem;" alt="Link Preview Image" onerror="this.parentElement.remove()" />
</a>



<div class="card-body">
<h5 class="card-title">
<a class="text-decoration-none" href="https://netxms.org/404">
Page not found — NetXMS
</a>
</h5>
<p class="card-text line-clamp-3">The page you were looking for does not exist.</p>
</div>
<a href="https://netxms.org/404" class="card-footer text-body-secondary small d-flex gap-2 align-items-center lh-2">



<img src="https://netxms.org/favicon.svg" alt="favicon" class="not-responsive overflow-hiddden" style="max-width: 21px; max-height: 21px;" onerror="this.remove()"/>



<p class="d-inline-block text-truncate mb-0">NetXMS <span class="text-secondary">(www.netxms.org)</span></p>
</a>
</div></p>
<p dir="auto">Попробуйте так:<br />
s = &quot;DCI_Description&quot;;<br />
my_var = GetDCIValueByDescription($node, s);</p>
]]></description><link>https://forum.netxms.org/post/16195</link><guid isPermaLink="true">https://forum.netxms.org/post/16195</guid><dc:creator><![CDATA[zev]]></dc:creator><pubDate>Mon, 23 Mar 2015 09:03:07 GMT</pubDate></item><item><title><![CDATA[Reply to Как создать параметр на основе другого параметра on Fri, 20 Mar 2015 08:00:34 GMT]]></title><description><![CDATA[<p dir="auto">Возник вопрос. Вот такая строка в скрипте работает:<br />
my_var = GetDCIValueByDescription($node, "DCI_Description");</p>
<p dir="auto">Но если написать вот так:<br />
sting s = "DCI_Description";<br />
my_var = GetDCIValueByDescription($node, s);<br />
то не работает. Можно ли передать в функцию переменную? Если можно, то как это реализовать?</p>
]]></description><link>https://forum.netxms.org/post/16162</link><guid isPermaLink="true">https://forum.netxms.org/post/16162</guid><dc:creator><![CDATA[bobersl]]></dc:creator><pubDate>Fri, 20 Mar 2015 08:00:34 GMT</pubDate></item><item><title><![CDATA[Reply to Как создать параметр на основе другого параметра on Thu, 19 Mar 2015 11:40:39 GMT]]></title><description><![CDATA[<p dir="auto">Спасибо. Все получилось.</p>
]]></description><link>https://forum.netxms.org/post/16154</link><guid isPermaLink="true">https://forum.netxms.org/post/16154</guid><dc:creator><![CDATA[bobersl]]></dc:creator><pubDate>Thu, 19 Mar 2015 11:40:39 GMT</pubDate></item><item><title><![CDATA[Reply to Как создать параметр на основе другого параметра on Thu, 19 Mar 2015 10:59:34 GMT]]></title><description><![CDATA[<p dir="auto">Как то так:<br />
my_var = GetDCIValueByDescription($node, "DCI_Description");</p>
]]></description><link>https://forum.netxms.org/post/16152</link><guid isPermaLink="true">https://forum.netxms.org/post/16152</guid><dc:creator><![CDATA[kozlov_ao]]></dc:creator><pubDate>Thu, 19 Mar 2015 10:59:34 GMT</pubDate></item><item><title><![CDATA[Reply to Как создать параметр на основе другого параметра on Thu, 19 Mar 2015 10:57:33 GMT]]></title><description><![CDATA[<p dir="auto">Это делаеться через скрипт.</p>
<p dir="auto">Вот полезные функции для этого:<br />
<a href="https://wiki.netxms.org/wiki/NXSL:GetDCIObject" rel="nofollow ugc">https://wiki.netxms.org/wiki/NXSL:GetDCIObject</a><br />
<a href="https://wiki.netxms.org/wiki/NXSL:GetDCIValue" rel="nofollow ugc">https://wiki.netxms.org/wiki/NXSL:GetDCIValue</a></p>
<p dir="auto">Сделать Internal dummy DCI со скриптом:</p>
<p dir="auto">maxSpeed = n<br />
return GetDCIValue($node, FindDCIByName($node, "current speed")) / maxSpeed</p>
]]></description><link>https://forum.netxms.org/post/16151</link><guid isPermaLink="true">https://forum.netxms.org/post/16151</guid><dc:creator><![CDATA[zev]]></dc:creator><pubDate>Thu, 19 Mar 2015 10:57:33 GMT</pubDate></item><item><title><![CDATA[Reply to Как создать параметр на основе другого параметра on Thu, 19 Mar 2015 10:36:59 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/kozlov_ao" aria-label="Profile: kozlov_ao">@<bdi>kozlov_ao</bdi></a> said in <a href="/post/16149">Как создать параметр на основе другого параметра</a>:</p>
<blockquote>
<p dir="auto">Создать отдельную метрику, которая будет получать значение скорости, раз в сутки например, и потом использовать ее значение как опорное, в других метриках...</p>
</blockquote>
<p dir="auto">Пока так и не понял, как использовать данные из одной метрики в другой. Можно поподробней?</p>
]]></description><link>https://forum.netxms.org/post/16150</link><guid isPermaLink="true">https://forum.netxms.org/post/16150</guid><dc:creator><![CDATA[bobersl]]></dc:creator><pubDate>Thu, 19 Mar 2015 10:36:59 GMT</pubDate></item><item><title><![CDATA[Reply to Как создать параметр на основе другого параметра on Thu, 19 Mar 2015 10:25:09 GMT]]></title><description><![CDATA[<p dir="auto">Создать отдельную метрику, которая будет получать значение скорости, раз в сутки например, и потом использовать ее значение как опорное, в других метриках...</p>
]]></description><link>https://forum.netxms.org/post/16149</link><guid isPermaLink="true">https://forum.netxms.org/post/16149</guid><dc:creator><![CDATA[kozlov_ao]]></dc:creator><pubDate>Thu, 19 Mar 2015 10:25:09 GMT</pubDate></item></channel></rss>