差分
このページの2つのバージョン間の差分を表示します。
| 両方とも前のリビジョン 前のリビジョン 次のリビジョン | 前のリビジョン | ||
| ja:documentation:pandorafms:technical_reference:11_pfms_plugis [2024/12/21 23:07] – [XML ヘッダ例] junichi | ja:documentation:pandorafms:technical_reference:11_pfms_plugis [2026/05/09 23:26] (現在) – [プラグインのコンパイル] junichi | ||
|---|---|---|---|
| 行 3: | 行 3: | ||
| {{indexmenu_n> | {{indexmenu_n> | ||
| - | [[: | + | [[: |
| + | |||
| + | <wrap #ks1 /> | ||
| ===== 概要 ===== | ===== 概要 ===== | ||
| 行 10: | 行 12: | ||
| このプラグイン開発ガイドには、独自のプラグインを作成したいユーザ向けのドキュメントが含まれています。 このドキュメントを使用して、ビジネスニーズを解決するプラグインを作成する方法を学習してください。 | このプラグイン開発ガイドには、独自のプラグインを作成したいユーザ向けのドキュメントが含まれています。 このドキュメントを使用して、ビジネスニーズを解決するプラグインを作成する方法を学習してください。 | ||
| + | |||
| + | <wrap #ks2 /> | ||
| ===== プラグインとは? | ===== プラグインとは? | ||
| 行 16: | 行 20: | ||
| プラグインとも呼ばれるコンピュータアドオンは、別のアプリケーション (この場合は Pandora FMS) の機能を拡張できるようにするアプリケーションです。 | プラグインとも呼ばれるコンピュータアドオンは、別のアプリケーション (この場合は Pandora FMS) の機能を拡張できるようにするアプリケーションです。 | ||
| + | |||
| + | <wrap #ks3 /> | ||
| ===== プラグインはなぜ便利なのか? | ===== プラグインはなぜ便利なのか? | ||
| 行 34: | 行 40: | ||
| ほとんどのプラグインは、Pandora FMS の外部サービスから収集されたデータまたはパフォーマンス統計を表示できるようにするのに便利です。 | ほとんどのプラグインは、Pandora FMS の外部サービスから収集されたデータまたはパフォーマンス統計を表示できるようにするのに便利です。 | ||
| + | |||
| + | <wrap #ks4 /> | ||
| ===== Pandora FMS におけるプラグインタイプ ===== | ===== Pandora FMS におけるプラグインタイプ ===== | ||
| 行 41: | 行 49: | ||
| 実行タイプ別: | 実行タイプ別: | ||
| - | * Agent plugin: Agent plugins are run by Pandora FMS software agent, they are usually local and do not work remotely so execution will be performed by the agent daemon. Agent plugins usually | + | * Agent plugin: Agent plugins are run by Pandora FMS EndPoint, they are usually local and do not work remotely, so execution will be performed by the agent daemon. Agent plugins usually |
| - | * Server plugin: Server plugins are executed by the [[:es: | + | * Server plugin: Server plugins are executed by the [[:en: |
| - | * エージェントプラグイン: | + | * エージェントプラグイン: |
| * サーバプラグイン: | * サーバプラグイン: | ||
| + | |||
| + | <wrap #ks5 /> | ||
| ===== プラグインの見つけ方 ===== | ===== プラグインの見つけ方 ===== | ||
| 行 59: | 行 69: | ||
| <WRAP center round download 60%> | <WRAP center round download 60%> | ||
| - | [[https://pandorafms.com/ | + | [[https://marketplace.pandorafms.com/ |
| </ | </ | ||
| 行 74: | 行 84: | ||
| 通常、各プラグインには、インストール、プラグインの設定、およびプラグインが収集するデータの詳細が記載されたドキュメントが付属しています。 | 通常、各プラグインには、インストール、プラグインの設定、およびプラグインが収集するデータの詳細が記載されたドキュメントが付属しています。 | ||
| + | |||
| + | <wrap #ks6 /> | ||
| ===== プラグインのインストール方法 ===== | ===== プラグインのインストール方法 ===== | ||
| - | Plugins can be installed from Pandora FMS console. Depending on their type they can be run in two different ways, which will create different ways of plugin configuration. Agent plugins are however run by the software agent, while server plugins are run by the plugin server. Usually server plugins create agents and modules while agent plugins only create modules within the software agent in which it is configured. | + | Plugins can be installed from Pandora FMS console. Depending on their type they can be run in two different ways, which will create different ways of plugin configuration. Agent plugins are however run by the EndPoint, while server plugins are run by the plugin server. Usually server plugins create agents and modules while agent plugins only create modules within the EndPoint |
| - | プラグインは、Pandora FMS コンソールからインストールできます。 タイプに応じて 2 つの異なる方法で実行でき、プラグイン設定が作成されます。 ただし、エージェントプラグインはソフトウェアエージェントによって実行され、サーバプラグインはプラグインサーバによって実行されます。 通常、サーバプラグインはエージェントとモジュールを作成しますが、エージェントプラグインは、それが設定されているソフトウェアエージェント内でのみモジュールを作成します。 | + | プラグインは、Pandora FMS コンソールからインストールできます。 タイプに応じて 2 つの異なる方法で実行でき、プラグイン設定が作成されます。 ただし、エージェントプラグインはエンドポイントによって実行され、サーバプラグインはプラグインサーバによって実行されます。 通常、サーバプラグインはエージェントとモジュールを作成しますが、エージェントプラグインは、それが設定されているエンドポイント内でのみモジュールを作成します。 |
| Installing the plugin consists of creating its custom execution in Pandora FMS. Every certain configurable time interval, the plugin will run and display the updated modules. | Installing the plugin consists of creating its custom execution in Pandora FMS. Every certain configurable time interval, the plugin will run and display the updated modules. | ||
| プラグインをインストールするには、Pandora FMS でカスタム実行を作成します。 設定可能な特定の時間間隔ごとにプラグインが実行され、更新されたモジュールが表示されます。 | プラグインをインストールするには、Pandora FMS でカスタム実行を作成します。 設定可能な特定の時間間隔ごとにプラグインが実行され、更新されたモジュールが表示されます。 | ||
| + | |||
| + | <wrap #ks7 /> | ||
| ===== プラグインのライフサイクル ===== | ===== プラグインのライフサイクル ===== | ||
| [[: | [[: | ||
| + | |||
| + | <wrap #ks8 /> | ||
| ===== プラグインの計画 ===== | ===== プラグインの計画 ===== | ||
| 行 157: | 行 173: | ||
| データをリモートで取得できるプラグインは、データを取得するためにサービスマシン上に存在する必要がないため、プラグインサーバで実行できます。 | データをリモートで取得できるプラグインは、データを取得するためにサービスマシン上に存在する必要がないため、プラグインサーバで実行できます。 | ||
| - | There are certain plugins that can only be run through the software agent since they need to be on the same system as the service from which you want to get data in order to get them. | + | There are certain plugins that can only be run through the EndPoint |
| - | ソフトウェアエージェントを介してのみ実行できる特定のプラグインもあります。データの取得がサービスと同じシステム上である必要がある場合です。 | + | エンドポイントを介してのみ実行できる特定のプラグインもあります。データの取得がサービスと同じシステム上である必要がある場合です。 |
| ==== データをどのように表示しますか? | ==== データをどのように表示しますか? | ||
| 行 174: | 行 190: | ||
| プラグイン内に、エージェントまたはモジュールの名前をカスタマイズするオプションを含めたり、それらの名前にある種のプレフィックスを追加して、それらをより見やすく、区別しやすくすることができます。 | プラグイン内に、エージェントまたはモジュールの名前をカスタマイズするオプションを含めたり、それらの名前にある種のプレフィックスを追加して、それらをより見やすく、区別しやすくすることができます。 | ||
| + | |||
| + | <wrap #ks9 /> | ||
| ===== プラグインの要件と依存関係 ===== | ===== プラグインの要件と依存関係 ===== | ||
| 行 276: | 行 294: | ||
| Fedora および Ubuntu で作成したバイナリを使用すると、他のシステムで依存関係エラーが発生することを確認しています。 | Fedora および Ubuntu で作成したバイナリを使用すると、他のシステムで依存関係エラーが発生することを確認しています。 | ||
| + | |||
| + | <wrap #ks10 /> | ||
| ===== プラグインの開発 ===== | ===== プラグインの開発 ===== | ||
| 行 412: | 行 432: | ||
| 各 '' | 各 '' | ||
| - | * **name**: Module name. | + | <WRAP group> \\ <WRAP half column> |
| + | |||
| + | | ||
| * **description**: | * **description**: | ||
| * **tags**: Tags associated with the module. | * **tags**: Tags associated with the module. | ||
| 行 426: | 行 448: | ||
| * **max_warning**: | * **max_warning**: | ||
| * **disabled**: | * **disabled**: | ||
| - | * **min_ff_event**: | + | * **min_ff_event**: |
| * **status**: Module status (NORMAL, WARNING or CRITICAL). Critical and alert status limits are ignored if the status is specified. | * **status**: Module status (NORMAL, WARNING or CRITICAL). Critical and alert status limits are ignored if the status is specified. | ||
| * **datalist**: | * **datalist**: | ||
| * **unit**: Module unit. It supports '' | * **unit**: Module unit. It supports '' | ||
| - | * **timestamp**: | + | * **timestamp**: |
| * **module_group**: | * **module_group**: | ||
| * **custom_id**: | * **custom_id**: | ||
| 行 436: | 行 458: | ||
| * **str_critical**: | * **str_critical**: | ||
| * **critical_instructions**: | * **critical_instructions**: | ||
| + | </ | ||
| + | |||
| + | <WRAP half column> | ||
| + | |||
| * **warning_instructions**: | * **warning_instructions**: | ||
| * **unknown_instructions**: | * **unknown_instructions**: | ||
| 行 457: | 行 483: | ||
| * **str_warning_forced**: | * **str_warning_forced**: | ||
| * **str_critical_forced**: | * **str_critical_forced**: | ||
| + | </ | ||
| + | |||
| + | <WRAP group> \\ <WRAP half column> | ||
| * **name**: モジュール名。 | * **name**: モジュール名。 | ||
| * **description**: | * **description**: | ||
| 行 471: | 行 500: | ||
| * **max_warning**: | * **max_warning**: | ||
| * **disabled**: | * **disabled**: | ||
| - | * **min_ff_event**: | + | * **min_ff_event**: |
| * **status**: モジュールの状態(NORMAL, | * **status**: モジュールの状態(NORMAL, | ||
| * **datalist**: | * **datalist**: | ||
| 行 481: | 行 510: | ||
| * **str_critical**: | * **str_critical**: | ||
| * **critical_instructions**: | * **critical_instructions**: | ||
| + | </ | ||
| + | <WRAP half column> | ||
| * **warning_instructions**: | * **warning_instructions**: | ||
| * **unknown_instructions**: | * **unknown_instructions**: | ||
| 行 502: | 行 533: | ||
| * **str_warning_forced**: | * **str_warning_forced**: | ||
| * **str_critical_forced**: | * **str_critical_forced**: | ||
| + | </ | ||
| + | <wrap #ks12_4 /> | ||
| ==== モジュールの要素 ==== | ==== モジュールの要素 ==== | ||
| 行 525: | 行 558: | ||
| XML データ ファイルには、任意の数の要素を含めることができます。 | XML データ ファイルには、任意の数の要素を含めることができます。 | ||
| - | <WRAP center round important | + | <WRAP center round important |
| Do not forget to close the tag '' | Do not forget to close the tag '' | ||
| 行 531: | 行 564: | ||
| </ | </ | ||
| - | <WRAP center round important | + | <WRAP center round important |
| '' | '' | ||
| 行 537: | 行 570: | ||
| </ | </ | ||
| + | <wrap #ks12_5 /> | ||
| ==== リストタイプモジュール ==== | ==== リストタイプモジュール ==== | ||
| 行 556: | 行 590: | ||
| </ | </ | ||
| + | |||
| + | <wrap #ks12_6 /> | ||
| ==== モジュールのタイムスタンプ ==== | ==== モジュールのタイムスタンプ ==== | ||
| 行 584: | 行 620: | ||
| </ | </ | ||
| + | |||
| + | <wrap #ks12_7 /> | ||
| ==== しきい値と単位 ==== | ==== しきい値と単位 ==== | ||
| 行 667: | 行 705: | ||
| プラグインの設定は、これがエージェントプラグインかサーバプラグインかによって異なる場合があります。 | プラグインの設定は、これがエージェントプラグインかサーバプラグインかによって異なる場合があります。 | ||
| + | |||
| + | <wrap #ks16_1 /> | ||
| ==== サーバプラグイン ==== | ==== サーバプラグイン ==== | ||
| 行 746: | 行 786: | ||
| ==== エージェントプラグイン ==== | ==== エージェントプラグイン ==== | ||
| - | In order to monitor from Pandora FMS with an agent plugin, call it from the software agent '' | + | In order to monitor from Pandora FMS with an agent plugin, call it from the EndPoint |
| - | エージェントプラグインを使用して Pandora FMS で監視するには、GNU/Linux の次のパスにあるソフトウェアエージェントの '' | + | エージェントプラグインを使用して Pandora FMS で監視するには、Linux の次のパスにあるエンドポイントの '' |
| < | < | ||
| 行 844: | 行 884: | ||
| **total_modules_provided**: | **total_modules_provided**: | ||
| - | **execution_command**: | + | **execution_command**: |
| - | **execution_command**: | + | **execution_command**: |
| **execution_postcommand**: | **execution_postcommand**: | ||
| 行 973: | 行 1013: | ||
| * コードのテストをします。プラグインの動作をテストして、すべてが問題ないことを確認することが重要です。エラーを時間内に発見して修正することで、将来的な問題を回避することができます。 | * コードのテストをします。プラグインの動作をテストして、すべてが問題ないことを確認することが重要です。エラーを時間内に発見して修正することで、将来的な問題を回避することができます。 | ||
| - | [[: | + | [[: |