Lesson 13: Monitoring MobiLink resources with the SQL Anywhere Monitor

This lesson assumes you have completed all preceding lessons. See Lesson 1: Setting up a MobiLink consolidated database.

Use this lesson to set up monitoring of a MobiLink server and a MobiLink server farm. This lesson uses the Monitor Developer Edition.

 Monitor MobiLink resources
  1. Start the Monitor. The following steps assume that the Monitor is not currently running in the background.

    • To start the Monitor Developer Edition (Windows)   Click Start » Programs » SQL Anywhere 12 » Administration Tools » SQL Anywhere Monitor.

    • To start the Monitor Developer Edition (Linux)   Run the samonitor.sh script from the bin32 or bin64 directory in the Monitor installation directory:
      samonitor.sh launch

    The Monitor starts collecting metrics and a browser opens the default URL where you can log in to the Monitor: http://localhost:4950.

    Note

    If you are accessing the Monitor over a network, browse to http://computer-name:4950, where computer-name is the name of the computer where the Monitor is running.

  2. Log in to the Monitor as the default administrator user.

    In the User Name field, type admin, and in the Password field, type admin.

    Note

    You must be logged in to the Monitor as an administrator to perform the following steps. Read-only and operator users do not have permission to perform all the tasks.

     Check your Monitor user type
    1. Log in to the Monitor.

    2. Click Tools » User Settings and review the User Type setting.

    See Monitor users.

  3. Add a MobiLink server resource to the Monitor:

    1. Start the MobiLink Synchronization Server Sample. Click Start » Programs » SQL Anywhere 12 » MobiLink » Synchronization Server Sample.

    2. Log in to the Monitor as an administrator.

    3. In the left navigation menu click Tools » Administration.

    4. Click Resources, and click Add.

    5. Click MobiLink Server, and click Next.

    6. In the Name field, type MobiLinkServerSample, and click Next.

    7. In the Host field, type localhost, and click Next.

    8. When you are prompted for the required authorization, in the User ID field, type a user name such as monitor_user, and in the Password field, type a password, such as sql.

      These credentials are used to create a user on the MobiLink server. The Monitor stores this user ID and password and uses it to connect to the MobiLink server and monitor it.

    9. Click Create.

    10. The new resource, MobiLinkServerSample, is created and monitoring starts.

    11. Click Close.

    12. Click Close.

    13. Click Overview » Resource List. Click MobiLinkServerSample to create and open a dashboard for the resource.

  4. Add a MobiLink server farm resource to monitor two MobiLink servers:

    1. Add two MobiLink servers as resources to be monitored. For the first resource, use the MobiLinkServerSample resource that you added in the previous step.

      Add a second MobiLink server resource:

      1. At a command prompt, run the following command to start a MobiLink server that listens on port 8039:

        "C:\Program Files\SQL Anywhere 12\Bin32\mlsrv12.exe" -vcrs -zu+ -c  "DSN=SQL Anywhere 12 CustDB;UID=ml_server;PWD=sql" -ot ml_tcpip.txt -zs ml_tcpip -x tcpip{port=8039}
      2. Log in to the Monitor as an administrator.

      3. Click Tools » Administration.

      4. Click Resources, and click Add.

      5. Click MobiLink Server, and click Next.

      6. In the Name field, type ml_tcpip, and click Next.

      7. In the Host field, type localhost.

        In the Port field, type 8039, and click Next.

      8. When you are prompted for the required authorization, in the User ID field, type a user name such as monitor_user, and in the Password field, type a password, such as sql.

        These credentials are used to create a user on the MobiLink server. The Monitor stores this user ID and password and uses it to connect to the MobiLink server and monitor it.

      9. Click Create.

        The ml_tcpip resource is added to the Resource List in the Overview dashboard.

      10. Click Close.

      11. Click Close.

    2. Add the MobiLink server farm resource. For more information about MobiLink server farms, see Run the MobiLink server in a server farm.

      1. Open the Administration window.

        Click Tools » Administration.

      2. Click Resources, and click Add.

      3. Click MobiLink Server Farm, and click Next.

      4. In the Name field, type MobiLink_Test_Farm, and click Next.

      5. Click MobiLinkServerSample and ml_tcpip, and click Create.

      6. Click Close.

      7. Click Close.

    3. Click Dashboards » Overview.

      The MobiLink_Test_Farm resource appears in the Resource List.

      Note that the MobiLink server resources remain in the Resource List.

    4. Click the arrow to the left of the MobiLink_Test_Farm to see the list of MobiLink server resources that are included in the farm.

    5. Click MobiLink_Test_Farm to open the MobiLink_Test_Farm dashboard and view the collected metrics.

      The Alert List, Resource Widget, and Server Info widgets should appear.

  5. To test an alert or learn about additional Monitor features, see Tutorial: Monitoring resources with the Monitor.

  6. Proceed to Cleaning up.