NetXMS Support Forum

English Support => General Support => Topic started by: Marcin on July 08, 2015, 09:20:17 AM

Title: E-mail notificaiton only for new alarms
Post by: Marcin on July 08, 2015, 09:20:17 AM
Hi Victor,

Problem:
Due to technical failure, one of the network devices started sending SNMP traps to NetXMS every couple of seconds with information's about problem.
NetXMS is configured to generate an alarm and one of the actions is to send an e-mail to the group of technicians.
As a result NetXMS generated hundreds of emails during a very short period of time.

Question:
How we can limit number of e-mail send by NetXMS in relation to one alarm?
Could we send email only when new alarm is created and not for subsequent alarms with the same key?

Best regards,
Marcin
Title: Re: E-mail notificaiton only for new alarms
Post by: Victor Kirhenshtein on July 08, 2015, 03:03:52 PM
Hi,

you can use scripting to store timestamp of first event in node's custom attributes, and for each subsequent event chech if it is too close to original one and only pass through if interval between them is sufficiently large.

Best regards,
Victor
Title: Re: E-mail notificaiton only for new alarms
Post by: Marcin on July 08, 2015, 05:19:17 PM

Thank you for a quick answer.

Could we send email only when new alarm is created and not for subsequent alarms with the same key?
I assume it's not possible.

Is there a better way than using a Situation Manager and storing there timestamp of the event:
processing rule: SetEventParameter($event, "eventtimestamp", $event->timestamp);
situation attribute: %<eventtimestamp>
and then comparing for each event stored timestamp by using FindSituation with current timestamp?

"store timestamp of first event in node's custom attributes" - is it the same procedure as I described above?

Best regards,
Marcin