Use this Knowledge Script to monitor the status of Exchange Server services. This script raises an event when services are not running, and when stopped services fail to start. Also, you can collect data for all the exchange server services through this script.
This script monitors and restarts the following Exchange Server services:
Mailbox Server Role Services |
||
Monitoring |
Active Directory Topology |
Information Store |
Mailbox Assistants |
Mail Submission |
Replication Service |
System Attendant |
Search Indexer |
Service Host |
Transport Log Search |
Search (Exchange) |
Server Extension for Windows Server Backup |
Client Access Server Role Services |
||
Service Host |
Active Directory Topology |
File Distribution |
Hub Transport Server Role Services |
||
Active Directory Topology |
EdgeSync |
Transport |
Transport Log Search |
||
Edge Transport Server Role Services |
||
ADAM |
Credential Service |
Transport |
Anti-SPAM Update |
Monitoring |
Transport Log Search |
Unified Messaging Server Role Services |
||
Active Directory Topology |
File Distribution |
Monitoring |
Unified Messaging |
Speech Engine |
This script is a member of the Exchange2007 recommended Knowledge Script Group. For more information, see Section 4.43, Recommended Knowledge Script Group.
Exchange2007_Services
Exchange2007_Service
Exchange2010_Services
Exchange2010_Service
Exchange2013_Services
Exchange2013_Service
Exchange2016_Services
Exchange2016_Service
Exchange2019_Services
Exchange2019_Service
By default, this script runs every 15 minutes.
Set the following parameters as needed:
Parameter |
How to Set It |
---|---|
General Settings |
|
Job failure event notification |
|
Event severity when job fails |
Set the severity level, from 1 to 40, to indicate the importance of an event in which the All_ServiceStatus job fails. The default is 5. |
Monitor Status of Exchange Services |
|
Services to be Monitored |
|
Monitor services configured to start automatically? |
Select Yes to monitor Exchange Server services that are configured to start automatically. The default is Yes. When you enable this parameter, the All_ServiceStatus job does not raise events for services that are configured to start manually, nor does it start manual services that are not running. |
Monitor services configured to start manually? |
Select Yes to monitor Exchange Server services that are configured to start manually. The default is No. When enabled, the All_ServiceStatus job does not raise events for services that are configured to start automatically. |
Event Notification |
|
Raise event if Exchange services are not running? |
Select Yes to raise an event if at least one Exchange Server service is not running. The default is Yes. When you enable this parameter, the All_ServiceStatus job raises events only for those services you selected in the Services to be Monitored parameters. |
Event severity when services are not running |
Set the severity level, from 1 to 40, to indicate the importance of an event in which at least one Exchange Server service is not running. The default is 10. |
Start services not currently running? |
Select Yes to start Exchange Server services that are not running. The default is Yes. When you enable this parameter, the All_ServiceStatus job starts only those services you selected in the Services to be Monitored parameters. |
Threshold - Timeout for service startup |
Set the number of seconds that AppManager should wait for Exchange Server services to restart before raising an event. The default is 60 seconds. |
Raise event if stopped services fail to start? |
Select Yes to raise an event if AppManager cannot start Exchange Server services that are not running. The default is Yes. |
Event severity when stopped services fail to start |
Set the severity level, from 1 to 40, to indicate the importance of an event in which Exchange Server services fail to start after the specified timeout period. The default is 5. |
Data Collection |
|
Collect Data? |
Select Yes to collect data for all exchange server services. The default is No. |