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.
Windows 2003 Server or later
The default schedule for this script is Every 5 minutes.
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:
The default is unselected. |