Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.

SAP Sybase SQL Anywhere 16.0 » SQL Anywhere Server - Database Administration » Database monitoring » SQL Anywhere Monitor » Tutorial: Monitoring resources with the Monitor

 

Lesson 7: Stopping monitoring of resources

In this lesson, you remove the resource you were monitoring, which deletes the collected metrics and stops data collection. In a production environment when you want to continue monitoring your resource, you leave the database, MobiLink server or Relay Server farm and the Monitor running.

Prérequis

This lesson assumes that you have completed all preceding lessons. See Lesson 1: Logging in to the Monitor.

This lesson assumes that you have the roles and privileges listed in the Privileges section at the start of this tutorial: Tutorial: Monitoring resources with the Monitor.

Contexte et remarques

You cannot delete the SQL Anywhere Monitor resource.

Note

When you remove a database resource, the Monitor does not delete the monitoring objects installed in the database. To delete these objects, you must connect to the database as a user with MANAGE ANY USER system privilege, and execute the following statement:

DROP USER sa_monitor_user;
 Task
  1. Remove the resources that you added as part of this tutorial.

    1. Click Tools » Administration.

    2. Click Resources.

    3. Select either the demo16, the MobiLinkServerSample, or the Relay Server farm resource and click Stop.

    4. Click Remove.

    5. Click Yes to confirm that you want to remove the resource.

    6. Click Close.

  2. Click Logout to log out of the Monitor and close the browser window where you are viewing the Monitor.

  3. Shut down the Monitor and stop monitoring.

    • On Windows, in the system tray, right-click the Monitor icon and click Exit SQL Anywhere Monitor.

    • On Linux, run the samonitor.sh script from the bin32 or bin64 directory in the Monitor installation directory:

      ./samonitor.sh stop

    The Monitor stops collecting metrics for all resources.

  4. Shut down the resource that was being monitored. For example, to shut down the database double-click the network server icon in the system tray for the database server, click Shut Down in the database server messages window, and then click Yes to confirm the action.

Résultat

The SQL Anywhere Monitor is shut down and stops monitoring the resource, which is also shut down.

 See also