3.11 HealthCheck

Use this Knowledge Script to monitor the operational status of active SharePoint services and Web applications. This script checks the status of all SharePoint services and sites on the SharePoint server, and it can start a stopped service or site. HealthCheck will start services that have a startup type of Automatic or Manual. This script raises events if a service or site stops, fails to start, or is restarted successfully. This script generates data streams for service or site availability.

The HealthCheck Knowledge Script does not monitor, start, or raise events for disabled SharePoint Windows services.

3.11.1 Resource Objects

SharePoint Server: Services (Windows services), SharePoint Services, and Web Applications

3.11.2 Default Schedule

The default interval for this script is every 5 minutes.

3.11.3 Setting Parameter Values

Set the following parameters as needed:

Description

How to Set It

General Settings

Job Failure Notification

Event severity when job fails

Set the event severity level, from 1 to 40, to indicate the importance of an event in which the HealthCheck job fails. The default is 5.

Monitor Services

Start service or site if it is stopped?

Select Yes to automatically start all stopped services or sites on the SharePoint server. The default is Yes.

Only activated services can be automatically started. If an administrator has deactivated a service, AppManager cannot start it. This script starts services that have the startup type Automatic or Manual.

Event Notification

Raise event if service or site is stopped and should not be started?

Select Yes to raise an event if a monitored service or site is stopped but you did not enable the Start service or site if it is stopped? parameter. The default is Yes.

Event severity when service or site is stopped and should not be started

Set the event severity level, from 1 to 40, to indicate the importance of an event in which a monitored service or site is stopped but you did not enable the Start service or site if it is stopped? parameter. The default is 15.

Raise event if service or site fails to start?

Select Yes to raise an event if AppManager cannot start a monitored service or site. The default is Yes.

Event severity when service or site fails to start

Set the event severity level, from 1 to 40, to indicate the importance of an event in which AppManager cannot start a monitored service. The default is 5.

Raise event if stopped service or site has been started?

Select Yes to raise an event if a service or site has been started since the last time this script ran. The default is Yes.

Event severity when stopped service or site has been started

Set the event severity level, from 1 to 40, to indicate the importance of an event in which a service or site has been started since the last time this script ran. The default is 25.

Data Collection

Collect data for service or site availability?

Select Yes to collect data for SharePoint services and site availability. The default is unselected.