Symptom
The SCOM Discovery Wizard can run forever without ever discovering a single system eventhough the systems to be discovered are up & running and not restricted by a firewall.
Cause
The SQL Broker of the OperationsManager database is not running. Without it, the Discovery Wizard will not function.
Remedy
- Check to see whether the SQL Broker is running
- Open SQL Server Management Studio
- Select the right instance and the OpsMgr database
- Start a new query on the OpsMgr database:
SELECT is_broker_enabled FROM sys.databases WHERE name = 'OperationsManager'
- Value = 0 :SQL Broker is disabled. Goto Step 2.
- Value= 1 : SQL Broker is enabled. All is OK.
Check here for another issue which might be causing the Discovery Wizard to run forever. - Enabling the SQL Broker for the OpsMgr database
- Open SQL Server Management Studio
- Select the right instance and the OpsMgr database
- Start a new query on the OpsMgr database:
ALTER DATABASE OperationsManager SET SINGLE_USER WITH ROLLBACK IMMEDIATE
- Click Execute
- Start this query on the OpsMgr database:
ALTER DATABASE OperationsManager SET ENABLE_BROKER
- Click Execute
- Close SQL Server Management Studio.Note: Closing SQL Server Management Studio closes the connection to the database in single user mode. Most of the times one has to stop all SCOM related services on the RMS since these services have running connections to this database. Without stopping them one won't be able to run the next query.
- Open SQL Server Management Studio
- Select the right instance and the OpsMgr database
- Start a new query on the OpsMgr database:
ALTER DATABASE OperationsManager SET MULTI_USER
- Click Execute.
Repeat Step 1 to check the SQL Broker is running now (value must be 1)