Different notifications for the same event, importance based

Started by lroytman, June 20, 2014, 12:17:41 AM

Previous topic - Next topic

lroytman

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

lroytman

OK, I think I figured it out. There is no direct way to start Action, we have to use PostEvent. Correct?

Victor Kirhenshtein

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