SharePoint’s Health Analyzer provides warnings and alerts to SharePoint administrations on the overall health of the farm. It accomplishes this using a number of health analyzer rules that check various settings, configuration and parameters of the environment to report back on potential issues.
This can be valuable information as an administrator to assist in keeping your farm online and running efficiently. The key is to understand what is applicable to your environment and configuration. These standard set of rules supplied out of the box are the same for all installations but not one SharePoint farm I have ever configured is exactly the same. This combination equates to SharePoint administrators constantly seeing the red critical issues bar at the top of their Central Administration site. That critical alert bar always showing becomes the normal and you no longer pay much attention to it potentially leading to issues for your end users.
Targeting the health analyzer to only report on what is relevant provides better information to our administrators.
The health analyzer reporting that drives are running out of space is a common scenario that shows up on most environments. These alerts usually follow with comments from clients advising that they already have other monitoring in place like System Center Operations Manager (SCOM) for example. Let’s use that as our example to show how you can disable those rules in SharePoint.
- Open preferred PowerShell console if using something other than the SharePoint Management Console be sure to add the SharePoint PowerShell snapin “Add-PSSnapin Microsoft.Sharepoint.Powershell”
- Now you can run “Get-SPHealthAnalysisRule” to list all of the rules in the farm
- Find the rule or rules you would like to work with and copy the name, in this scenario there are two rules one for the warning and one for the alert, “AppServerDrivesAreNearlyFullWarning” and “AppServerDrivesAreNearlyFull”.
- To disable the AppServerDrivesAreNearlyFullWarning rule run ” Disable-SPHealthAnalysisRule –Identity AppServerDrivesAreNearlyFullWarning”
- To disable the AppServerDrivesAreNearlyFull rule run ” Disable-SPHealthAnalysisRule –Identity AppServerDrivesAreNearlyFull”
- To confirm the rules are disabled run “Get-SPHealthAnalysisRule -Identity AppServerDrivesAreNearlyFull” and “Get-SPHealthAnalysisRule -Identity AppServerDrivesAreNearlyFullWarning”. Enabled will equal false for both.
- Open the Health Analyzer list from Central Admin and delete the items associated with the alerts disabled. The alerts will no longer be created in this list unless you enable the rules again using “Enable-SPHealthAnalysisRule” cmdlet.
This is just an example and meant to show process on how you can manage Health Analyzer rules in SharePoint to reduce alerts for items that are not applicable to your situation. Each environment is unique and should be treated that way with proper analysis before disabling any health analyzer rules.