Welcome to Questions - Ask OpenNMS, where you can ask questions and receive answers from other members of the community.

How to bind the same notification against multiple events?

+2 votes
165 views
I have events like this:

uei.opennms.org/custom/event1

uei.opennms.org/custom/event2

uei.opennms.org/custom/event3

 

Alle events need the same notification. But I won't create 3 identical notifications. How can I solve this?
OpenNMS version
asked Oct 14, 2013 by mfuhrmann (7,350 points)
edited Oct 14, 2013 by mfuhrmann

1 Answer

+2 votes
 
Best answer
You can use the tilde sign to active regex filtering.

eg.

 

<uei>~uei.opennms.org/custom/event.*</uei>

<uei>~uei.opennms.org/custom/event[0-9]+</uei>

<uei>~uei.opennms.org/custom/event\d+</uei>
answered Oct 14, 2013 by mfuhrmann (7,350 points)
The title if this question is not a questing. Maybe this would be better:
How to bind the same notification against multiple events?
This is so cool, should be in the wiki page for configuring notifications.
...