はじめに
このドキュメントでは、Cisco SDWAN-Managerからのアラーム通知をWebhook経由でCisco Webex Teamsチャネルに送信できるようにする方法について説明します。
前提条件
要件
Webhook URLエンドポイントの作成
https://apphub.webex.comからCisco Webexの着信webhookを作成し、Cisco Webex Teamsチャネルに送信されるCisco SDWAN-Managerアラーム通知を設定します。
1: Connectをクリックします。

2:WebexでWebhookの名前と新しいスペース(例:Webhook Notification)を作成します。次に、ドロップダウンメニューからWebhook通知スペースを選択し、ADDをクリックします。

3:Webhook URLエンドポイントが作成されます。

使用するコンポーネント
このドキュメントは、次のソフトウェアとハードウェアのバージョンに基づいています。
- Cisco Catalyst SD-WAN Managerバージョン20.15.3.1
設定
1. Cisco SD-WAN Managerメニュー。Monitor > Logs > Alarms > Alarm Notifications > Add Alarm Notificationsの順に移動します。

- 通知:通知の名前を作成しました。
- アラーム タイプ:
- オブジェクトタイプ:デバイスを選択します。
- Object List(オブジェクトリスト):ALLまたは個々のデバイスを選択します。
- 重大度:すべて。
- タイプ:必要な[すべて]または[選択]
- 配信方法:
- Webhookのチャネルの選択(オプション):
- ドロップダウンメニューからCisco Webexを選択します。
- WebHook URL:Incoming Webhook APPからURLをコピーします。

- Webhookしきい値:4
- 終了したら、Add Notificationsをクリックします。

確認
- アラーム通知がCisco Webex Teamsチャネル(チャネル名:「Webhook Notification」)に転送されることを確認します。

トラブルシュート
Webhookの統合に問題がある場合は、ログを確認します。Cisco SDWAN-Managerシェルにログインし、cd /var/log/nmsディレクトリに移動してvmanage-server.logファイルを確認します。
動作例:
- 204ステータスコードを受信した場合は、webhookが正常に配信され、処理されたことを意味します。
vmanage_1# vsh
vmanage_1:~$ cd /var/log/nms
vmanage_1:/var/log/nms$ tail -f vmanage-server.log | grep webhook
[] [vmanage_1] [NotificationsConsumer] (pool-53-thread-9) || Response status code after sending webhook: 204
[] [vmanage_1] [NotificationsConsumer] (pool-53-thread-11) || Response status code after sending webhook: 204
[] [vmanage_1] [NotificationsConsumer] (pool-53-thread-10) || Response status code after sending webhook: 204
[] [vmanage_1] [NotificationsConsumer] (pool-53-thread-12) || Response status code after sending webhook: 204
動作しない例:
- 404応答コードを受信した場合は、エンドポイントのURLが正しくないことを意味します。
vmanage_1:/var/log/nms$ tail -f vmanage-server.log | grep webhook
[] [vmanage_1] [NotificationsConsumer] (pool-53-thread-13) || Response status code after sending webhook: 404
[] [vmanage_1] [NotificationsConsumer] (pool-53-thread-14) || Response status code after sending webhook: 404
[] [vmanage_1] [NotificationsConsumer] (pool-53-thread-15) || Response status code after sending webhook: 404
[] [vmanage_1] [NotificationsConsumer] (pool-53-thread-1) || Response status code after sending webhook: 404
関連情報
テクニカル サポートとドキュメント - Cisco Systems