sp_MonitorServiceBroker - Initial Release
sp_Monitor Toolkit
Our first release of our sp_Monitor Toolkit - sp_MonitorServiceBroker. The purpose of this procedure is to monitor the status of Service Broker enabled databases. It’s designed to detect and alert on if Service Broker is disabled, log the results, and optionally attempt to automatically re-enable it.
What does sp_MonitorServiceBroker do?
• Review the Service Broker status of your SQL Server databases quickly and easily
• Automatically log database status to a configurable table for historical tracking (90 day default retention)
• Generate alerts when databases have Service Broker disabled
• Optionally attempt to re-enable Service Broker if it's disabled
Alerting
If @DefaultAlerting = 1, the procedure will raise an error containing the database(s) that have Service Broker disabled. This allows SQL Server Agent or monitoring tools to capture the alert automatically.
Example Usage
The tool is designed to run as part of a scheduled SQL Agent Job that runs on a reoccurring basis, typically every 5 - 15 minutes. @Databases Expects a comma separated list of databases that already have Service Broker enabled.
