SQL Monitor - 2.0

SQL Monitor

Learning SQL Monitor - 2.0

Testing data collection methods

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:

  1. 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.
  2. Run the command prompt as an administrator:
    1. From the Start menu, select All Programs > Accessories.
    2. Right-click on Command Prompt and select Run as administrator.

      CommandPrompt

    3. 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.

Testing remote registry (PerfMon)

  1. At the command prompt, run:

    runas /netonly /user:example.com\myaccount "perfmon"

    where example.com\myaccount is 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:

    CredentialsColumn

  2. When prompted, enter the password for this account.
  3. Click on Performance Monitor in the left pane, then click the Add button:

    PerfMonAdd

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

    AddPerfMonCounter

  7. To check another server you are attempting to monitor, type its name in the Select counters from computer box and repeat the steps above.

Testing remote registry

  1. At the command prompt, run:

    runas /netonly /user:example.com\myaccount "regedit"

    where example.com\myaccount is 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:

    CredentialsColumn

  2. When prompted, enter the password for this account.
  3. In the Registry Editor, select File > Connect Network Registry.
  4. Enter the name of the server you are attempting to monitor in the Select Computer dialog box:

    RegistryAddServertoMonitor

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

    ExpandRegistryKeys

  7. Repeat the steps above for other servers you want to test.

Testing WMI

  1. At the command prompt, run:

    wbemtest

  2. In the Windows Management Instrumentation Tester dialog box, click Connect.
  3. In the Namespace box, type \\myserver.example.com\root\cimv2 where where myserver.example.com is the name of the Windows server you are attempting to monitor.
  4. 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).

    ConnectWMIdialog

  5. Click Connect.
  6. Click Query and enter the following query:

    SELECT Name FROM Win32_Service

  7. Click Apply. You should see a list of results similar to those shown below:

    WMIQueryResults

Testing remote file access

  1. At the command prompt, run:

    runas /netonly /user:example.com\myaccount "explorer"

    where example.com\myaccount is 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).

  2. When prompted, enter the password for this account.
  3. In the Explorer window address bar, type \\myserver.example.com\c$ where myserver.example.com is the name of the server you are attempting to monitor. You should see the contents of that server's C: drive displayed.

Testing SQL connection

You can test SQL connectivity using SQL Server Management Studio.

Testing SQL connection using SQL Server authentication:

  1. From the Start menu, select All Programs > Microsoft SQL Server 2005/2008 > SQL Server Management Studio.
  2. 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.
  3. Select SQL Server Authentication.
  4. 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:

  1. From the Start menu, select All Programs > Microsoft SQL Server 2005/2008 to display a sub-menu.
  2. Hold down the Shift key, right-click on SQL Server Management Studio and select Run as different user.
  3. 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.
  4. 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.

Was this article helpful?

Search support
Forums
Visit the SQL Monitor forum.