<?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[SNMP trap configuration]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">I would like to configure an SNMP trap processing in NetXMS system. The raw trap content received by NetXMS system please see below:</p>
<p dir="auto"><em>2014.04.18 21:26:36	172.20.31.6	NetXMSObjectName	.1.3.6.1.4.1.23986.1.4.1	.1.3.6.1.4.1.23986.2.1.1.0 == 'DeviceName'; .1.3.6.1.4.1.23986.1.2.3.1.9.200083 == '1'; .1.3.6.1.4.1.23986.1.3.4.1.1.2368 == '200083'; .1.3.6.1.4.1.23986.1.3.4.1.2.2368 == '2368'; .1.3.6.1.4.1.23986.1.3.4.1.3.2368 == 'Signal Level 1'; .1.3.6.1.4.1.23986.1.3.4.1.5.2368 == '2014-04-18T19:26:35'; .1.3.6.1.4.1.23986.1.3.4.1.6.2368 == '3'; .1.3.6.1.4.1.23986.1.3.4.1.8.2368 == 'ALARM on Channel [1] : Signal Level 1  [OFF]'</em></p>
<p dir="auto">The source device what generates the above trap event uses a common OID (.1.3.6.1.4.1.23986.1.4.1) for Begin of Alarm event notification and for End of Alarm event notification as well.</p>
<p dir="auto">The Status of Alarm Event (begin[2] or end[1]) is coded in the 1.3.6.1.4.1.23986.1.2.3.1.9.200083 varbind.</p>
<p dir="auto">The severity of Alarm event (info[1], warning[2], critical[3]) is coded in the .1.3.6.1.4.1.23986.1.3.4.1.6.2368 varbind.</p>
<p dir="auto">My question is: Is it possible to configure a such event processing in NetXMS system what works as the follows?</p>
<p dir="auto">When arrives a trap message with Begin of Alarm status content then it generates an NetXMS Alert Event with severity decoded from trap varbind.</p>
<p dir="auto">When arrives a trap message with End of Alarm status content then it results the automatic NetXMS Alert Event termination.</p>
<p dir="auto">Thank you in advance and best regards,<br />
cserzs</p>
]]></description><link>https://forum.netxms.org/topic/3100/snmp-trap-configuration</link><generator>RSS for Node</generator><lastBuildDate>Fri, 13 Nov 2026 16:17:12 GMT</lastBuildDate><atom:link href="https://forum.netxms.org/topic/3100.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 18 Apr 2014 21:53:18 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to SNMP trap configuration on Sat, 19 Apr 2014 20:50:36 GMT]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">Thank you very much for your very detailed support. It works perfect.  <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">Regards,<br />
cserzs</p>
]]></description><link>https://forum.netxms.org/post/13661</link><guid isPermaLink="true">https://forum.netxms.org/post/13661</guid><dc:creator><![CDATA[cserzs]]></dc:creator><pubDate>Sat, 19 Apr 2014 20:50:36 GMT</pubDate></item><item><title><![CDATA[Reply to SNMP trap configuration on Sat, 19 Apr 2014 05:40:24 GMT]]></title><description><![CDATA[<p dir="auto">Hi!</p>
<p dir="auto">I would suggest the following scheme:</p>
<p dir="auto">Create events (of course you can name them any way you want):</p>
<p dir="auto">TRAP_RAW (normal severity)<br />
TRAP_INFO (normal severity)<br />
TRAP_WARNING (warning severity)<br />
TRAP_CRITICAL (critical severity)<br />
TRAP_CLOSE (normal severity)</p>
<p dir="auto">Create SNMP trap mapping for trap .1.3.6.1.4.1.23986.1.4.1 with the following varbind mapping:<br />
#2 - .1.3.6.1.4.1.23986.1.2.3.1.9.200083<br />
#3 - .1.3.6.1.4.1.23986.1.3.4.1.6.2368<br />
#4 - .1.3.6.1.4.1.23986.1.3.4.1.8.2368  (this is needed if you want to pass message as parameter to event)</p>
<p dir="auto">Create server action that will call the following NXSL script from library:</p>
<pre><code>if ($event-&gt;parameters[2] == 2)
{
   switch($event-&gt;parameters[3])
   {
      case 3:
         evt = "TRAP_CRITICAL";
         break;
      case 2:
         evt = "TRAP_WARNING";
         break;
      default:
         evt = "TRAP_INFO";
         break;
   }
   PostEvent($node, evt, null, $event-&gt;parameters[4]);  // pass message as first parameter to generated event
}
else
{
   PostEvent($node, "TRAP_CLOSE");
}
</code></pre>
<p dir="auto">Then create the following rules in event processing policy:</p>
<ol>
<li></li>
</ol>
<p dir="auto">event is TRAP_RAW</p>
<p dir="auto">action: call script and stop processing</p>
<ol start="2">
<li></li>
</ol>
<p dir="auto">event is TRAP_INFO, TRAP_WARNING, or TRAP_CRITICAL</p>
<p dir="auto">action: create alarm with some key</p>
<ol start="3">
<li></li>
</ol>
<p dir="auto">event is TRAP_CLOSE</p>
<p dir="auto">action: terminate alarm with key used in rule #2</p>
<p dir="auto">Please note that message extracted from trap will be available as %1 in message template for generated events and alarms.</p>
<p dir="auto">Best regards,<br />
Victor</p>
]]></description><link>https://forum.netxms.org/post/13657</link><guid isPermaLink="true">https://forum.netxms.org/post/13657</guid><dc:creator><![CDATA[victor]]></dc:creator><pubDate>Sat, 19 Apr 2014 05:40:24 GMT</pubDate></item></channel></rss>