Go to main content
Oracle® ZFS Storage Appliance Analytics Guide, Release OS8.7.0

Exit Print View

Updated: March 2017
 
 

Configuring a Threshold Alert (CLI)

  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