8.20 ServiceChange

Use this Knowledge Script to detect any changes to the status and start type of a discovered service. You can run this script for almost any service, including SQL Services, Exchange Services, and IIS Services. This script raises an event if the status (running, stopped, pending, and so on) or startup type (manual, automatic, disabled) of any service has been changed.

8.20.1 Resource Objects

Windows computer or Windows application service

8.20.2 Default Schedule

The default interval for this script is Every 5 minutes.

8.20.3 Setting Parameter Values

Set the following parameters as needed:

Parameter

How to Set It

Collect data for service changes?

Set to y to collect data for charts and reports. If enabled, data collection returns one of the following:

  • 100 -- the service is unchanged

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

The default is n.

Event severity when service start type changes

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

Severity - service status changed

Set the event severity level, from 1 to 40, to indicate the importance of an event in which a service’s status has changed. The default is 5 (red event indicator).

Event severity when information retrieval fails

Set the event severity level, from 1 to 40, to indicate the importance of an event in which the script failed to retrieve service information. The default is 18 (yellow event indicator).