I'm trying to put together a email notification when high bandwidth trap is recieved by NNM9i. However there is some confusion on how to set this up.
NNMi uses the condition "CustomPolledInstanceOutOfRange", and those events are recieved by OML and are processed correctly.
1. So, I know which Source event I want to use to send the email when the alert is recieved.
2. Under notification Services, a new service has been created.
b. Call = /opt/OV/bin/OpC/extern_intf/bandwidth_mail.sh
c. Schedule = Monday through Sunday 00.00 to 23.59
3. OML > Edit SNMP_Interceptor Policy "NNMi Management Events" > "CustomPollCritical", I have selected "Actions" and "Notifications" check box.
However, there is more than one Notification Service defined. Just by checking the box, how does OML know which Notification Service to run? There's nothing in the trap template to point "Notification" to.
Indeed, when a message comes in where 'notification' is required, the time period of each notification schedule is checked. If the notification is active, the program (script) is executed. So you have to filter the messages in your script.
Yes, in the script the filter has been set..... came to the conclusion last night before I fell asleep.... lol
Anyhow, the problem is solved. The reason why the script didn't run, to begin with, is because the policy has to be pushed to both NNM and OML. Yesterday the policy was only pushed to OML, so the script wouldn't run.