<?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[Duplicate SNMP traps causing multiple emails]]></title><description><![CDATA[<p dir="auto">I have an Aruba wireless controller which sends traps when an access point goes down, unfortunately it sends 4 of the same trap (which I've verified by sniffing the traffic).  Since one of the actions in my Event Policy is to send an email, I get 4 of the same email when this occurrs.  The Alarm Browser window shows a count of 4, so I know my Alarm Key is okay.  Is there a way to limit the number of emails to 1?  Would I need to use situations?  Is the Alarm Count available via a NXSL script for use in an Event Filtering script?</p>
<p dir="auto">Thanks!</p>
]]></description><link>https://forum.netxms.org/topic/1829/duplicate-snmp-traps-causing-multiple-emails</link><generator>RSS for Node</generator><lastBuildDate>Fri, 13 Nov 2026 14:50:17 GMT</lastBuildDate><atom:link href="https://forum.netxms.org/topic/1829.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 20 Jul 2012 16:41:24 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Duplicate SNMP traps causing multiple emails on Thu, 26 Jul 2012 19:30:45 GMT]]></title><description><![CDATA[<p dir="auto">You can access trap-originated event's parameters in script, but only by index, like this:</p>
<p dir="auto">$event-&gt;parameters[2]</p>
<p dir="auto">Best regards,<br />
Victor</p>
]]></description><link>https://forum.netxms.org/post/7997</link><guid isPermaLink="true">https://forum.netxms.org/post/7997</guid><dc:creator><![CDATA[victor]]></dc:creator><pubDate>Thu, 26 Jul 2012 19:30:45 GMT</pubDate></item><item><title><![CDATA[Reply to Duplicate SNMP traps causing multiple emails on Thu, 26 Jul 2012 13:22:58 GMT]]></title><description><![CDATA[<p dir="auto">That worked perfectly!  Thanks!  Now, one more question:</p>
<p dir="auto">Is it possible to access the parameters in the SNMP traps via the $event object?  For example, the AP name is passed as parameter 2, which I've configured as "apLocation" in the Description field in the Trap Parameter Mapping dialog box.  Is it possible to get the value via something like $event-&gt;apLocation or GetEventParameter($event,"apLocation")?</p>
<p dir="auto">BTW: I'm migrating from OpenNMS and I love the power and flexibility of NetXMS while at the same time being easy to configure!</p>
]]></description><link>https://forum.netxms.org/post/7989</link><guid isPermaLink="true">https://forum.netxms.org/post/7989</guid><dc:creator><![CDATA[GTM]]></dc:creator><pubDate>Thu, 26 Jul 2012 13:22:58 GMT</pubDate></item><item><title><![CDATA[Reply to Duplicate SNMP traps causing multiple emails on Tue, 24 Jul 2012 20:24:27 GMT]]></title><description><![CDATA[<p dir="auto">You should have AP name as an instance. You can create some attribute, like isDown, and set it to true on down trap and to false on up trap. Then in filtering script for down trap you can check if this attribute already set to true, and then ignore the event. And yes, you can use %2 and other macros as instance and/or attribute value.</p>
<p dir="auto">Best regards,<br />
Victor</p>
]]></description><link>https://forum.netxms.org/post/7944</link><guid isPermaLink="true">https://forum.netxms.org/post/7944</guid><dc:creator><![CDATA[victor]]></dc:creator><pubDate>Tue, 24 Jul 2012 20:24:27 GMT</pubDate></item><item><title><![CDATA[Reply to Duplicate SNMP traps causing multiple emails on Tue, 24 Jul 2012 14:32:46 GMT]]></title><description><![CDATA[<p dir="auto">Thanks for the reply, but I have a couple more questions:</p>
<p dir="auto">The AP name is sent in parameter 2, which I successfully decode, parse and include in my notification emails.  How do I go about creating the Situation?  I thought about having a situation called "APStatusTraps", but would the AP name be an instance or an attribute of the situation?  Can I use %2 as the macro in the creation of the instance/attribute?</p>
]]></description><link>https://forum.netxms.org/post/7937</link><guid isPermaLink="true">https://forum.netxms.org/post/7937</guid><dc:creator><![CDATA[GTM]]></dc:creator><pubDate>Tue, 24 Jul 2012 14:32:46 GMT</pubDate></item><item><title><![CDATA[Reply to Duplicate SNMP traps causing multiple emails on Fri, 20 Jul 2012 20:52:24 GMT]]></title><description><![CDATA[<p dir="auto">Hi!</p>
<p dir="auto">Yes, you should use situations for preventing duplicate emails. Depending on if you have paired event for access point coming up, you can either set situation's attribute to true when you process first down trap, ignore all other down traps if it's set, and clear it on access port up trap, or you can store current time in situation's attribute, and ignore all next events withing some short time interval.</p>
<p dir="auto">Best regards,<br />
Victor</p>
]]></description><link>https://forum.netxms.org/post/7915</link><guid isPermaLink="true">https://forum.netxms.org/post/7915</guid><dc:creator><![CDATA[victor]]></dc:creator><pubDate>Fri, 20 Jul 2012 20:52:24 GMT</pubDate></item></channel></rss>