Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?


Configuring Alarm Notification

By default, the alarms generated by managed devices in the Junos Space platform are sent to the network monitoring functionality. To enable alarm notification for supported Junos Space applications, you can configure alarm notification files for basic filtering to specify the alarm notifications that designated Junos Space applications should receive.

Configuring a Basic Filter for Alarm Notification

The following steps show how to configure a basic filter based on unique event identifier (UEI), severity, and device family. When the alarm criteria specified in the XML file are matched, the alarm XML is passed as an argument to the invoked script.

To configure a basic filter for alarm notification:

  1. Configure the destination for the notification in the script, for example, The script specifies how the alarm notifications are sent to the application.

    In the preceding example, the curl command is used to post the script, but the configuration of the script can vary based on the requirements of the application.

    You can access sample configuration scripts from the /opt/opennms/etc/examples/alarm-notification/scripts directory. However, all active scripts must be present in the /opt/opennms/etc/alarm-notification/scripts directory.

  2. In the alarmNotificationConf.xml configuration file:
    1. Enable the alarm notification feature:
    2. Configure the number of seconds to wait for the script to execute before timing out:

      If you do not configure the timeout_in_seconds attribute, the default time out for the script invoked is 60 seconds. In this case, the shell exit status will be ’143’ and error handling will be considered in the same way as other error exit status. If the script continues to execute after the timeout value for the script, alarm notification will not wait for the script status. During this time, processing of other alarms will not be blocked.

    3. Specify the name of the script that will be invoked:

      The configured script must be present in the /opt/opennms/etc/alarm-notification/scripts directory.

    4. Enable error handling, and configure the number of notification retry attempts and interval (in seconds) between retry attempts, if the initial attempt to send the notification fails:

      The script exit status should be ’0’ if there are no errors. For other exit status values, the script will be invoked again if error handling is enabled.

    5. Configure the UEI of the alarms which will require notification:

Activating Alarm Notification Configuration Files for Basic Filtering

After configuring the alarm notification files for basic filtering, you must add the files to the Junos Space application to activate the alarm notification configuration:

  1. Log in from the Junos Space system console.

    The Junos Space Appliance Settings menu displays.

  2. From the Junos Space Appliance Settings menu, enter 7 (or enter 8 from the Junos Space Virtual Appliance) to run the shell.
  3. (Optional): To view the sample configuration files for alarm notification:
    1. Navigate to the /opt/opennms/etc/examples/alarm-notification directory to view sample files for alarmNotificationConf.xml, eventconf.xml, and vacuumd-configuration.xml.
    2. Navigate to the /opt/opennms/etc/examples/alarm-notification/scripts directory to view the and sample scripts.
  4. To activate configuration files for alarm notification, perform the following steps:
    1. Add your configured alarmNotificationConf.xml file to the /opt/opennms/etc/alarm-notification directory.
    2. Add your configured eventconf.xml and vacuumd-configuration.xml files to the /opt/opennms/etc directory.
    3. Add your configured script file to the /opt/opennms/etc/alarm-notification/scripts directory.

Reloading a Filter Configuration to Apply Filter Configuration Changes

After making any changes to a filter, you can reload the configuration by sending a “reloadDaemonConfig” event, for example:

You do not need to restart the server to apply the configuration changes listed in previous steps. However, to send the event, go to /opt/opennms/bin ./ -p 'daemonName Alarmd.AlarmNorthbounder'

This event will reload the following files:

  • alarmNotficationConf.xml


  • Drool (.drl) files