<?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[Мониторинг APC]]></title><description><![CDATA[<p dir="auto">Скажите почему система может не считывать данные с UPS APC, из 15 установленных устройств определилось только одно, с остальных данные не получаются. Так же у них есть разница в SNMP Object ID, у работающего SNMP Object ID=.1.3.6.1.4.1.318.1.3.2.7, а у не рабочих SNMP Object ID=.1.3.6.1.4.1.318.1.3.2.9.</p>
<p dir="auto">И еще вопрос как можно сменить отображение имени ноды в Entire Network, на ip адрес, по умолчанию он показывает SNMP sysName, причем не у всех свитчей, и у меня в списке есть 40 свитчей с названием H3C, так же это доставляет не удобство при поиске по мак адресу, пишет H3C порт такой то?</p>
]]></description><link>https://forum.netxms.org/topic/7251/мониторинг-apc</link><generator>RSS for Node</generator><lastBuildDate>Fri, 13 Nov 2026 09:16:18 GMT</lastBuildDate><atom:link href="https://forum.netxms.org/topic/7251.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 18 Nov 2021 12:17:45 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Мониторинг APC on Sat, 25 Dec 2021 16:42:04 GMT]]></title><description><![CDATA[<p dir="auto">Спасибо, сделал так:</p>
<p dir="auto">transport = $node-&gt;createSNMPTransport();<br />
        if (transport == null)<br />
            {<br />
    			println "Failed to create SNMP transport, exit";<br />
    			return 1;<br />
            }</p>
<p dir="auto">    value = SNMPGetValue(transport, ".1.3.6.1.4.1.318.1.1.1.1.1.2.0");<br />
        if (value == null)<br />
            {<br />
    			println "Failed to issue SNMP GET request";<br />
    			return 2;<br />
            }<br />
            else<br />
            {<br />
    			$node-&gt;setAlias(value);<br />
    			return 0;<br />
            }<br />
И получил то что мне нужно, просто в программировании несилен и просто скопировал строчки из предложенного примера, а $1 оказывается пусто</p>
]]></description><link>https://forum.netxms.org/post/30903</link><guid isPermaLink="true">https://forum.netxms.org/post/30903</guid><dc:creator><![CDATA[comfortal]]></dc:creator><pubDate>Sat, 25 Dec 2021 16:42:04 GMT</pubDate></item><item><title><![CDATA[Reply to Мониторинг APC on Sat, 25 Dec 2021 09:49:44 GMT]]></title><description><![CDATA[<p dir="auto">Для дебага эту строчку можно переписать так:</p>
<p dir="auto">trace(0, "$1: " . $1)<br />
o = FindObject($1);<br />
trace(0, "Found object: " . o-&gt;name);<br />
transport = o-&gt;createSNMPTransport();</p>
<p dir="auto">здесь мы сначала проверим, что в $1 есть название или ID объекта а потом проверим, что FindObject действительно смог найти объект. А $1 вообще откуда в вашем скрипте должне был присвоен? Если это configuration poll, то там выставляются $node и $object и надо так:</p>
<p dir="auto">transport = $node-&gt;createSNMPTransport();</p>
]]></description><link>https://forum.netxms.org/post/30901</link><guid isPermaLink="true">https://forum.netxms.org/post/30901</guid><dc:creator><![CDATA[Filipp Sudanov]]></dc:creator><pubDate>Sat, 25 Dec 2021 09:49:44 GMT</pubDate></item><item><title><![CDATA[Reply to Мониторинг APC on Mon, 20 Dec 2021 13:20:08 GMT]]></title><description><![CDATA[<p dir="auto">Почему то у меня ошибка в строке: transport = FindObject($1)-&gt;createSNMPTransport();</p>
<p dir="auto">Error 14 in line 40: Function or operation argument is not an object</p>
]]></description><link>https://forum.netxms.org/post/30888</link><guid isPermaLink="true">https://forum.netxms.org/post/30888</guid><dc:creator><![CDATA[comfortal]]></dc:creator><pubDate>Mon, 20 Dec 2021 13:20:08 GMT</pubDate></item><item><title><![CDATA[Reply to Мониторинг APC on Fri, 10 Dec 2021 14:45:51 GMT]]></title><description><![CDATA[<p dir="auto">В capabilites кроме младшего бита, который isSNMP могут быть взведены еще какие-то биты. Поэтому лучше проверять накладывая битовую маску бинарным and:</p>
<pre><code>if ($node-&gt;capabilities &amp; 0x00000001)
</code></pre>
<p dir="auto">Пример чтения значения по SNMP есть тут: <a href="https://www.netxms.org/documentation/nxsl-latest/#_read_snmp_value_from_node" rel="nofollow ugc">https://www.netxms.org/documentation/nxsl-latest/#_read_snmp_value_from_node</a></p>
]]></description><link>https://forum.netxms.org/post/30870</link><guid isPermaLink="true">https://forum.netxms.org/post/30870</guid><dc:creator><![CDATA[Filipp Sudanov]]></dc:creator><pubDate>Fri, 10 Dec 2021 14:45:51 GMT</pubDate></item><item><title><![CDATA[Reply to Мониторинг APC on Fri, 10 Dec 2021 12:50:12 GMT]]></title><description><![CDATA[<p dir="auto">Получилось вот так:</p>
<p dir="auto">if (classof($object) == "Node" and capabilities == "0x00000001")<br />
{<br />
  $object-&gt;enableEtherNetIP(false);<br />
  $object-&gt;enableAgent(false);<br />
  $node-&gt;rename($node-&gt;ipAddr);<br />
  $node-&gt;setAlias($node-&gt;snmpSysName);<br />
}<br />
/* Для принтеров Kyocera установить alias из SysLocation */<br />
if (classof($object) == "Node" and $node-&gt;snmpOID == ".1.3.6.1.4.1.1347.41") $node-&gt;setAlias($node-&gt;snmpSysLocation);</p>
<p dir="auto">Появились еще вопросы:</p>
<ol>
<li>Правильно я понял, что указывая capabilities == "0x00000001" скрипт будет выбирать устройства только с SNMP?</li>
<li>Как там же получить значение oid=.1.3.6.1.4.1.318.1.1.1.1.1.2.0 и вставить его в алиас, просто в ИПБ APC у нас не везде используется SysLocation</li>
</ol>
]]></description><link>https://forum.netxms.org/post/30869</link><guid isPermaLink="true">https://forum.netxms.org/post/30869</guid><dc:creator><![CDATA[comfortal]]></dc:creator><pubDate>Fri, 10 Dec 2021 12:50:12 GMT</pubDate></item><item><title><![CDATA[Reply to Мониторинг APC on Thu, 09 Dec 2021 14:14:53 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/filipp-sudanov" aria-label="Profile: filipp-sudanov">@<bdi>filipp-sudanov</bdi></a> said in <a href="/post/30858">Мониторинг APC</a>:</p>
<blockquote>
<p dir="auto">Это тоже можно сделать в configuration poll - вот например для нод с определенным SNMP Object ID:</p>
<pre><code>if (classof($object) == "Node" and $node-&gt;snmpOID == ".1.3.6.1.4.1.14988.1") $node-&gt;rename($node-&gt;ipAddr);
</code></pre>
</blockquote>
<p dir="auto">Спасибо, помогло</p>
]]></description><link>https://forum.netxms.org/post/30866</link><guid isPermaLink="true">https://forum.netxms.org/post/30866</guid><dc:creator><![CDATA[comfortal]]></dc:creator><pubDate>Thu, 09 Dec 2021 14:14:53 GMT</pubDate></item><item><title><![CDATA[Reply to Мониторинг APC on Tue, 07 Dec 2021 15:04:24 GMT]]></title><description><![CDATA[<p dir="auto">Это тоже можно сделать в configuration poll - вот например для нод с определенным SNMP Object ID:</p>
<pre><code>if (classof($object) == "Node" and $node-&gt;snmpOID == ".1.3.6.1.4.1.14988.1") $node-&gt;rename($node-&gt;ipAddr);
</code></pre>
]]></description><link>https://forum.netxms.org/post/30858</link><guid isPermaLink="true">https://forum.netxms.org/post/30858</guid><dc:creator><![CDATA[Filipp Sudanov]]></dc:creator><pubDate>Tue, 07 Dec 2021 15:04:24 GMT</pubDate></item><item><title><![CDATA[Reply to Мониторинг APC on Tue, 07 Dec 2021 12:34:53 GMT]]></title><description><![CDATA[<p dir="auto">Остался еще вопрос по поводу множественного редактирования, как изменить название ноды на IP, если нод с одинаковым именем более 100?</p>
]]></description><link>https://forum.netxms.org/post/30857</link><guid isPermaLink="true">https://forum.netxms.org/post/30857</guid><dc:creator><![CDATA[comfortal]]></dc:creator><pubDate>Tue, 07 Dec 2021 12:34:53 GMT</pubDate></item><item><title><![CDATA[Reply to Мониторинг APC on Mon, 06 Dec 2021 07:52:05 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/filipp-sudanov" aria-label="Profile: filipp-sudanov">@<bdi>filipp-sudanov</bdi></a> said in <a href="/post/30844">Мониторинг APC</a>:</p>
<blockquote>
<p dir="auto">С какой-то из недавних версий configuration poll появился не только на нодах, но еще как минимум на кластерах. Поэтому, если такие объекты в системе есть, то скрипт будет на них тоже запускаться и расстраиваться что там нет каких-то вещей, которые есть на нодах. Попробуйте так:</p>
<pre><code>if (classof($object) == "Node")
{
  $object-&gt;enableEtherNetIP(false);
  $object-&gt;enableAgent(false);
}
</code></pre>
</blockquote>
<p dir="auto">Прописал именно так, ошибки больше нет</p>
]]></description><link>https://forum.netxms.org/post/30849</link><guid isPermaLink="true">https://forum.netxms.org/post/30849</guid><dc:creator><![CDATA[sergey_t]]></dc:creator><pubDate>Mon, 06 Dec 2021 07:52:05 GMT</pubDate></item><item><title><![CDATA[Reply to Мониторинг APC on Fri, 03 Dec 2021 16:18:49 GMT]]></title><description><![CDATA[<p dir="auto">С какой-то из недавних версий configuration poll появился не только на нодах, но еще как минимум на кластерах. Поэтому, если такие объекты в системе есть, то скрипт будет на них тоже запускаться и расстраиваться что там нет каких-то вещей, которые есть на нодах. Попробуйте так:</p>
<pre><code>if (classof($object) == "Node")
{
  $object-&gt;enableEtherNetIP(false);
  $object-&gt;enableAgent(false);
}
</code></pre>
]]></description><link>https://forum.netxms.org/post/30844</link><guid isPermaLink="true">https://forum.netxms.org/post/30844</guid><dc:creator><![CDATA[Filipp Sudanov]]></dc:creator><pubDate>Fri, 03 Dec 2021 16:18:49 GMT</pubDate></item><item><title><![CDATA[Reply to Мониторинг APC on Wed, 01 Dec 2021 10:59:20 GMT]]></title><description><![CDATA[<p dir="auto">не, опять вылезла <img src="https://forum.netxms.org/assets/plugins/nodebb-plugin-emoji/emoji/android/1f61e.png?v=72b86a538fc" class="not-responsive emoji emoji-android emoji--disappointed" style="height:1.4em;width:auto;vertical-align:middle" title=":(" alt="😞" /></p>
]]></description><link>https://forum.netxms.org/post/30840</link><guid isPermaLink="true">https://forum.netxms.org/post/30840</guid><dc:creator><![CDATA[sergey_t]]></dc:creator><pubDate>Wed, 01 Dec 2021 10:59:20 GMT</pubDate></item><item><title><![CDATA[Reply to Мониторинг APC on Wed, 01 Dec 2021 09:08:41 GMT]]></title><description><![CDATA[<p dir="auto">очередной раз, скопировал - вставил, скомпилировал и все, ошибки нет !</p>
]]></description><link>https://forum.netxms.org/post/30839</link><guid isPermaLink="true">https://forum.netxms.org/post/30839</guid><dc:creator><![CDATA[sergey_t]]></dc:creator><pubDate>Wed, 01 Dec 2021 09:08:41 GMT</pubDate></item><item><title><![CDATA[Reply to Мониторинг APC on Wed, 01 Dec 2021 07:18:39 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sergey_t" aria-label="Profile: sergey_t">@<bdi>sergey_t</bdi></a> said in <a href="/post/30835">Мониторинг APC</a>:</p>
<blockquote>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sergey_t" aria-label="Profile: sergey_t">@<bdi>sergey_t</bdi></a> said in <a href="/post/30818">Мониторинг APC</a>:</p>
<blockquote>
<p dir="auto">ошибку выдает <img src="https://forum.netxms.org/assets/plugins/nodebb-plugin-emoji/emoji/android/1f61e.png?v=72b86a538fc" class="not-responsive emoji emoji-android emoji--disappointed" style="height:1.4em;width:auto;vertical-align:middle" title=":(" alt="😞" /><br />
посмотрите пож повнимательнее</p>
</blockquote>
<p dir="auto">добавляю в скрипт указанные строки, скрипт компилируется и в логах вижу ошибку:<br />
"Script (Hook::ConfigurationPoll) execution error: Error 30 in line 8: Unknown object's method"</p>
<p dir="auto">8 строка это именно первая строка скрипта</p>
</blockquote>
<p dir="auto">Вот <a href="https://prnt.sc/217j1mu" rel="nofollow ugc">https://prnt.sc/217j1mu</a> скрин скрипта, у меня работает, название объектов брал отсюда <a href="https://www.netxms.org/documentation/nxsl-latest/#class-netobj" rel="nofollow ugc">https://www.netxms.org/documentation/nxsl-latest/#class-netobj</a></p>
]]></description><link>https://forum.netxms.org/post/30838</link><guid isPermaLink="true">https://forum.netxms.org/post/30838</guid><dc:creator><![CDATA[comfortal]]></dc:creator><pubDate>Wed, 01 Dec 2021 07:18:39 GMT</pubDate></item><item><title><![CDATA[Reply to Мониторинг APC on Wed, 01 Dec 2021 06:32:52 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sergey_t" aria-label="Profile: sergey_t">@<bdi>sergey_t</bdi></a> said in <a href="/post/30818">Мониторинг APC</a>:</p>
<blockquote>
<p dir="auto">ошибку выдает <img src="https://forum.netxms.org/assets/plugins/nodebb-plugin-emoji/emoji/android/1f61e.png?v=72b86a538fc" class="not-responsive emoji emoji-android emoji--disappointed" style="height:1.4em;width:auto;vertical-align:middle" title=":(" alt="😞" /><br />
посмотрите пож повнимательнее</p>
</blockquote>
<p dir="auto">добавляю в скрипт указанные строки, скрипт компилируется и в логах вижу ошибку:<br />
"Script (Hook::ConfigurationPoll) execution error: Error 30 in line 8: Unknown object's method"</p>
<p dir="auto">8 строка это именно первая строка скрипта</p>
]]></description><link>https://forum.netxms.org/post/30835</link><guid isPermaLink="true">https://forum.netxms.org/post/30835</guid><dc:creator><![CDATA[sergey_t]]></dc:creator><pubDate>Wed, 01 Dec 2021 06:32:52 GMT</pubDate></item><item><title><![CDATA[Reply to Мониторинг APC on Tue, 30 Nov 2021 14:57:39 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sergey_t" aria-label="Profile: sergey_t">@<bdi>sergey_t</bdi></a> said in <a href="/post/30818">Мониторинг APC</a>:</p>
<blockquote>
<p dir="auto">ошибку выдает <img src="https://forum.netxms.org/assets/plugins/nodebb-plugin-emoji/emoji/android/1f61e.png?v=72b86a538fc" class="not-responsive emoji emoji-android emoji--disappointed" style="height:1.4em;width:auto;vertical-align:middle" title=":(" alt="😞" /><br />
посмотрите пож повнимательнее</p>
</blockquote>
<p dir="auto">Ошибку где и какую?</p>
]]></description><link>https://forum.netxms.org/post/30828</link><guid isPermaLink="true">https://forum.netxms.org/post/30828</guid><dc:creator><![CDATA[comfortal]]></dc:creator><pubDate>Tue, 30 Nov 2021 14:57:39 GMT</pubDate></item><item><title><![CDATA[Reply to Мониторинг APC on Tue, 30 Nov 2021 14:16:56 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/comfortal" aria-label="Profile: comfortal">@<bdi>comfortal</bdi></a> said in <a href="/post/30783">Мониторинг APC</a>:</p>
<blockquote>
<p dir="auto">И еще вопрос как можно сменить отображение имени ноды в Entire Network, на ip адрес, по умолчанию он показывает SNMP sysName, причем не у всех свитчей, и у меня в списке есть 40 свитчей с названием H3C, так же это доставляет не удобство при поиске по мак адресу, пишет H3C порт такой то?</p>
</blockquote>
<p dir="auto">Присоединяюсь, вопрос актуальный.</p>
]]></description><link>https://forum.netxms.org/post/30827</link><guid isPermaLink="true">https://forum.netxms.org/post/30827</guid><dc:creator><![CDATA[МшлМшл]]></dc:creator><pubDate>Tue, 30 Nov 2021 14:16:56 GMT</pubDate></item><item><title><![CDATA[Reply to Мониторинг APC on Tue, 30 Nov 2021 14:03:23 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sergey_t" aria-label="Profile: sergey_t">@<bdi>sergey_t</bdi></a> said in <a href="/post/30818">Мониторинг APC</a>:</p>
<blockquote>
<p dir="auto">ошибку выдает <img src="https://forum.netxms.org/assets/plugins/nodebb-plugin-emoji/emoji/android/1f61e.png?v=72b86a538fc" class="not-responsive emoji emoji-android emoji--disappointed" style="height:1.4em;width:auto;vertical-align:middle" title=":(" alt="😞" /><br />
посмотрите пож повнимательнее</p>
</blockquote>
<p dir="auto">У меня нормально скомпилировался скрипт.</p>
]]></description><link>https://forum.netxms.org/post/30826</link><guid isPermaLink="true">https://forum.netxms.org/post/30826</guid><dc:creator><![CDATA[МшлМшл]]></dc:creator><pubDate>Tue, 30 Nov 2021 14:03:23 GMT</pubDate></item><item><title><![CDATA[Reply to Мониторинг APC on Mon, 29 Nov 2021 08:39:06 GMT]]></title><description><![CDATA[<p dir="auto">ошибку выдает <img src="https://forum.netxms.org/assets/plugins/nodebb-plugin-emoji/emoji/android/1f61e.png?v=72b86a538fc" class="not-responsive emoji emoji-android emoji--disappointed" style="height:1.4em;width:auto;vertical-align:middle" title=":(" alt="😞" /><br />
посмотрите пож повнимательнее</p>
]]></description><link>https://forum.netxms.org/post/30818</link><guid isPermaLink="true">https://forum.netxms.org/post/30818</guid><dc:creator><![CDATA[sergey_t]]></dc:creator><pubDate>Mon, 29 Nov 2021 08:39:06 GMT</pubDate></item><item><title><![CDATA[Reply to Мониторинг APC on Fri, 26 Nov 2021 12:15:31 GMT]]></title><description><![CDATA[<p dir="auto">Разобрался с APC, в исправил автоматические применяемые правила, добавил в поиск по snmpOID строчку, "|| ( $node-&gt;snmpOID == ".1.3.6.1.4.1.318.1.3.2.9" )", шаблон применился к проблемным UPS.</p>
<p dir="auto">Остался вопрос по множественному редактированию параметров, как все-таки изменить "Имя объекта" на IP?</p>
<p dir="auto">Может кому понадобиться, для массового отключения опроса по NetXMS agent и EtherNet/IP нужно, в скрипт Hook::ConfigurationPoll, из Библиотеки скриптов, вставить строчки:<br />
$object-&gt;enableEtherNetIP(false);<br />
$object-&gt;enableAgent(false);</p>
]]></description><link>https://forum.netxms.org/post/30807</link><guid isPermaLink="true">https://forum.netxms.org/post/30807</guid><dc:creator><![CDATA[comfortal]]></dc:creator><pubDate>Fri, 26 Nov 2021 12:15:31 GMT</pubDate></item></channel></rss>