Configuring a Threshold Alert (CLI)

Use this procedure to be automatically notified when a specific dataset exceeds or falls below a set threshold level.

If the automatic suspend policy is enabled, the dataset and the corresponding statistics will be automatically suspended when the maximum idle time you set for the threshold is exceeded. To improve the system performance, you can enable this policy and set a shorter time period for the configurable threshold. Note that the automatic suspend policy does not apply to dashboard datasets and datasets used to collect trendable statistics.

  1. Go to configuration alerts thresholds.
  2. Enter create.
    hostname:configuration alerts thresholds> create
  3. Enter show to view a list of threshold alert properties.
  4. Set the properties.

    This example sets a capacity threshold alert for the system pool when it exceeds 80 percent for at least one hour on any day of the week. The alert reposts every day while the condition persists, and an alert is also posted when the condition clears for at least one day.

    hostname:configuration alerts threshold (uncommitted)> set statname=syscap.percentused
                                       statname = syscap.percentused (uncommitted)
    hostname:configuration alerts threshold (uncommitted)> set limit=80
                                       limit = 80 (uncommitted)
    hostname:configuration alerts threshold (uncommitted)> set minpost=3600
                                       minpost = 1 hours (uncommitted)
    hostname:configuration alerts threshold (uncommitted)> set days=all
                                       days=all (uncommitted)
    hostname:configuration alerts threshold (uncommitted)> set frequency=86400
                                       frequency = 1 days (uncommitted)
    hostname:configuration alerts threshold (uncommitted)> set minclear=86400
                                       minclear = 1 days (uncommitted)
  5. Enter commit to complete the task.
    hostname:configuration alerts threshold (uncommitted)> commit

For more information about setting threshold alerts, see Adding Threshold Alerts in Oracle ZFS Storage Appliance Administration Guide, Release OS8.8.x.