<?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[Proposed solution to avoid receiving tons of e-mail from a "crazy" node]]></title><description><![CDATA[<p dir="auto">Hello!</p>
<p dir="auto">I'm using LOGWATCH subagent to monitor events from Windows event log. In many occasions happened that a node got crazy and I received 20K+ mails informing about a repetitive event happened every second (especially during the night).<br />
Since NetXMS doesn't provide an "in-house" mechanism to prevent this, thanks to Victor's suggestions, I found the following solutions that I'm reporting here to simplify life of users that had similar problems.</p>
<p dir="auto">Basic concepts is this:</p>
<ul>
<li>Setup a counter to increase every time I receive an event I'm interested in</li>
<li>Send standard email if the counter is below specific threshold</li>
<li>Send warning email when the counter is equal to specific threshold</li>
<li>Stop sending email when counter is above threshold without losing the received events</li>
<li>Reset the counter after a specific time frame since the first event</li>
</ul>
<p dir="auto">Example, threshold 50, time frame 1h. This means that the system will send up to 50 emails in 1 hour, then after the 50th events (whithin 1 hour) will send an e-mail informing about the storm and will store events in the system without sending more emails. After 1 hour since the first event the counter will be reset (through a scheduled task)) and NetXMS will start again sending email for new events of that type.</p>
<p dir="auto">Here attached you can find my sample scripts to use as base for further developments. Scripts are partially parametrized, feel free to extend and post here improvements <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>
<ul>
<li>AlarmCounterTools: script for checking threshold of counter, increase counters and other support tools</li>
<li>ResetAlarmCounter: script for scheduled task to reset the counter after specified time frame (I don't know ho to pass parameter "eventCount" and use directly function from AlarmCounterTools)</li>
<li>IncreaseAlarmCounter: script to increase the counter (I don't know ho to pass parameter "eventCount" and use directly function from AlarmCounterTools)</li>
<li>Scheduled task sample</li>
<li>EPP sample (3 rules)</li>
</ul>
<hr />
<p dir="auto"><a href="/assets/uploads/files/smf/0000000003630-AlarmCounterTools.txt">AlarmCounterTools.txt</a></p>
<p dir="auto"><a href="/assets/uploads/files/smf/0000000003631-ResetAlarmCounter.txt">ResetAlarmCounter.txt</a></p>
<p dir="auto"><a href="/assets/uploads/files/smf/0000000003632-IncreaseAlarmCounter.txt">IncreaseAlarmCounter.txt</a></p>
<p dir="auto"><img src="/assets/uploads/files/smf/0000000003633-ScheduledTask.PNG" alt="ScheduledTask.PNG" class="img-markdown  img-fluid" width="1343" height="532" /></p>
<p dir="auto"><img src="/assets/uploads/files/smf/0000000003635-EPP.PNG" alt="EPP.PNG" class="img-markdown  img-fluid" width="1581" height="747" /></p>
]]></description><link>https://forum.netxms.org/topic/5180/proposed-solution-to-avoid-receiving-tons-of-e-mail-from-a-crazy-node</link><generator>RSS for Node</generator><lastBuildDate>Fri, 13 Nov 2026 06:38:59 GMT</lastBuildDate><atom:link href="https://forum.netxms.org/topic/5180.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 25 Jul 2017 07:43:20 GMT</pubDate><ttl>60</ttl></channel></rss>