通知の有効化

Always-On Monitoringの最初の構成では通知は無効で、新しいアラートを受信したときにサービスによって電子メールが送信されません。まず、電子メール通知を送信するためにAlways-On Monitoringを有効にする必要があります。Always-On Monitoring通知の有効化/無効化設定は、Always-On Monitoringの起動/停止間で持続します。enable_notificationコマンドは、増分同期を自動的に実行します。
% $AOM_HOME/scripts/emsctl enable_notification
Oracle Enterprise Manager Cloud Control 13c Release 5
Copyright (c) 2017, 2021 Oracle Corporation. All rights reserved.
------------------------------------------------------------------
Notifications have been enabled. There are downtime contacts configured.
 Connecting to Always-On Monitoring repository.
Starting synchronization with Enterprise Manager.
Synchronizing with Enterprise Manager repository: sysman@myserver.myco.com:35074:semgc4
Synchronizing Targets data.
Synchronizing Alerts and Availability data.
Synchronizing Notification Metadata data.
Synchronizing Target Metric Metadata data.
Synchronization complete at : Thu Oct 22 07:01:20 PDT 2020
同期を実行しない場合は、-nosyncオプションを追加します。
$AOM_HOME/scripts/emsctl enable_notification -nosync
Oracle Enterprise Manager Cloud Control 13c Release 5
Copyright (c) 2017, 2021 Oracle Corporation. All rights reserved.
------------------------------------------------------------------
Notifications have been enabled. There are downtime contacts configured.
通知を無効にして、Always-On Monitoringは実行したままにするには、disable_notificationコマンドを使用します。
% $AOM_HOME/scripts/emsctl disable_notification
Oracle Enterprise Manager Cloud Control 13c Release 5
Copyright (c) 2017, 2021 Oracle Corporation.  All rights reserved.
---------------------------------------------------------------
Notifications have been disabled. Filters have been deleted.

イベント・タイプおよび重大度によるアラート通知のフィルタリング

特定のアラート・タイプのみが関係する場合は、対象とするアラートを見つけるためにすべてのアラートをスキャンしなくて済むように、関係のないアラートをフィルタリングして除外する方法が必要となります。Always-On Monitoringでは、イベント・タイプまたは重大度に基づいてアラート通知をフィルタリングできます。

イベント・タイプによるアラート通知のフィルタリング

イベント・タイプ別のアラート通知のフィルタリングでは、特定のイベント・タイプのアラート通知を除外できます。たとえば、ターゲットの可用性アラートのみを受信する場合があります。次のイベント・タイプのアラートをフィルタリングして除外できます。

  • メトリック・アラート(metricAlert)
  • 可用性(targetAvail)
  • メトリック評価エラー(metricError)

デフォルトの設定

  • ターゲットの可用性およびメトリック・アラートの通知が有効になります
  • メトリック評価エラーのアラート通知は無効になります
例1: ターゲットの可用性アラートのみを受信するには、次のコマンドを実行します。
$AOM_HOME/scripts/emsctl disable_notification
          -alert_types=targetAvail,metricAlert,metricError 
$AOM_HOME/scripts/emsctl enable_notification -alert_types=targetAvail
例2: ターゲットの可用性アラートに加えてメトリック・エラー・アラートの通知を追加するには、次のコマンドを実行します。
$AOM_HOME/scripts/emsctl enable_notification -alert_types=metricError
Oracle Enterprise Manager Cloud Control 13c Release 5
Copyright (c) 2017, 2021, Oracle Corporation.  All rights reserved.
------------------------------------------------------------------
Notification filters have been enabled. There are downtime contacts configured.
Notification filters
    Target Availability (targetAvail) : true
    Metric Alerts (metricAlert) : false
    Metric Errors (metricError) : true
重大度によるアラート通知のフィルタリング

重大度別のアラート通知のフィルタリングでは、特定の重大度のアラート通知を除外できます。たとえば、致命的、クリティカルおよび警告のアラートのみを受信する場合があります。次のイベント・タイプのアラートをフィルタリングして除外できます。

  • 致命的
  • クリティカル
  • 警告
  • アドバイザ
  • 情報
  • クリア

デフォルトの設定

  • 致命的、クリティカルおよび警告のアラート通知が有効になります
  • アドバイザ、情報、およびクリアのアラート通知は無効になります
例1: 致命的およびクリティカルの重大度のアラートのみを受信するには、次のコマンドを実行します。
$AOM_HOME/scripts/emsctl disable_notification –severities=fatal,critical,warning,advisory,informational,clear
$AOM_HOME/scripts/emsctl enable_notification - severities = fatal,critical
例2: 致命的およびクリティカルの重大度のアラートに加えて警告アラートの通知を追加するには、次のコマンドを実行します。
$AOM_HOME/scripts/emsctl enable_notification -severities=warning

Oracle Enterprise Manager Cloud Control 13c Release 5
Copyright (c) 2017, 2021, Oracle Corporation.  All rights reserved.
------------------------------------------------------------------
Notification filters have been enabled. There are downtime contacts configured.
Notification filters - Alert types
    Target Availability (targetAvail) : true
    Metric Alerts (metricAlert) : true
    Metric Errors (metricError) : false
Notification filters - Severity
    Fatal (fatal) : true
    Critical (critical) : true
    Warning (warning) : true
    Advisory (advisory) : false
    Informational (informational) : false
    Clear (clear) : false