08-07-2013 11:11 AM
OML -- 9.10.240 on RHEL
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.
How do we define which service script to run?
Solved! Go to Solution.
08-07-2013 01:22 PM
It looks like notification either will or won't go out based on the shell script(s).
So, there may be multiple scripts ran, but the one that matches the conditions is actually run properly.
Will confirm with HP support on this.
08-07-2013 11:18 PM - edited 08-07-2013 11:19 PM
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.
08-08-2013 06:51 AM
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.
Operator error on my side.