4.56 ServiceChange

Use this Knowledge Script to detect changes to the status and startup type of Windows services. This script raises an event if the status (such as running, stopped, or pending), or startup type (such as manual, automatic, or disabled) of any service changes. For example, this script raises an event if a service startup type changes from Automatic to Manual.

4.56.1 Resource Objects

Windows 2003 Server or later

4.56.2 Default Schedule

The default schedule for this script is Every 5 minutes.

4.56.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 ServiceChange job fails unexpectedly. The default is 5 (red event indicator).

Monitor Services

Services to monitor

Specify the names of the services you want to monitor, separating multiple names with commas and no spaces. You can specify the internal service names or the service names displayed in the Control Panel. Type an asterisk (*) to check all services.The default is EventLog.

Services to exclude

Specify the names of the services you want to exclude, separating multiple names with commas and no spaces. You can specify a maximum of 1500 characters.

Event Notification

Raise event if the start-type of a monitored service changes?

Set to Yes to raise an event if the startup type of a monitored service changes. The default is Yes.

Event severity for service start-type changed

Set the event severity level, from 1 to 40, to indicate the importance of an event in which the service start-type changes. The default is 10 (red event indicator).

Raise event if the status of a monitored service changes?

Set to Yes to raise an event if the status of a monitored service changes. The default is Yes.

Event severity for service status changed

Set the event severity level, from 1 to 40, to indicate the importance of an event in which the service status changes. The default is 10 (red event indicator).

Data Collection

Collect data for monitored services?

Set to Yes to collect data for charts and reports. If enabled, data collection returns:

  • 100 -- service is unchanged, or

  • 0 -- service is not running or has changed.

The default is unselected.