Thursday, June 20, 2013

[OpsMgr 2007R2][OpsMgr 2012] Email notification may not work as expected if a time range is configured only with an exclusion ( #OpsMgr #SCOM #Notification )


The Operations Manager Engineering Team has published a post on issue with #Email #Notification when a time range is configured only with an exclusion.



When using #SystemsCenterOperationsManager (any version of #OpsMgr 2007 or #OpsMgr 2012), if you configure #Notification Recipients (so called up to OpsMgr 2007 SP1) or Subscribers (as called in #OpsMgr 2007 R2 and #OpsMgr 2012) with the option of "Only send notification during the specified times" and you configure it with only an exclude range (like "Except from" with a time range of, say 1:00am to 7:00am for example), email notifications fail altogether.


In the Operations Manager event log you will also see the event below:

      Log Name:      Operations Manager       Source:        Health Service Modules       Date:          <date> <time>       Event ID:      31501       Task Category: Notification       Level:         Warning       Keywords:      Classic       User:          N/A       Computer:      <RMS Server Name>       Description: No primary recipients were specified for the notification or all recipients are unavailable             according to the schedules. Notification will not be sent
One or more workflows were affected by this. 
Workflow name: Subscription431bd31a_37fc_4375_9cd7_29bb8a11c600
Instance name: Alert Notification Subscription Server
Instance ID: {E07E3FAB-53BC-BC14-1634-5A6E949F9230}
Management group: <Mgmt Group Name>



So what’s going on? Since we configured it to send only during specified times and then only included an excluded range, the system does not recognize any valid time that emails can be sent so it never sends any.
So to keep this from happening, or to fix it if you’ve already found yourself in this situation, you need to configure the Recipient or Subscriber first with an included time range, then configure your excluded time range.
For example, first configure you include Range like Date  | Range = Always | Time Range = All Day | Weekdays = Week days. then once you have that, configure your Exclude Range like Data Range = Always | Time Range = Excluding 1:00am to 7:00am | Weekdays = Week Days. The screen shot below shows this configuration.

This posting is provided "AS IS" with no warranties.

No comments:

Post a Comment