差分
このページの2つのバージョン間の差分を表示します。
両方とも前のリビジョン 前のリビジョン 次のリビジョン | 前のリビジョン | ||
ja:documentation:pandorafms:monitoring:06_web_monitoring [2024/05/28 09:09] – [ウェブの応答時間チェック] junichi | ja:documentation:pandorafms:monitoring:06_web_monitoring [2025/02/14 08:27] (現在) – [インストールと設定] junichi | ||
---|---|---|---|
行 51: | 行 51: | ||
</ | </ | ||
- | <WRAP center round info 60%>\\ | + | <WRAP center round info 60%> |
- | Pandora FMS has protection against [[https:// | + | |
- | '' | + | |
- | Please take this protection into account when considering the use of " | + | |
- | <WRAP center round info 60%>\\ | + | Pandora FMS has protection against CSRF and it may happen that web checks, when debugged, get this message: '' |
- | Pandora FMS は [[https:// | + | |
- | '' | + | </ |
- | [[: | + | |
+ | <WRAP center round info 60%> | ||
+ | |||
+ | Pandora FMS は [[https:// | ||
+ | [[: | ||
+ | |||
+ | </WRAP> | ||
+ | |||
+ | <wrap #ks1_3 /> | ||
==== ウェブモジュールの作成方法 ==== | ==== ウェブモジュールの作成方法 ==== | ||
行 163: | 行 168: | ||
==== ウェブの応答時間チェック ==== | ==== ウェブの応答時間チェック ==== | ||
- | ウェブの応答時間をチェックしたい場合は、モジュールタイプ | + | |
+ | To check the response time or latency of a web page, select the module type **Remote HTTP module to check latency**. Example: | ||
+ | |||
+ | ウェブの応答時間をチェックしたい場合は、モジュールタイプ | ||
< | < | ||
- | task_begin | + | task_begin |
- | get https:// | + | get https:// |
- | | + | task_end |
</ | </ | ||
行 177: | 行 185: | ||
* Web チェックでは、**Proxy URL** トークンでのプロキシの使用もサポートされています。 | * Web チェックでは、**Proxy URL** トークンでのプロキシの使用もサポートされています。 | ||
- | <WRAP center round tip 60%> | + | <WRAP center round tip 90%> |
- | ウェブサイトのダウンロード時間は、ブラウザで Web サイトを表示するのにかかる時間ではありません。通常、これはJavaScriptの読み込み時間に依存し、Goliat は JavaScriptをダウンロードしますが、実行しません。 | + | |
- | </WRAP> | + | |
- | ==== プロキシ経由でのウェブチェック ==== | + | The web download time **is not** the time it takes to display a website in a browser, as this is usually dependent on the JavaScript load time. |
- | ウェブチェックは、プロキシ経由でも行うことができます。プロキシを設定するには、// | + | |
- | 例えば、URL は次のようになります。 | + | </ |
- | http:// | + | <WRAP center round tip 90%> |
- | 認証が必要なプロキシの場合は、次のように '' | + | ウェブサイトのダウンロード時間は、ブラウザで Web サイトを表示するのにかかる時間ではありません。通常、これはJavaScriptの読み込み時間に依存し、JavaScriptをダウンロードしますが、実行しません。 |
- | + | ||
- | http:// | + | |
- | + | ||
- | {{ wiki: | + | |
- | + | ||
- | ==== Webコンテンツの取得 ==== | + | |
- | + | ||
- | Sometimes monitoring does not consist of finding out whether a specific Web site is working or how long it takes, but to get a real time value, such as the total number of modules registered in the same PFMS server [[: | + | |
- | + | ||
- | 特定の | + | |
- | + | ||
- | < | + | |
- | + | ||
- | task_begin | + | |
- | get http:// | + | |
- | get_content \d+ | + | |
- | task_end | + | |
- | + | ||
- | </ | + | |
- | + | ||
- | 出力は次のようになります。 | + | |
- | + | ||
- | {{ : | + | |
- | + | ||
- | It is also possible to specify a more complex regular expression for collecting data from more complex HTTP responses with the '' | + | |
- | + | ||
- | また、より複雑な HTTP 応答からのデータを収集するための正規表現を設定トークン '' | + | |
- | + | ||
- | < | + | |
- | task_begin | + | |
- | get https:// | + | |
- | get_content_advanced \(c\) ([\d]+) Pandora FMS\(tm\) </ | + | |
- | task_end | + | |
- | + | ||
- | </ | + | |
- | + | ||
- | {{ : | + | |
- | + | ||
- | {{ : | + | |
- | + | ||
- | <WRAP center round important 75%> | + | |
- | + | ||
- | * The part of the regular expression defined in '' | + | |
- | * If the text to be looked for contains parentheses, | + | |
</ | </ | ||
- | <WRAP center round important 75%> | ||
- | * '' | ||
- | * 検索するテキストにカッコが含まれている場合は、バックスラッシュ '' | ||
- | </ | ||
- | {{ : | ||
- | |||
- | To configure the thresholds that will trigger warning or critical status, use the module configuration to verify that the received string matches what is expected. | ||
- | |||
- | 警告または障害状態のしきい値を設定するには、モジュールの設定を使用して、受信した文字列が期待どおりのものであることを確認します。 | ||
==== ウェブページのフォームのチェック ==== | ==== ウェブページのフォームのチェック ==== | ||
行 309: | 行 261: | ||
{{ wiki: | {{ wiki: | ||
- | ==== WEB リクエストの動作 ==== | + | ==== サーバステータスコードの確認 ==== |
- | 拡張プロパティのフィールドは他のタイプのモジュールのフィールドと似ていますが、WEB チェックではいくつかの異なるフィールドがあります。 | + | |
- | **タイムアウト(Timeout)** | + | To check the server status code of a website, select the type of module <wrap :en>**Remote HTTP module to check server status code**</ |
- | これはリクエストのタイムアウトです。この時間を超えるとリクエストは破棄されます。 | + | ウェブサイトのサーバステータスコードを確認するには、モジュールの種類を選択します |
+ | < | ||
+ | task_begin | ||
+ | head https:// | ||
+ | task_end | ||
- | **エージェントブラウザID(Agent browser id)** | + | </ |
- | これは、特定のページが一部の Web ブラウザのみを受け入れる場合に使用する Web ブラウザの識別子です。(詳細は、https:// | + | * It is important to use the '' |
+ | * In server configuration, | ||
+ | * ステータス コードを取得するには、'' | ||
+ | * サーバ設定のセクション [[: | ||
- | **リクエスト(Requests)** | + | <wrap #ks1_7 /> |
- | + | ||
- | | + | |
- | + | ||
- | **リトライ(Retries)** | + | |
- | + | ||
- | 成功するまで **リクエスト(Request)** を実行する数です。例: | + | |
- | + | ||
- | * リトライ = 2、リクエスト = 1: 最初のテストに失敗すると、もう一度実行し、2回目で成功すると、正常と判断します。 | + | |
- | * リトライ = 1、リクエスト = 2: 2回のチェックを実行します。しかし一方の失敗で、障害と判断します。 | + | |
==== HTTP の簡単な認証 ==== | ==== HTTP の簡単な認証 ==== | ||
行 480: | 行 429: | ||
- | ==== HTTPS モニタリング ==== | ||
- | Goliat は HTTP と HTTPS の両方をチェックできます。 HTTPS を利用しているセキュリティで保護されたウェブサイトのチェックを行うには、その URL にプロトコルを組み込むだけです。 | ||
- | |||
- | < | ||
- | task_begin | ||
- | get https:// | ||
- | cookie 1 | ||
- | resource 0 | ||
- | check_string Google | ||
- | task_end | ||
- | </ | ||
==== 拡張オプション ==== | ==== 拡張オプション ==== | ||
行 502: | 行 440: | ||
| | ||
</ | </ | ||
+ | |||
+ | <wrap #ks1_8_2 /> | ||
=== ウェブチェックのデバッグ === | === ウェブチェックのデバッグ === | ||
行 530: | 行 470: | ||
[[ja: | [[ja: | ||
+ | |||
+ | ===== (OBSOLETE) ===== | ||
+ | |||
+ | ==== プロキシ経由でのウェブチェック ==== | ||
+ | ウェブチェックは、プロキシ経由でも行うことができます。プロキシを設定するには、// | ||
+ | |||
+ | 例えば、URL は次のようになります。 | ||
+ | |||
+ | http:// | ||
+ | |||
+ | 認証が必要なプロキシの場合は、次のように '' | ||
+ | |||
+ | http:// | ||
+ | |||
+ | {{ wiki: | ||
+ | |||
+ | ==== Webコンテンツの取得 ==== | ||
+ | |||
+ | Sometimes monitoring does not consist of finding out whether a specific Web site is working or how long it takes, but to get a real time value, such as the total number of modules registered in the same PFMS server [[: | ||
+ | |||
+ | 特定の Web サイトが稼動しているか、どれくらい時間がかかっているかを知りたいわけではなく、[[: | ||
+ | |||
+ | < | ||
+ | |||
+ | task_begin | ||
+ | get http:// | ||
+ | get_content \d+ | ||
+ | task_end | ||
+ | |||
+ | </ | ||
+ | |||
+ | 出力は次のようになります。 | ||
+ | |||
+ | {{ : | ||
+ | |||
+ | It is also possible to specify a more complex regular expression for collecting data from more complex HTTP responses with the '' | ||
+ | |||
+ | また、より複雑な HTTP 応答からのデータを収集するための正規表現を設定トークン '' | ||
+ | |||
+ | < | ||
+ | task_begin | ||
+ | get https:// | ||
+ | get_content_advanced \(c\) ([\d]+) Pandora FMS\(tm\) </ | ||
+ | task_end | ||
+ | |||
+ | </ | ||
+ | |||
+ | {{ : | ||
+ | |||
+ | {{ : | ||
+ | |||
+ | <WRAP center round important 75%> | ||
+ | |||
+ | * The part of the regular expression defined in '' | ||
+ | * If the text to be looked for contains parentheses, | ||
+ | |||
+ | </ | ||
+ | |||
+ | <WRAP center round important 75%> | ||
+ | * '' | ||
+ | * 検索するテキストにカッコが含まれている場合は、バックスラッシュ '' | ||
+ | </ | ||
+ | |||
+ | {{ : | ||
+ | |||
+ | To configure the thresholds that will trigger warning or critical status, use the module configuration to verify that the received string matches what is expected. | ||
+ | |||
+ | 警告または障害状態のしきい値を設定するには、モジュールの設定を使用して、受信した文字列が期待どおりのものであることを確認します。 | ||
+ | |||
+ | ==== WEB リクエストの動作 ==== | ||
+ | 拡張プロパティのフィールドは他のタイプのモジュールのフィールドと似ていますが、WEB チェックではいくつかの異なるフィールドがあります。 | ||
+ | |||
+ | **タイムアウト(Timeout)** | ||
+ | |||
+ | これはリクエストのタイムアウトです。この時間を超えるとリクエストは破棄されます。 | ||
+ | |||
+ | |||
+ | **エージェントブラウザID(Agent browser id)** | ||
+ | |||
+ | | ||
+ | |||
+ | |||
+ | **リクエスト(Requests)** | ||
+ | |||
+ | | ||
+ | |||
+ | **リトライ(Retries)** | ||
+ | |||
+ | 成功するまで **リクエスト(Request)** を実行する数です。例: | ||
+ | |||
+ | * リトライ = 2、リクエスト = 1: 最初のテストに失敗すると、もう一度実行し、2回目で成功すると、正常と判断します。 | ||
+ | * リトライ = 1、リクエスト = 2: 2回のチェックを実行します。しかし一方の失敗で、障害と判断します。 | ||
+ | |||
+ | ==== HTTPS モニタリング ==== | ||
+ | Goliat は HTTP と HTTPS の両方をチェックできます。 HTTPS を利用しているセキュリティで保護されたウェブサイトのチェックを行うには、その URL にプロトコルを組み込むだけです。 | ||
+ | |||
+ | < | ||
+ | task_begin | ||
+ | get https:// | ||
+ | cookie 1 | ||
+ | resource 0 | ||
+ | check_string Google | ||
+ | task_end | ||
+ | </ | ||