SQL Monitor - 3.1
Testing data collection methods - SQL Monitor
SQL Monitor collects data from your monitored servers using the following methods:
- Ping
- Remote registry (PerfMon & registry access)
- WMI
- Remote file access
- SQL
If you are experiencing connection issues in SQL Monitor, you can start to diagnose where the problem occurs by testing each type of connection independently.
Opening the command prompt
To test each data channel, you will first need to open a command prompt as an administrator:
- Log in to the machine that is running the SQL Monitor Base Monitor service. See the About page (Configuration > About) for details of which machine is running the Base Monitor service.
- Run the command prompt as an administrator:
- From the Start menu, select All Programs > Accessories.
- Right-click on Command Prompt and select Run as administrator.

- A security warning may be displayed. Click Yes to continue.
Testing ping
At the command prompt, run:
ping myserver.example.com
where myserver.example.com is the name of the Windows server you are attempting to monitor.
For more information, including details about the most common error messages that may be displayed, see Testing Network Connections with Ping.
Testing remote registry (PerfMon)
- At the command prompt, run:
runas /netonly /user:example.com\myaccount "perfmon"where
example.com\myaccountis the Windows account you are using to monitor the server. This is the account listed under Credentials on the Monitored servers page in SQL Monitor (Configuration > Monitored servers), as shown below:
- When prompted, enter the password for this account.
- Click on Performance Monitor in the left pane, then click the Add button:

- In the Select counters from computer box, enter the name of the server you are attempting to monitor.
- By default, Processor is selected in the list of counters and _Total in the Instances of selected object box.
- Click Add>>. The selected counter appears in the Added counters box on the right:

- To check another server you are attempting to monitor, type its name in the Select counters from computer box and repeat the steps above.
The connection test can fail if the remote registry is not running, not responding, or the interprocess communications (IPC) pipe is blocked by a policy or registry change. The affected server will report either of the following errors:
- (PerfMon)
Unable to connect to specified machine or machine is offline (-2147481648) - (Registry)
The network path was not found (53)
To troubleshoot this, try the following solutions in turn and retest the remote registry connection after each attempt:
- Check that the remote registry service is running. Click Start > Control Panel > Administrative Tools > Services, and make sure that the Remote Registry Startup Type setting is Automatic, and the Status is Started.
- Restart the remote registry service.
- Check that you have the necessary permissions to access the remote registry. For more information, see How to Manage Remote Access to the Registry.
- Check that the Active Directory Domain Services do not contain a policy that blocks access to the Remote Registry service. See Active Directory Domain Services.
- If your PerfMon library has become corrupt, rebuild it. For details, see http://support.microsoft.com/kb/300956.
Testing remote registry
- At the command prompt, run:
runas /netonly /user:example.com\myaccount "regedit"where
example.com\myaccountis the Windows account you are using to monitor the server. This is the account listed under Credentials on the Monitored servers page in SQL Monitor (Configuration > Monitored servers), as shown below:
- When prompted, enter the password for this account.
- In the Registry Editor, select File > Connect Network Registry.
- Enter the name of the server you are attempting to monitor in the Select Computer dialog box:

- Click OK. The name of the server should be displayed in the left pane.
- Beneath the name of the server, expand HKEY_LOCAL_MACHINE. You should see a list of registry keys:

- Repeat the steps above for other servers you want to test.
The connection test can fail if the remote registry is not running, not responding, or the interprocess communications (IPC) pipe is blocked by a policy or registry change. The affected server will report the following error:
The network path was not found (53)
To troubleshoot this, try the same solutions described for Testing remote registry (PerfMon) above.
Testing WMI
- At the command prompt, run:
wbemtest - In the Windows Management Instrumentation Tester dialog box, click Connect.
- In the Namespace box, type
\\myserver.example.com\root\cimv2where wheremyserver.example.comis the name of the Windows server you are attempting to monitor. - Under Credentials, enter the Windows account you are using to monitor the server and the password. This is the account listed under Credentials on the Monitored servers page in SQL Monitor (Configuration > Monitored servers).

- Click Connect.
- Click Query and enter the following query:
SELECT Name FROM Win32_Service
- Click Apply. You should see a list of results similar to those shown below:

