> For the complete documentation index, see [llms.txt](https://docs.scepman.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.scepman.com/ja/azure-gou-cheng/health-check.md).

# ヘルス チェック

SCEPman の状態を監視するには

* その [Azure App Services の Health check 機能](#health-check-in-azure-app-services) （推奨）または
* 1つの [サードパーティの監視ツール](/ja/azure-gou-cheng/health-check/using-3rd-party-monitoring.md).

## Azure App Services の Health Check

{% hint style="info" %}
新しい SCEPman のインストールでは、SCEPman 2.11 以降、インストール時に Health Check が自動的に追加されます。それ以前に SCEPman をインストールしている場合は、以下の手順に従ってヘルスチェックを手動で追加できます。
{% endhint %}

App Service のヘルスチェック機能とそれに対応するアラートを構成すると、SCEPman インスタンスが応答しなくなった場合に直接通知を受け取れます。

### ヘルス チェックを構成

1. 次に、 **App Service** 左側で下にスクロールして **ヘルスチェック**
2. これで **有効にする** ヘルスチェックのプローブ先として **パス** 次を入力します： **/probe**
3. これで次をクリックできます **保存**、ただし次の点に注意してください **これにより App Service が再起動されます**

![ヘルスチェックを有効にする](https://114237723-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LoGejQeUQcw7lqnQ3WX%2Fuploads%2Fgit-blob-3c837746f832366bfd5abc27e41eba5ebe0f2cbe%2F2022-12-27%2013_04_05.png?alt=media)

### アラートの構成

ヘルスチェックからアラートを受け取るには、App Service でアラート ルールを構成する必要があります。

1. 次に、 **App Service** 左側で下にスクロールして **アラート**
2. 次をクリックします **アラート ルールの作成**
3. 新しいアラート ルールでは、自動的に次へリダイレクトされます **条件の追加**
4. シグナル ロジックを選択します。次を検索します **ヘルスチェックの状態**

![アラート ルールの作成](https://114237723-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LoGejQeUQcw7lqnQ3WX%2Fuploads%2Fgit-blob-76f2206998eb07b7e055761bf29c5daf79fcc287%2F2022-12-27%2012_13_22.png?alt=media)

5. アラートを以下のように構成します：

| **しきい値**      | Static |
| ------------- | ------ |
| **集計の種類**     | 平均     |
| **演算子**       | 次より小さい |
| **単位**        | 件数     |
| **しきい値**      | 70     |
| **次の間隔でチェック** | 5 分    |
| **ルックバック期間**  | 15 分   |

<figure><img src="https://114237723-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LoGejQeUQcw7lqnQ3WX%2Fuploads%2FUQoISWcPXg3UxxSwjuWK%2Fimage.png?alt=media&amp;token=0ba717a9-c5c7-46d4-88d9-77b345c888b1" alt=""><figcaption><p>アラート ルールの条件</p></figcaption></figure>

6. 次をクリックします **次へ: アクション**
7. もう一度 **アクション グループの作成**

{% hint style="info" %}
既存のアクション グループがある場合は、 **アクション グループの選択**を選択し、アクション グループを選んで手順 14 に進みます。
{% endhint %}

8. を定義 **アクション グループ名** および **表示名**

![アクション グループの作成](https://114237723-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LoGejQeUQcw7lqnQ3WX%2Fuploads%2Fgit-blob-90be8a37b636d9eee8dc7d1d3a55a909ea3777c3%2F2022-12-27%2012_29_38.png?alt=media)

9. の横に **通知** を追加します **通知の種類**
10. ウィンドウで、 **メールアドレス** チェックボックスをオンにし、通知を受け取りたいメール アドレスを入力します
11. 次に **OK**
12. 次を入力します **名前** 通知の種類として

![通知をアクション グループに設定](https://114237723-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LoGejQeUQcw7lqnQ3WX%2Fuploads%2Fgit-blob-2aad32a044ba452b06fd95efb534f960269f509a%2Fscreen-shot-2021-01-19-at-11.11.40.png?alt=media)

13. その後、次をクリックできます **確認 + 作成** そして次に **作成。** 次へ戻ります **アクション** アラート ルールの作成で
14. D の隣に**詳細**、以下を構成します
    * **リソース グループ**
    * **重大度**
    * **アラート ルール名**
    * 有効化: **作成時に有効化**
    * 有効化: **アラートを自動的に解決**

<figure><img src="https://114237723-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LoGejQeUQcw7lqnQ3WX%2Fuploads%2FV30enHQO0XCTeiJbw7SJ%2F2023-10-23%2013_51_20-Create%20an%20alert%20rule.png?alt=media&amp;token=51b6d634-9664-4fd8-839d-337060f1ce5e" alt=""><figcaption><p>アラートの詳細</p></figcaption></figure>

15. 次をクリックします **確認と作成,** その後 **作成**

<figure><img src="https://114237723-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LoGejQeUQcw7lqnQ3WX%2Fuploads%2FMlLdeqIoA2IqarutyTqZ%2F2023-10-23%2013_55_02-Create%20an%20alert%20rule.png?alt=media&amp;token=dc8e6678-85f6-439a-9228-bbbe8b5b5f22" alt=""><figcaption></figcaption></figure>

16. 既存の **アラート ルールを表示** として表示されます

![既存のアラート ルールを表示](https://114237723-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LoGejQeUQcw7lqnQ3WX%2Fuploads%2Fgit-blob-334e32bdfdaa0de830345007109837ecf0be9814%2F2022-12-27%2012_46_42.png?alt=media)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.scepman.com/ja/azure-gou-cheng/health-check.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
