Description

This article explains how to disable the email notifications triggered for a particular IP/subnet in Network Monitoring (opennms).

Symptoms

Unwanted email notifications received for unwanted devices/interfaces (sometimes for loopback interfaces).

Solution

To disable notifications coming from a particular range of IPs/devices, take the following steps:

  1. Navigate to Network Management Platform > Network Monitoring > Admin > Configure Notifications > Event Notifications

  2. Click ‘Edit’ on concerned event notification.

  3. Select the event uei that will trigger this notification (wait on this page for a couple of minutes until the regex field populates automatically with the related uei), then click 'Next'.

  4. Click ‘Build the rule that determines if a notification is sent for this event based on the interface and service information contained in the event'.

  5. By default, you might see this:

    IPADDR != '0.0.0.0'

  6. Please modify the rule like this (where x.x.*.* is the subnet in which unwanted IPs or devices fall):

    IPADDR != '0.0.0.0' & !(IPADDR IPLIKE x.x.*.*)

  7. Click ‘Validate rule’ at the bottom of the page, then click ‘Next’.

  8. Click ‘Finish’ after verifying the notification format.