<?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[[Solved] MikroTik templating-problem with voltage an wireless clients DCIs]]></title><description><![CDATA[<p dir="auto">Hello, I'm sorry for asking simple question again.<br />
Ive done MikroTik template(in attachment) with following apply rule:<br />
return $node-&gt;driver  == "MIKROTIK";</p>
<p dir="auto">Almost everything working. But when template was applied on rb without voltage sensor(OID: .1.3.6.1.4.1.14988.1.1.3.8.0) NetXMS generate alarm. Ive tried to use instance discovery in template and script, but Im doing something wrong and cant skip applying this particular DCI for host without sensor.</p>
<p dir="auto">SNMP Out for hosts with and witout sensor:<br />
snmpwalk -v2c -c maincommunity 192.168.x.x .1.3.6.1.4.1.14988.1.1.3.8<br />
iso.3.6.1.4.1.14988.1.1.3.8.0 = INTEGER: 257</p>
<p dir="auto">snmpwalk -v2c -c maincommunity 192.168.x.x .1.3.6.1.4.1.14988.1.1.3.8<br />
iso.3.6.1.4.1.14988.1.1.3.8 = No Such Object available on this agent at this OID</p>
<p dir="auto">I know that isn't NetXMS, but main lack of knowlege about NXSL. I ask that you kindly provide a single example of filter that stops of creating DCI on node without voltage sensor.</p>
<p dir="auto">Second problem is about MT's oid for number of wireless client's conected( .1.3.6.1.4.1.14988.1.1.1.4). When I do MIB walk value is correct, but when I create DCI(in template or direct on host) is always "UNSUPPORTED".</p>
<p dir="auto">Than You in advance.</p>
<hr />
<p dir="auto"><a href="/assets/uploads/files/smf/0000000003372-dcis.csv">dcis.csv</a></p>
]]></description><link>https://forum.netxms.org/topic/4830/solved-mikrotik-templating-problem-with-voltage-an-wireless-clients-dcis</link><generator>RSS for Node</generator><lastBuildDate>Fri, 13 Nov 2026 17:22:56 GMT</lastBuildDate><atom:link href="https://forum.netxms.org/topic/4830.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 09 Dec 2016 09:34:09 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to [Solved] MikroTik templating-problem with voltage an wireless clients DCIs on Thu, 29 Dec 2016 13:22:30 GMT]]></title><description><![CDATA[<p dir="auto">Thak You Sir.<br />
It is working. Before answer Ive resolved problem other way(file without 001 ending i attachments).<br />
Ive attached my MikroTik templates(file with 001 is corrected as Mr Victor suggested to deal with that voltage OID) for everyone.</p>
<p dir="auto">Template's DCI's:<br />
-CPU usage<br />
-MEM Usage<br />
-Voltage<br />
-Count of Wireless Clients<br />
-Speed/Packets of all interfaces(interfaces with "vl" and "br" in names are not included)<br />
-RouterOS and Firmware version<br />
-Board Name<br />
-Ping</p>
<hr />
<p dir="auto"><a href="/assets/uploads/files/smf/0000000003386-netxms-mt-template-back-2016-12-29.xml">netxms-mt-template-back-2016-12-29.xml</a></p>
<p dir="auto"><a href="/assets/uploads/files/smf/0000000003387-netxms-mt-template-back-2016-12-29-001.xml">netxms-mt-template-back-2016-12-29-001.xml</a></p>
]]></description><link>https://forum.netxms.org/post/21568</link><guid isPermaLink="true">https://forum.netxms.org/post/21568</guid><dc:creator><![CDATA[iwannabe.r00t]]></dc:creator><pubDate>Thu, 29 Dec 2016 13:22:30 GMT</pubDate></item><item><title><![CDATA[Reply to [Solved] MikroTik templating-problem with voltage an wireless clients DCIs on Thu, 29 Dec 2016 09:09:34 GMT]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">simplest way is to define instance discovery DCI with SNMP based discovery:</p>
<ol>
<li>use parameter name .1.3.6.1.4.1.14988.1.1.3.8.{instance}</li>
<li>set origin to SNMP</li>
<li>set instance discovery method to "SNMP Walk - OIDs"</li>
<li>set base SNMP OID to .1.3.6.1.4.1.14988.1.1.3.8</li>
<li>leave filter script empty</li>
</ol>
<p dir="auto">Such instance discovery DCI will create single instance .1.3.6.1.4.1.14988.1.1.3.8.0 when it is supported and will not create anything when it is not supported.</p>
<p dir="auto">As for .1.3.6.1.4.1.14988.1.1.1.4 - you should use .1.3.6.1.4.1.14988.1.1.1.4.0 as parameter name (you can see full OID in walk result).</p>
<p dir="auto">Best regards,<br />
Victor</p>
]]></description><link>https://forum.netxms.org/post/21565</link><guid isPermaLink="true">https://forum.netxms.org/post/21565</guid><dc:creator><![CDATA[victor]]></dc:creator><pubDate>Thu, 29 Dec 2016 09:09:34 GMT</pubDate></item><item><title><![CDATA[Reply to [Solved] MikroTik templating-problem with voltage an wireless clients DCIs on Wed, 28 Dec 2016 16:14:39 GMT]]></title><description><![CDATA[<p dir="auto">New post only for refresh purpose.<br />
Ive tried instance discovery with following code:<br />
transport = CreateSNMPTransport($node);<br />
if (transport == null)<br />
{<br />
    return false;<br />
}<br />
 <br />
value = SNMPGetValue(transport, ".1.3.6.1.4.1.14988.1.1.3.8.0");<br />
if (value == null)<br />
{<br />
    return false;<br />
}<br />
else<br />
{<br />
   return true;<br />
}</p>
<p dir="auto">Type : Script<br />
Parameter: .1.3.6.1.4.1.14988.1.1.3.8</p>
<p dir="auto">No results</p>
]]></description><link>https://forum.netxms.org/post/21559</link><guid isPermaLink="true">https://forum.netxms.org/post/21559</guid><dc:creator><![CDATA[iwannabe.r00t]]></dc:creator><pubDate>Wed, 28 Dec 2016 16:14:39 GMT</pubDate></item></channel></rss>