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 4: Testing an alert

In this lesson, you intentionally trigger an alert so that you can practice handling alerts.

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.

 Task
  1. Trigger an alert by shutting down the database server.

    For example, shut down the database server on Windows by double-clicking the network server icon in the system tray, and then clicking Shut Down in the database server messages window.

  2. In the Monitor, click Dashboards » Overview.

    In the Resource List, a red circle with a white X through it appears next to the resource and to indicate that the resource is unavailable.

    The Resource List with the demo16 resource unavailable.

    In the Alert List widget, an Availability Alert for a database, a Server Down alert for a MobiLink server, or a Sustained Relay Server Outage alert for a Relay Server farm appears with the status Active.

    Alert List with an Active alert.

    It can take a few seconds for these changes in state and status to occur. By default, the Monitor collects information from the resource every 30 seconds.

  3. In the Alert List widget, select the alert and then click Details to read the description.

  4. Click OK to close the alert.

  5. Restart the resource. For example, restart the sample database by clicking Start » Programs » SQL Anywhere 16 » SQL Anywhere » Network Server Sample.

    In the Resource List widget, the Status for the resource changes to a yellow triangle. This icon indicates that the resource is being monitored and it has an alert. In the Alert List, the Status of the alert changes to Inactive. An inactive alert indicates that the issue that triggered the alert is no longer present, but the alert has not been resolved or deleted.

    Alert List with an Resolved by admin alert.
  6. Resolve the alert by selecting the alert and clicking Mark Resolved.

    Now in the Resource List, there are no icons beside the resource, indicating that the resource is being monitored and has no alerts. In the Alert List widget, the Status of the alert changes to Resolved by admin, where admin is your Monitor user name.

    Alert List with a Resolved alert.
  7. Delete the alert.

    1. Click the alert and click Delete.

    2. Click Delete Selected Alerts, and then click OK.

    3. When prompted, click Yes to confirm the deletion.

Résultat

You have triggered, resolved, and deleted an alert.

 See also