メインコンテンツへスキップ

DII通知Webhookで「Webhookをテスト」をクリックすると、HTTP 400 Bad Requestが返される

Views:
1
Visibility:
Public
Votes:
0
Category:
data-infrastructure-insights
Specialty:
om
Last Updated:

環境

  • Data Infrastructure Insights(DII)

問題

  • DII通知ウェブフックでTest Webhookをクリックすると、HTTP 400 Bad Requestが返されます。
  • ウェブフックの設定が正しく見える場合や、ライブアラートの配信が正常に機能している場合でも、エラーが発生します。
  • PagerDuty、Slack、Microsoft Teams、およびその他のJSONウェブフック連携でよく見られます。

原因

  • DIIのTest Webhook機能は、エディタに書かれた通りにメッセージ本文を送信します。
  • Test Webhookは、デフォルトのアラートパラメータ(例:%%alertId%%%%severity%%%%triggeredOn%%)やカスタムシークレット(例:%%routingKey%%)の置き換えは行いません
  • サードパーティのエンドポイントは必須フィールドを検証し、プレースホルダーの値を拒否するため、結果としてHTTP 400になります。

解決策

  1. 置換値を必要とする統合では、Test Webhookを唯一の検証方法として使用しないでください。
  2. 手動でテストするには、メッセージ本文内のプレースホルダーを一時的に有効なリテラル値(有効な PagerDuty Integration Key、warning などの有効な重大度、空でないソース)に置き換えて、Test Webhookを実行し、保存する前にプレースホルダーを元に戻します。
  3. 本番環境での動作を検証するには、実際のモニターアラートをトリガーし、Admin > Notifications > WebhooksStatus 列と Last Reported 列を確認します。
  4. サポートされているパラメータとテンプレートの例については、DII Webhookドキュメントを参照してください。

パートナーノート

 

追加情報

内部情報

  • ケース番号2010762847に端を発する。
  • サポートと顧客は当初、Test Webhook 400 の応答を本番環境アラートの障害として解釈していました。

Sign in to view the entire content of this KB article.

New to NetApp?

Learn more about our award-winning Support

NetApp provides no representations or warranties regarding the accuracy or reliability or serviceability of any information or recommendations provided in this publication or with respect to any results that may be obtained by the use of the information or observance of any recommendations provided herein. The information in this document is distributed AS IS and the use of this information or the implementation of any recommendations or techniques herein is a customer's responsibility and depends on the customer's ability to evaluate and integrate them into the customer's operational environment. This document and the information contained herein may be used solely in connection with the NetApp products discussed in this document.