If connection fails and an "Access Denied" error message is displayed, see WMI Troubleshooting and WMI Isn't Working!.
Testing remote file access
- At the command prompt, run:
runas /netonly /user:example.com\myaccount "explorer"where
example.com\myaccountis the Windows account you are using to monitor the server. This is the account listed under Credentials on the Monitored servers page in SQL Monitor (Configuration > Monitored servers). - When prompted, enter the password for this account.
- In the Explorer window address bar, type
\\myserver.example.com\c$wheremyserver.example.comis the name of the server you are attempting to monitor. You should see the contents of that server's C: drive displayed.
If remote file access fails and an "Access Denied" error message is displayed:
- Check that the server you are attempting to monitor has security policy permissions set to allow remote access.
- Check that the files you are attempting to access on the server's C: drive have file sharing permissions set to allow access.
Testing SQL connection
You can test SQL connectivity using SQL Server Management Studio.
Testing SQL connection using SQL Server authentication:
- From the Start menu, select All Programs > Microsoft SQL Server 2005/2008/2012 > SQL Server Management Studio.
- At the Connect to Server dialog, enter the fully qualified name of the SQL Server instance you are attempting to monitor in the Server name box.
- Select SQL Server Authentication.
- Enter the SQL Server login and password you are using to connect to the SQL Server instance and click Connect.
Testing SQL connection using Windows authentication:
- From the Start menu, select All Programs > Microsoft SQL Server 2005/2008/2012 to display a sub-menu.
- Hold down the Shift key, right-click on SQL Server Management Studio and select Run as different user.
- At the Windows Security dialog, enter the Windows user name and password you are using to connect to the SQL Server instance and click OK.
- At the Connect to Server dialog, enter the fully qualified name of the SQL Server instance you are attempting to monitor in the Server name box, and click Connect.
If connection fails, one of the following error messages is displayed:
- Timeout expired
- An existing connection was forcibly closed by the remote host
- No process is on the other end of the pipe
- Login failed for user <x>
A connection failure may also occur if the system administrator privileges used to access the database engine are inadvertently deleted. To resolve these issues, see Troubleshooting Database Engine Connectivity.
Was this article helpful?
SQL Monitor
- Example configuration of SQL Monitor using virtualization software
- Retrieving alert settings using SQL Data Compare
- Licensing issues with SQL Monitor
- Log files in SQL Monitor
- Upgrading to a later version of SQL Monitor
all SQL products
- Compatibility of Red Gate tools in 64-bit environments
- Application has encountered an error and needs to close
- Error message after installing SQL Toolbelt - The description for Event ID ( 1 ) in Source ( nview_info ) cannot be found.
- Changing the temporary directory used by the installer
- Toolbelt Installer "hanging" while "scanning volumes"
- Login failing with "trusted SQL Server connection" error when using RunAs
all products
- Some Red Gate products identified as containing a trojan by Anti-Virus software
- Activation may fail with Unknown Error -1
- Product uses web help although a CHM file is available locally
- Argument exception resulting from missing environment variable
- Check for updates may fail when used through proxies
- 'Unidentified Publisher' error when repairing or uninstalling
- Licensing activates product as standard edition
- Moving Red Gate software products to another machine
- Red Gate tools log locations
- The application UI opening slowly when there is no internet access
SQL Monitor
all SQL products
all products
- Red Gate product acknowledgements
- Activating your products
- Activating your products
- Red Gate bundle history
- Check for updates
- Troubleshooting Check for Updates errors
- Current versions
- Deactivating your products
- Installing Red Gate products from the .msi file
- Requesting additional activations
- Serial numbers for bundles
- Reactivating using a different serial number
- Extending your trial
- Finding your serial numbers
- Moving a serial number from one computer to another
- No response received for manual activation
- Licensing and activation resources
- Licensing and activation resources
- Troubleshooting licensing and activation errors
- Licensing and activation FAQs
- Red Gate tools log file locations
- Download old versions of products
- Download product prerequisites & utilities
- Support & upgrades
- Upgrading your software
- Upgrading FAQs

