ja:documentation:pandorafms:monitoring:05_virtual_environment_monitoring

差分

このページの2つのバージョン間の差分を表示します。

この比較画面へのリンク

両方とも前のリビジョン 前のリビジョン
ja:documentation:pandorafms:monitoring:05_virtual_environment_monitoring [2026/01/17 00:46] – [XenServer] junichija:documentation:pandorafms:monitoring:05_virtual_environment_monitoring [2026/01/17 00:47] (現在) junichi
行 997: 行 997:
  
 XenServer 用の DISCO パッケージの使用方法については、[[:ja:documentation:pandorafms:monitoring:17_discovery_2#ks4|PFMS 自動検出]] を参照してください。 XenServer 用の DISCO パッケージの使用方法については、[[:ja:documentation:pandorafms:monitoring:17_discovery_2#ks4|PFMS 自動検出]] を参照してください。
- 
-==== XenServer プラグインの動作 ==== 
- 
-The Pandora FMS plugin for monitoring Xen environments is written in Python. Use XenAPI to retrieve all necessary information. Allows monitoring of the following types of elements: 
- 
-Xen 環境監視のための Pandora FMS プラグインは、Python で書かれています。 必要な情報をすべて取得するには、XenAPI を使用します。 これにより、次のタイプの要素の監視が可能になります。 
- 
-   * Virtualized systems in Xen. 
-   * Storage resources. 
-   * Own XenServer 6.5 and 7.2 (host). 
- 
-  * Xen 内の仮想化システム 
-  * ストレージリソース 
-  * XenServer 6.5 および 7.2 自身(ホスト) 
- 
-==== プラグインに必要なもの ==== 
- 
-It is essential that the system that runs the plugin has the following requirements: 
- 
-プラグインを実行するシステムには次のものが必要です。 
- 
-   * Python installed 
-   * Installed Python libraries: XenAPI et xmltodict. 
-   * Access to your XenServer API (web, enable traffic from the computer running the plugin to port 443 or 80 of the XenServer). 
-   * It is recommended that virtual machines have Xen Server Tools installed, as the information available otherwise is quite limited. 
- 
-  * Python のインストール 
-  * 次の Python ライブラリのインストール: XenAPI, xmltodict 
-  * XenServer API へのアクセス (プラグインを実行するマシンから、XenServer へのポート 443 または 80 での接続許可) 
-  * 利用できる情報が多いため、仮想マシンには Xen Server Tools のインストールを推奨します。 
- 
-==== プラグインのインストール ==== 
- 
-Pandora FMS の XenServer プラグインを、[[https://library.pandorafms.com/index.php?sec = Library&sec2 = repository&lng = en&action = view_PUI&id_PUI = 634|モジュールライブラリ]] からダウンロードします。 
- 
-実行環境のマシン(Windows または Linux)で、Pandora FMS エージェントまたはシステム cron を使用して実行できるディレクトリにファイルを展開します。 
- 
-==== プラグイン設定 ==== 
- 
-Configuration available for the Pandora FMS plugin for Xen: 
- 
-Xen 用の Pandora FMS プラグイン設定は以下の通りです。 
- 
-//Configuration block// ''[CONF]'' 
- 
-//設定ブロック// ''[CONF]'' 
- 
-   * **xen_server_ip: **IP address/FQDN of the Xen server. 
-   * **user: **User with query permissions on the Xen API. 
-   * **password: **User password 
-   * **temporary: **Temporary working directory 
- 
-   * **xen_server_ip**: Xen Server の IP/FQDN アドレス 
-   * **user**: Xen API に対してクエリを出せるユーザ 
-   * **password**: ユーザのパスワード 
-   * **temporary**: テンポラリディレクトリ 
- 
-//Configuration Block// ''[PANDORA]'' 
- 
-//設定ブロック// ''[PANDORA]'' 
- 
-   * **tentacle_client: **Location of the Tentacle client binary. 
-   * **tentacle_ip: **IP address where the Tentacle service is listening. 
-   * **tentacle_port: **Port where the Tentacle service is listening. 
-   * **logfile: **Full path to the log file. 
-   * **interval: **Interval of the generated agents. 
-   * **group: **Group assigned to the generated agents. 
- 
-   * **tentacle_client**: Tentacle クライアントの実行ファイルの場所 
-   * **tentacle_ip**: Tentacle の接続先 IP アドレス 
-   * **tentacle_port**: Tentacle の接続先ポート 
-   * **logfile**: ログファイルのパス 
-   * **interval**: 生成したエージェントの間隔 
-   * **group**: 生成したエージェントに割り当てるグループ 
- 
-//Configuration block// ''[TUNNING]'' 
- 
-//設定ブロック// ''[TUNNING]'' 
- 
-   * **time_adjustment: **Parameter that allows the adjustment of possible time differences between the computer running the plugin and the Xen server. (default=10, measured in seconds) 
-   * **scan_vm_ip: **Parameter that allows you to define whether the plugin will try to obtain the IP addresses of the VMs from the Xen server. Only the IP addresses of those VMs with XenTools installed can be taken. It can be enabled (scan_vm_ip=true) or disabled (scan_vm_ip=false). If not specified, it is considered enabled. 
- 
-   * **time_adjustment**: プラグインを実行しているコンピュータと Xen server との間で許容可能な時間差を調整するパラメータ。(デフォルト = 10, 秒単位) 
-   * **scan_vm_ip**: プラグインが Xen サーバーの VM の IP を取得するかどうかを定義するパラメータ。XenTools がインストールされた VM の IP のみ取得できます。有効化(scan_vm_ip = true)または、無効化(scan_vm_ip = false)の設定ができます。設定されていない場合は、有効になります。 
- 
-//Configuration block// ''[RENAME]'' 
- 
-//設定ブロック// ''[RENAME]'' 
- 
-   * **xen_element_name = pandora_agent_name: **In this block you can define as many entries as you want with this format. Allows you to change the names of the Xen Server elements to different ones to be used as agent names in Pandora FMS. VMs, SRs and the Xen Server itself can be renamed. 
- 
-   * **xen_element_name=pandora_agent_name**: このブロックでは、以下のフォーマットで多くのエントリーを定義できます。XenServer 要素の名前を Pandora で使われるエージェント名に変更することができます。VMs、SR、Xen Server 自身を変更することができ、以下に例を示します。 
-<code> 
- 
- [RENAME] 
- example-xen-server = Example Xen Server 
- Example Xen Server 2 = example-xen-server-2 
- example-vm = Example VM 
- Example VM 2 = example-vm-2 
- example-sr = Example SR 
- Example SR 2 = example-sr-2 
- 
-</code> 
- 
-名前にスペースが含まれていても、クオートでくくる必要はありません。 
- 
-==== プラグインの実行 ==== 
- 
-You can schedule the plugin to run from any Pandora FMS agent, adding the following to its configuration: 
- 
-Pandora FMS エージェントの設定に以下を追加することによって、プラグインの実行ができます。 
- 
-<code> 
- 
-module_plugin python "<path>\xen-plugin.py" "<path>\xen-plugin.conf" 
- 
-</code> 
- 
-To schedule it through the system cron you can add the following line to ''/etc/crontab'': 
- 
-システムの cron で設定する場合は、''/etc/crontab'' に以下を追加します。 
- 
-<code> 
-/5 * * * * root python "<path>\xen-plugin.py" "<path>\xen-plugin.conf"> /dev/null 2>&1 
- 
-</code> 
- 
-If you run the plugin manually the output should look like this: 
- 
-プラグインを手動実行すると、出力は以下のようになります。 
- 
-<code> 
-python "<path>\xen-plugin.py" "<path>\xen-plugin.conf" 
-<module> 
-<name><![CDATA[XenServer Plugin]]></name> 
-<type><![CDATA[async_string]]></type> 
-<description><![CDATA[Result of XenServer Plugin execution]]></description> 
-<data><![CDATA[OK]]></data> 
-</module> 
- 
-</code> 
- 
  
  
  • ja/documentation/pandorafms/monitoring/05_virtual_environment_monitoring.txt
  • 最終更新: 2026/01/17 00:47
  • by junichi