When you start and run a notification adapter, it reads a configuration file, <adapter_name>-notify.conf. Use the following procedure to modify the configuration file to run your customizations.
If you are developing multiple customized notification adapters with different subscriptions, you need a configuration file for each adapter. For each notification list (in Service Assurance) or event subscriptions (in IP Availability Manager) you subscribe to, create an individual configuration file:
Whenever you modify a configuration file, stop and restart the notifier for the changes to take effect.
Using the sm_edit utility, open the configuration file:
Add the following lines to specify the ASL scripts that contain your customizations. The lines should be added to the end of the file below the initialEventDelay parameter:
filterRuleSet = "notifier/mail/mail-filter.asl" customRuleSet ="notifier/mail/mail-custom.asl"
Modify the SubscribesTo parameter if necessary.
By default, the notifiers subscribe to a Global Manager. To subscribe to a Domain Manager, you must uncomment the code in the Subscriptions section and comment out the code for the Global Manager (insert a # character at the beginning of the lines that are not needed). “Specifying subscriptions in the configuration file” on page 21 contains additional information.
Modify other adapter parameters as desired.Note:
For information about parameters and their acceptable values, see the chapter for the individual notification adapter.
Save the modified configuration file. The sm_edit utility automatically saves the file to the BASEDIR/smarts/local/conf/notifier directory.