NetXMS Support Forum

English Support => General Support => Topic started by: lroytman on June 20, 2014, 12:17:41 AM

Title: Different notifications for the same event, importance based
Post by: lroytman on June 20, 2014, 12:17:41 AM
Hi,

I'd like to have different notification levels for same events. For example, for "NODE DOWN", SMS should be send for the router node, direct email to system administrators should be sent for a critical server node, email to our ticketing system for a not-so-important server node. The same for other events. Can it be done by NXSL action script? I am quite sure it is not a problem to get information about the event source, but I cannot find any way to fire an action from the script (to send email, for example)... Is it possible?

Thank you,
Leo
Title: Re: Different notifications for the same event, importance based
Post by: lroytman on June 20, 2014, 06:25:01 AM
OK, I think I figured it out. There is no direct way to start Action, we have to use PostEvent. Correct?
Title: Re: Different notifications for the same event, importance based
Post by: Victor Kirhenshtein on June 20, 2014, 09:59:17 PM
From your description it seems that it's enough to create multiple rules for same event, but with different sources. No script is required in that case. And even if you need more complex filtering, you can implement it as filtering script for the rule.

Best regards,
Victor