差分
このページの2つのバージョン間の差分を表示します。
両方とも前のリビジョン 前のリビジョン 次のリビジョン | 前のリビジョン | ||
ja:documentation:pandorafms:monitoring:05_virtual_environment_monitoring [2024/04/10 08:41] – [プラグイン設定] junichi | ja:documentation:pandorafms:monitoring:05_virtual_environment_monitoring [2025/07/11 07:29] (現在) – [複数のエンドポイントでのモニタリング負荷の分散] junichi | ||
---|---|---|---|
行 59: | 行 59: | ||
自動検出スクリプトは、RHEV 仮想環境のそれぞれの Pandora FMS エージェントの値を更新します。これらの値は、RHEV View 拡張で状態を正しく表示したり、RHEV Manager 拡張で仮想マシンを正しく管理するために必要な値です。 | 自動検出スクリプトは、RHEV 仮想環境のそれぞれの Pandora FMS エージェントの値を更新します。これらの値は、RHEV View 拡張で状態を正しく表示したり、RHEV Manager 拡張で仮想マシンを正しく管理するために必要な値です。 | ||
- | ==== インストール要件 ==== | + | ==== RHEV プラグインのインストール要件 ==== |
+ | |||
+ | The Agent plugin requires the following software: | ||
エージェントプラグインは、次のソフトウエアが必要です。 | エージェントプラグインは、次のソフトウエアが必要です。 | ||
- | * curl | + | |
- | * perl-XML-Simple | + | |
- | * Pandora FMS ソフトウエアエージェント | + | * [[: |
- | * tentacle_client (ファイルの送信に tentacle を利用したい場合。tentacle_client は、Pandora FMS ソフトウエアエージェントと共に配布されています。) | + | |
+ | * **curl** | ||
+ | * **perl-XML-Simple** | ||
+ | * [[: | ||
=== Red Hat === | === Red Hat === | ||
行 165: | 行 171: | ||
==== RHEV 仮想アーキテクチャのモニタリング ==== | ==== RHEV 仮想アーキテクチャのモニタリング ==== | ||
- | プラグインの実行結果を見るには、**モニタリング(Monitoring)** > | + | To see the result of running the Agent plugin go to **Operation** → **Monitoring** |
- | + | ||
- | [[: | + | |
- | + | ||
- | 見ての通り、プラグインが Pandora FMS 内に、RHEV アーキテクチャで検出したエンティティごとに一つのエージェントを作成しています。 | + | |
- | + | ||
- | [[: | + | |
- | + | ||
- | エージェント名をクリックすると、プラグインにより作成されたモジュールを見ることができます。加えて、エージェントに関連したその他データを次のように見ることができます。 | + | |
- | + | ||
- | [[: | + | |
- | + | ||
- | それぞれのエンティティで、それぞれ重要な情報をモニタリングするための複数のモジュールが自動的に作成されます。 | + | |
- | [[: | + | プラグインの実行結果を見るには、**操作(Operation)** → **モニタリング(Monitoring)** → **表示(Views)** → **エージェント詳細(Agent Detail)** |
- | 仮想マシンではなくホストに関連づけられたエージェントを選択した場合は、モニタリングモジュールは異なります。 | + | The plugin creates an Agent in Pandora FMS for each of the entities detected in the discovery of the RHEV architecture. For each type of entity, a series of specific Modules are automatically created, monitoring the important information of each of them. |
- | RHEV プラグインは、仮想アーキテクチャ内で発生したイベントもモニタリングできます。プラグインは、次の画面のように、それぞれのエージェントにイベントをモニタするモジュールを作成します。 | + | このプラグインは、RHEV アーキテクチャの検出で検出されたエンティティごとに Pandora FMS にエージェントを作成します。 |
- | [[: | + | If the selected Agent corresponded to a Host instead of a Virtual Machine, the monitoring modules would be different. |
- | イベントに基づいたこれらのモジュールのデータは、イベントが発生した時間とイベントの説明です。以下にデータの例を示します。 | + | 選択したエージェントが仮想マシンではなくホストに対応する場合、監視モジュールは異なります。 |
- | [[: | + | The RHEV plugin also monitors events that occur within the virtual architecture. The plugin will create a Module for each monitored event within each affected entity. The data for Modules created from events is event data: event time, event description. |
- | RHEV アーキテクチャに関連したエージェントおよびモジュールに加え、プラグインを実行するエージェントで生成されたモジュールもあります。このモジュールは、デフォルトでは**RHEV Plugin** | + | RHEV プラグインは、仮想アーキテクチャ内で発生するイベントも監視します。 |
- | [[: | + | In addition to the Agents and Modules related to the RHEV architecture itself, a Module called, by default **RHEV Plugin**, is generated in the Agent that executes the plugin. |
- | このプラグインの内容はプラグインの実行結果であり、実行が正常にできた場合は // | + | RHEV アーキテクチャ自体に関連するエージェントとモジュールに加えて、プラグインを実行するエージェント内に、デフォルトで **RHEV Plugin** と呼ばれるモジュールが生成されます。 |
=== エンティティ状態のモニタリング === | === エンティティ状態のモニタリング === | ||
行 302: | 行 296: | ||
=== RHEV View および RHEV Manager 拡張のインストール === | === RHEV View および RHEV Manager 拡張のインストール === | ||
- | 拡張のインストールは、extensions フォルダの中身をコピーするだけです。つぎのようなコマンドで、プラグインを展開したものを Pandora FMS コンソールの | + | To install the extensions you simply have to copy the contents of the '' |
+ | |||
+ | 拡張のインストールは、'' | ||
< | < | ||
行 308: | 行 305: | ||
</ | </ | ||
+ | |||
+ | From that moment on, RHEV monitoring extensions will be available. | ||
これで、RHEV モニタリング拡張が使えるようになります。 | これで、RHEV モニタリング拡張が使えるようになります。 | ||
行 408: | 行 407: | ||
</ | </ | ||
- | 2つ目のセクションは、**Rename** | + | The second section has **Rename** as a token and is used to change the names of the entities monitored through the plugin. This functionality is very useful if you want to combine the monitoring of EndPoint with data extracted from the API in the Pandora FMS Agent itself. The configuration of this section is done by putting the old name first and then the new one separated by a space; For example: |
+ | |||
+ | 2つ目のセクションは、**Rename** | ||
< | < | ||
行 497: | 行 498: | ||
このセクションを定義しないと、イベントモニタリングは動作しません。 | このセクションを定義しないと、イベントモニタリングは動作しません。 | ||
- | === 複数のソフトウエアエージェントでのモニタリング負荷の分散 === | + | === 複数のエンドポイントでのモニタリング負荷の分散 === |
設定ファイルを通して、RHEV 仮想環境のモニタリング負荷を分散することができます。 | 設定ファイルを通して、RHEV 仮想環境のモニタリング負荷を分散することができます。 | ||
行 530: | 行 531: | ||
</ | </ | ||
- | 負荷を分散する方法として、一つのデータセンタをそれぞれ違うエージェントに割り当てます。そのためには、エンティティを除外する機能 (**Reject** | + | One way to divide the load would be to assign a Datacenter to each of the EndPoint; to do this we would use the functionality to discard entities to be monitored (// |
+ | |||
+ | 負荷を分散する方法として、一つのデータセンタをそれぞれ違うエンドポイントに割り当てます。そのためには、エンティティを除外する機能 (**Reject** | ||
+ | |||
+ | The first EndPoint monitors the DC1 Datacenter and discards the DC2 entities. | ||
+ | |||
+ | 最初のエンドポイントはデータセンター DC1 のみをモニタし、DC2 のエンティティは除外します。 | ||
- | 最初のエージェントはデータセンター DC1 のみをモニタし、DC2 のエンティティは除外します。 | ||
< | < | ||
行 548: | 行 554: | ||
</ | </ | ||
- | 2つ目のソフトウエアエージェントは、データセンター DC2 をモニタし、DC1 は除外します。 | + | The second EndPoint monitors the DC2 Datacenter and discards the DC1 entities. |
+ | |||
+ | 2つ目のエンドポイントは、データセンター DC2 をモニタし、DC1 は除外します。 | ||
< | < | ||
行 566: | 行 574: | ||
また、クラスタをベースに負荷を分散することもできます。例えば、4つのソフトウエアエージェントがあり、それぞれ異なるクラスタをモニタします。 | また、クラスタをベースに負荷を分散することもできます。例えば、4つのソフトウエアエージェントがあり、それぞれ異なるクラスタをモニタします。 | ||
- | ソフトウエアエージェント1 ではクラスタ 1.1 をモニタし、他のエンティティを除外します。 | + | EndPoint 1, monitor '' |
+ | |||
+ | エンドポイント 1 ではクラスタ 1.1 をモニタし、他のエンティティを除外します。 | ||
< | < | ||
行 587: | 行 597: | ||
</ | </ | ||
- | ソフトウエアエージェント2 ではクラスタ 1.2 をモニタし、他のエンティティを除外します。 | + | EndPoint 2, monitor '' |
+ | |||
+ | エンドポイント 2 ではクラスタ 1.2 をモニタし、他のエンティティを除外します。 | ||
< | < | ||
行 608: | 行 620: | ||
</ | </ | ||
- | ソフトウエアエージェント3ではクラスタ 2.1 をモニタし、他のエンティティを除外します。 | + | EndPoint 3, monitor '' |
+ | |||
+ | エンドポイント 3ではクラスタ 2.1 をモニタし、他のエンティティを除外します。 | ||
< | < | ||
行 629: | 行 643: | ||
</ | </ | ||
- | ソフトウエアエージェント4ではクラスタ 2.2 をモニタし、他のエンティティを除外します。 | + | EndPoint 4, monitoring '' |
+ | |||
+ | エンドポイント 4ではクラスタ 2.2 をモニタし、他のエンティティを除外します。 | ||
< | < | ||
行 650: | 行 666: | ||
</ | </ | ||
- | エンティティの除外設定はとても柔軟で、それぞれのソフトウエアエージェントで複数のエンティティのモニタリング負荷を分散させることができます。 | + | The configuration of discarded entities is totally flexible and the load could be divided by assigning several entities to each EndPoint. |
+ | |||
+ | エンティティの除外設定はとても柔軟で、それぞれのエンドポイントで複数のエンティティのモニタリング負荷を分散させることができます。 | ||
=== 設定ファイル例 === | === 設定ファイル例 === | ||
行 1483: | 行 1501: | ||
==== プラグインのインストール ==== | ==== プラグインのインストール ==== | ||
- | Pandora FMS プラグインは、[[https:// | + | Download a copy of the Pandora FMS plugin for **HPVM HP Virtualization Manager monitoring** from the [[https:// |
+ | |||
+ | Pandora FMS プラグインは、[[https:// | ||
- | 実行できる場所に展開します。 | ||
< | < | ||
行 1494: | 行 1513: | ||
==== プラグイン設定 ==== | ==== プラグイン設定 ==== | ||
- | HPVM 用の Pandora FMS プラグインの設定は以下の通りです。 | + | |
=== Pandora サーバとの通信設定 === | === Pandora サーバとの通信設定 === | ||
- | **mode** | + | |
+ | * **tentacle_ip**: | ||
+ | * **tentacle_port**: | ||
+ | * **tentacle_opts**: | ||
+ | * **tentacle_client**: | ||
+ | * **temp**: Temporary working directory. | ||
+ | * **local_folder**: | ||
- | データ転送モード。" | + | * **mode**: |
- | + | * **tentacle_ip**: Pandora サーバの IP アドレス。データ転送モードが tentacle の場合のみ。 | |
- | **tentacle_ip** | + | * **tentacle_port**: Tentacle サーバのポート |
- | + | * **tentacle_opts**: Tentacle の拡張オプション | |
- | Pandora サーバの IP アドレス。データ転送モードが tentacle の場合のみ。 | + | * **tentacle_client**: Tentacle クライアントのパス |
- | + | * **temp**: テンポラリディレクトリ | |
- | **tentacle_port** | + | * **local_folder**: データ転送モードが " |
- | + | ||
- | Tentacle サーバのポート | + | |
- | + | ||
- | **tentacle_opts** | + | |
- | + | ||
- | Tentacle の拡張オプション | + | |
- | + | ||
- | **tentacle_client** | + | |
- | + | ||
- | Tentacle クライアントのパス | + | |
- | + | ||
- | **temp** | + | |
- | + | ||
- | テンポラリディレクトリ | + | |
- | + | ||
- | **local_folder** | + | |
- | + | ||
- | データ転送モードが " | + | |
=== エージェント設定 === | === エージェント設定 === | ||
- | **agent_name** | + | * **agent_name**: Optional, indicate a name for the parent Agent, by default '' |
- | + | | |
- | オプション。エージェント名を設定します。デフォルトは | + | |
- | + | ||
- | **agent_interval** | + | |
- | + | ||
- | エージェント間隔。デフォルトは | + | |
- | + | ||
- | **agent_group** | + | |
- | エージェントグループ。デフォルトは HPVM。 | + | * **agent_name**: |
+ | * **agent_interval**: | ||
+ | * **agent_group**: | ||
=== モジュールカスタマイズ === | === モジュールカスタマイズ === | ||
- | **module_group** | + | * **module_group**: Module Group. |
- | + | | |
- | モジュールグループ。 | + | |
- | + | ||
- | **module_interval** | + | |
- | + | ||
- | モジュールの間隔(倍率)。デフォルトは | + | |
- | + | ||
- | **module_tags** | + | |
- | モジュールのタグ | + | * **module_group**: |
+ | * **module_interval**: | ||
+ | * **module_tags**: | ||
==== プラグインの実行 ==== | ==== プラグインの実行 ==== | ||
行 1570: | 行 1569: | ||
</ | </ | ||
- | ==== プラグインの実行結果 ==== | ||
- | |||
- | プラグインで生成されるモジュールの一覧を要素ごとに示します。 | ||
- | |||
- | **サーバーエージェント** | ||
- | |||
- | * //Available VMs// | ||
- | * //HPVM Plugin// | ||
- | * //HPVM Service// | ||
- | * //HPVM Service CPU usage// | ||
- | * //HPVM Service RAM usage// | ||
- | * // | ||
- | * //hpvmapp CPU usage// | ||
- | * //hpvmapp RAM usage// | ||
- | **仮想マシン** | ||
- | * // | ||
- | * // | ||
- | * //CPU usage// | ||
- | * // | ||
- | * // | ||
- | * // | ||
- | * // | ||
- | * // | ||
- | * //Host RAM available// | ||
- | * //Host RAM free// | ||
- | * // | ||
- | * //memory total// | ||
- | * // | ||
- | * // | ||
- | * //run_pid// | ||
- | * // | ||
- | * // | ||
- | * //uuid// | ||
- | * // | ||
- | * // | ||
- | * // | ||
- | * // | ||
- | * // | ||
- | * // | ||
- | * // | ||
[[: | [[: | ||