Step 8: Configure Notifications

This section describes how to configure and customize your Horizon notifications.

This step is separate from setting up default notifications. We assume that you have followed the previous steps and are ready to proceed to more in-depth work with notifications.

Configuration and customization

Now that you have established your environment’s baseline, it’s time to take your notes and configure your custom notifications. Establishing notifications that are tailored for your environment and monitoring requirements lets the right people see and respond to the right issues in a timely manner.

Here, we will describe how to configure event notifications and path outages. Event notifications can be configured to provide UEI-specific coverage, allowing for granular control of incoming information. Path outages prevent the generation of excess notifications by identifying network paths where failures may cause multiple nodes to appear offline.

Configure event notifications

An event notification defines a destination path and message template for a specific event UEI. It is possible to define multiple notifications for the same UEI to use different filters, destination paths, and message templates. Follow these steps to configure event notifications:

  1. Click the Gear symbol in the top-right of the screen.

  2. Under Event Management, click Configure Notifications  Configure Event Notifications. A list of events that are configured for notifications is displayed.

  3. Click Add New Event Notification, choose the UEI that will trigger a notification, and click Next.

  4. (Optional) Build a rule to match a subset of IP addresses or services, and click Validate Rule Results  Next or Skip Results Validation. If you do not build a rule, notifications will be generated for all monitored IP addresses.

  5. In the Choose Path screen, specify information to include in the notification, including the destination path, subject (for email messages), body text, and so on.

  6. Click Finish.

Event notification configuration is stored in ${OPENNMS_HOME}/etc/notifications.xml. Changes to this file happen immediately, with no need to restart Horizon.

Filter rules

A filter rule lets you define which notifications to send or save. Strict rules are always evaluated, and if there is no node or interface associated with the event, the notification will not be saved. Filter rules work alongside your event notification configuration to enable better, more fine-tuned control over the notifications that you receive.

By default, the filter rule configured in ${OPENNMS_HOME}/etc/notifications.xml (for example, <rule>IPADDR != '0.0.0.0'</rule>) does not have the strict flag enabled. That means if there is an event that is not associated with a node or interface (and therefore no IPADDR value), it will bypass validation and the notification would be processed.

A strict rule (for example, <rule strict="true">IPADDR != '0.0.0.0'</rule>) will always be evaluated, and if there is no node or interface associated with the event, the notification will not be saved.

Configure path outages

Configuring a path outage lets you suppress notifications for nodes that appear to be down due to a failure in the network path between the nodes and Horizon. For example, if a WAN link fails, all nodes at the remote site served by the WAN link will appear to be down. Because you get a notification that the router on the far end of the WAN link is not responding, you don’t need notifications for all devices that sit behind that router.

You can configure a path outage for an individual node by setting a parent on the node in a requisition:

  1. Click the Gear symbol in the top-right of the screen.

  2. Under Event Management, click Configure Notifications  Configure Path Outages.

  3. Enter the critical path IP address, select a critical path service, and click Validate Rule Results.

  4. Click Next to save the configuration.

Beyond Quick Start

For more information on notifications, refer to Notifications in the Deep Dive section. Topics include: