Best Practice: Rules and monitors should be documented if they are not enabled by default

 

What does this best practice check for?

MP Elements can be enabled to be “turned on” to run on import, or disabled by default such that the user must enable them to run. As a best practice, all MP elements that are not enabled by default should be documented in the MP Guide.

Why is it important to follow this best practice? What is the impact of not following this best practice?

For elements that are not enabled by default, if the end-user does not realize that this is intentional, problems could occur. Such problems include users not knowing that this functionality is available, or users assuming that the functionality is not working properly in their environment.   

How do I fix this in my MP?

Using the Authoring Console:

1.        For any MP element, open the Properties dialog. In the Options tab, check that the Enabled value is the intended value for the element.

2.        During MP Guide development, be sure to note the list of elements that are havetheir Enabled value set to false.

 

Using XML:

     < Rule ID = " Microsoft.Windows.Server.2008.Computer.RunWMIAdap" Enabled = " false" Target =" Server2008!Microsoft.Windows.Server.2008.Computer" >

       < Category > Maintenance </ Category >

       < DataSources >

         < DataSource ID = " Scheduler" TypeID =" System!System.Scheduler" >

           < Scheduler >

             < SimpleReccuringSchedule >

               < Interval Unit = " Days" >1 </ Interval >

             </ SimpleReccuringSchedule >

             < ExcludeDates />

           </ Scheduler >

         </ DataSource >

       </ DataSources >

       < WriteActions >

         < WriteAction TypeID = " System!System.CommandExecuter" ID =" DS1" >

           < ApplicationName ><![CDATA[ %windir%\system32\cmd.exe ]]></ ApplicationName >

           < WorkingDirectory />

           < CommandLine > /c wmiadap.exe /F </ CommandLine >

           < TimeoutSeconds > 300 </ TimeoutSeconds >

           < RequireOutput > true </ RequireOutput >

           < Files />

         </ WriteAction >

       </ WriteActions >

     </ Rule >        

 

MP Guide:

 

The following elements are not enabled out of box in this management pack. The user must enable these elements through overrides.

·          Run WMI Adapter Rule