July 4, 2022


Be educated, be a good achiever

Overview Of SharePoint Health Analyzer

2 min read

SharePoint Health Analyzer is a trait in the Microsoft SharePoint foundation that allows managers to schedule automatic and regular reviews for possible configuration, performance, and deployment issues on the server farm. Any errors that SharePoint Health Analyzer detects are classified in the status reports provided to farm managers in central administration. 

The status report describes each issue, a list of the servers experiencing the problem, and outlines the steps the administrator can take to resolve the issue. In some cases, errors are fixed automatically as soon as they are detected and farm administrators are notified of the fix.

Health Rules:

'SharePoint fitness experimenter' monitors the farm by applying a set of health rules. Many of these rules come with SharePoint Foundation. You can create and apply additional rules by writing code that uses the SharePoint Foundation object model.

SharePoint health check: Auditing SharePoint - Rencore

Image Source: Google

Constraints are executable code. 

Each rule is a specific subclass that inherits one of two abstract classes: SPHealthAnalysisRule or SPRepavableHealthAnalysisRule. In both cases, the code that detects and reports potential problems is in the Check() method. The fixable bug also has a Repair() method which fixes the problems detected by the Check method.

Rules are provided in assemblies that are compiled and registered in SharePoint Health Analyzer by addressing the RegisterRules (Assembly) method of the SPHealthAnalyzer class. When a rule is registered, an execution timer is created to run the rule, using the default parameters defined by the rule's AutomaticExecutionParameters property. 

Items from the rule are also added to the Health Analyzer rule list. You can view rule definitions by clicking View rule definitions under Health Analysis on the Central Administration Monitoring tab.