差分
このページの2つのバージョン間の差分を表示します。
両方とも前のリビジョン 前のリビジョン 次のリビジョン | 前のリビジョン | ||
ja:documentation:pandorafms:monitoring:06_web_monitoring [2024/07/19 22:39] – [Webコンテンツの取得] 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 /> | ||
==== ウェブモジュールの作成方法 ==== | ==== ウェブモジュールの作成方法 ==== | ||
行 256: | 行 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 の簡単な認証 ==== | ||
行 427: | 行 429: | ||
- | ==== HTTPS モニタリング ==== | ||
- | Goliat は HTTP と HTTPS の両方をチェックできます。 HTTPS を利用しているセキュリティで保護されたウェブサイトのチェックを行うには、その URL にプロトコルを組み込むだけです。 | ||
- | |||
- | < | ||
- | task_begin | ||
- | get https:// | ||
- | cookie 1 | ||
- | resource 0 | ||
- | check_string Google | ||
- | task_end | ||
- | </ | ||
==== 拡張オプション ==== | ==== 拡張オプション ==== | ||
行 449: | 行 440: | ||
| | ||
</ | </ | ||
+ | |||
+ | <wrap #ks1_8_2 /> | ||
=== ウェブチェックのデバッグ === | === ウェブチェックのデバッグ === | ||
行 492: | 行 485: | ||
{{ wiki: | {{ 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 | ||
+ | </ | ||