HTTP 応答コードチェック

  • リリースバージョン: Xanadu
  • 更新日 2024年08月01日
  • 所要時間:1分
  • エージェントクライアントコレクター は、HTTP 応答コードに次の追加チェックを提供します。このチェックはどのポリシーにも関連付けられていません。

    表 : 1. HTTP 応答コードチェック
    タイプ 名前 説明 使用方法と使用例 出力
    イベント util.check-http-response-code URL 応答コードが正規表現と一致しない場合は、重大なイベントを発生させます。

    セキュアなパラメーターを使用して認証情報 (ユーザー名とパスワード) を渡します。

    -u, --url  URL needs to be updated in the Monitoring HTTP Entrypoint/cmdb_ci_endpoint_http_list.do for the CI
    -r, --response-code  Regex string to match the response code. Otherwise, a critical event is raised. Default: 200
    -f, --follow_redirects Follows redirect URLs
    

    使用例:command: check-response-code.rb -u 'https://servicenow.com/jp/' -r 2.. -f

    CheckResponseCode OK : URL is in OK state. HTTP Response code is 200, matches regex