<?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[smart мониторинг]]></title><description><![CDATA[<p dir="auto">Не очень понимаю как мониторить параметры смарт<br />
есть physicalDisk.SmartAttr() что в параметрах ставить не совсем ясно. ставил ID параметра, но данные не получаются</p>
]]></description><link>https://forum.netxms.org/topic/1045/smart-мониторинг</link><generator>RSS for Node</generator><lastBuildDate>Fri, 13 Nov 2026 07:30:05 GMT</lastBuildDate><atom:link href="https://forum.netxms.org/topic/1045.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 24 Nov 2010 15:14:47 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to smart мониторинг on Tue, 30 Nov 2010 12:43:01 GMT]]></title><description><![CDATA[<p dir="auto">Операторы -=, +=, и т.д. появились в версии 1.0.5. Если версия старее, то ошибка - это нормально, а вот если 1.0.5 или выше - тогда странно.</p>
]]></description><link>https://forum.netxms.org/post/4776</link><guid isPermaLink="true">https://forum.netxms.org/post/4776</guid><dc:creator><![CDATA[victor]]></dc:creator><pubDate>Tue, 30 Nov 2010 12:43:01 GMT</pubDate></item><item><title><![CDATA[Reply to smart мониторинг on Tue, 30 Nov 2010 12:37:56 GMT]]></title><description><![CDATA[<p dir="auto">Да и  кстати почему-то на i-=2 ругается, пришлось написать i=i-2</p>
]]></description><link>https://forum.netxms.org/post/4775</link><guid isPermaLink="true">https://forum.netxms.org/post/4775</guid><dc:creator><![CDATA[greysd]]></dc:creator><pubDate>Tue, 30 Nov 2010 12:37:56 GMT</pubDate></item><item><title><![CDATA[Reply to smart мониторинг on Fri, 26 Nov 2010 10:57:50 GMT]]></title><description><![CDATA[<p dir="auto">Da, tam tol'ko kosvennoe upominanie (str. 45):</p>
<p dir="auto">It is possible to manually convert variable to a certain type, using a special function, named<br />
depending on the variable type. For example, string(4). That way it is also possible to convert<br />
NULL type variables. Therefore, to avoid runtime exceptions while processing NULL type variables,<br />
it is advised to use manual conversion.</p>
<p dir="auto">Imelos' vvidu, chto est' funkcii s imenami, sootvetstvujuschimi tipam: int32, int64, string, etc. dlja javnoj konvertacii. Ja dobavlju ih opisanija v javnom vide.</p>
]]></description><link>https://forum.netxms.org/post/4752</link><guid isPermaLink="true">https://forum.netxms.org/post/4752</guid><dc:creator><![CDATA[victor]]></dc:creator><pubDate>Fri, 26 Nov 2010 10:57:50 GMT</pubDate></item><item><title><![CDATA[Reply to smart мониторинг on Fri, 26 Nov 2010 07:38:47 GMT]]></title><description><![CDATA[<p dir="auto">Кстати, в юзермануале нет упоминания о функции int64().</p>
]]></description><link>https://forum.netxms.org/post/4749</link><guid isPermaLink="true">https://forum.netxms.org/post/4749</guid><dc:creator><![CDATA[Ethril]]></dc:creator><pubDate>Fri, 26 Nov 2010 07:38:47 GMT</pubDate></item><item><title><![CDATA[Reply to smart мониторинг on Thu, 25 Nov 2010 10:04:09 GMT]]></title><description><![CDATA[<p dir="auto">Mozno napisat' transformation script, naprimer takoj:</p>
<pre><code>sub convert_smart_value(value)
{
	if (length(value) != 12)
		return 0;

	i = 11;
	rvalue = "";
	while(i &gt; 0)
	{
		rvalue = rvalue . substr(value, i, 2);
		i -= 2;
	}
	return int64("0x" . rvalue);
}

sub main()
{
   return convert_smart_value($1);
}
</code></pre>
<p dir="auto">Esli convertacija nuzna v neskol'kih DCI, to funkciju convert_smart_value mozno vinesti v script library.</p>
<p dir="auto">Best regards,<br />
Victor</p>
]]></description><link>https://forum.netxms.org/post/4744</link><guid isPermaLink="true">https://forum.netxms.org/post/4744</guid><dc:creator><![CDATA[victor]]></dc:creator><pubDate>Thu, 25 Nov 2010 10:04:09 GMT</pubDate></item><item><title><![CDATA[Reply to smart мониторинг on Thu, 25 Nov 2010 08:37:45 GMT]]></title><description><![CDATA[<p dir="auto">Вроде разобрался<br />
надо описывать так PhysicalDisk.SmartAttr(0,1) где 0 это номер диска, 1 это ID параметра смарт в данном случае Raw Read Error Rate.<br />
но есть нюанс, результат выдается типом стринг в виде 6-ти двухбайтовых слов причем  первое слово это наименее значащие цифры<br />
То есть, результат например 24001С290000, то его надо перевернуть группируя по два символа. получается 0000291С0024, а потом переводить в десятичное число - получается 689700900 и это уже искомый рещультат. Можно ли сделать так чтобы он автоматически получал нужное число?</p>
]]></description><link>https://forum.netxms.org/post/4743</link><guid isPermaLink="true">https://forum.netxms.org/post/4743</guid><dc:creator><![CDATA[greysd]]></dc:creator><pubDate>Thu, 25 Nov 2010 08:37:45 GMT</pubDate></item></channel></rss>