SchedulerFilter in Web Application monitoring

A customer asked to limit the monitoring for a web site during a specific timeframe.

In this Technet Forum thread it was suggested to add the SchedulerFilter to an existing “Web Application Transation Monitoring”.

In the following blog post I will show how to add a SchedulerFilter to a “Web Application Transaction Monitoring” object.

Start by exporting the MP and then edit it an XML editor. Look for the DataSource module type.

DataSource

From the documentation at MSDN you can find the definition of the module. In my example I will filter the workflow to run every day between 02:45 AM and 03:10 AM.

<ConditionDetection ID="Schedule" TypeID="System!System.SchedulerFilter">
<SchedulerFilter>
<ProcessDataMode>OnSchedule</ProcessDataMode>
<Schedule>
<WeeklySchedule>
<Windows>
<Daily>
<Start>02:45</Start>
<End>03:10</End>
<DaysOfWeekMask>127</DaysOfWeekMask>
</Daily>
</Windows>
</WeeklySchedule>
<ExcludeDates />
</Schedule>
<UseCurrentTime>true</UseCurrentTime>
</SchedulerFilter>
</ConditionDetection>

Add the filter module to the DataSource and add it to the Composition order.

SchedulerFilter_Proper

Save the MP and import it into the Operations Manager MG. I recommend that you test this in a Lab/Test environment before implementing in a production environment.

An example can be found here.

Notice:

  • This method will only work for the “Web Application Transaction Monitoring” not the “Availability Monitoring” template.
  • You can’t see this filter in the Operations Manager Console so update your Operations Manager documentation.

 

Authoring, SCOM 2012, Web Application Monitoring

2 responses to SchedulerFilter in Web Application monitoring


Leave a Reply

Your email address will not be published. Required fields are marked *