ja:documentation:08_technical_reference:04_anexo_plugins_considerations

差分

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

この比較画面へのリンク

両方とも前のリビジョン 前のリビジョン
次のリビジョン
前のリビジョン
最新のリビジョン両方とも次のリビジョン
ja:documentation:08_technical_reference:04_anexo_plugins_considerations [2022/09/16 21:30] – [自動検出処理] junichija:documentation:08_technical_reference:04_anexo_plugins_considerations [2022/09/16 21:41] – [使い方とプラグインのバージョン] junichi
行 7: 行 7:
  
 ===== 概要 ===== ===== 概要 =====
-プラグインにより Pandora は、複雑な処理を必要とするものや、複雑なシステムや API を利用する必要のある情報収集を実行することができます。プラグインの例をあげると、複雑な処理が必要な Oracle データベースのモニタリングや、何らかの自動検出処理があります。他には、Goliat が実行できないような簡単な HTML のパースができます。+ 
 +The plugins allows to Pandora FMS to get information that requires a complex process or that requires the use of complex systems or APIs. Examples of plugins could be the Oracle® database monitoring that requires a complex process for the monitoring and also some auto-discovery tasks. Other example could be a simple HTML parse, but that requires some that Goliat ([[:en:documentation:01_understanding:02_architecture#the_web_server_goliat|checking web server]]) can't do. 
 + 
 +プラグインにより Pandora は、複雑な処理を必要とするものや、複雑なシステムや API を利用する必要のある情報収集を実行することができます。プラグインの例をあげると、複雑な処理が必要な Oracle データベースのモニタリングや、何らかの自動検出処理があります。他には、Goliat ([[:ja:documentation:01_understanding:02_architecture#ウェブサーバ_goliat|ウェブサーバチェック]]) が実行できないような簡単な HTML のパースができます。
  
 ===== 実装とパフォーマンスの違い ===== ===== 実装とパフォーマンスの違い =====
-Pandora のプラグイン実行には、エージェントでの実行とサーバでの実行の二種類があります。+ 
 +Pandora FMS offers two possibilities when executing plugins: execution in the [[:en:documentation:01_understanding:02_architecture#pandora_fms_software_agents|Software agent]] or in the server. 
 + 
 +Pandora のプラグイン実行には、[[:ja:documentation:01_understanding:02_architecture#pandora_fms_のソフトウエアエージェント|ソフトウエアエージェント]]での実行とサーバでの実行の二種類があります。
  
 サーバプラグインは、収集する情報ごとに個々に実行されます。サーバプラグインの実行は、重くなく、一つの種類の情報を取得するのを簡単な処理にする必要があるため、とても難しいです。特定の HTML をパースするプラグインは、多くの処理を実装せずにサーバに負荷をかけないようにする必要があります。 サーバプラグインは、収集する情報ごとに個々に実行されます。サーバプラグインの実行は、重くなく、一つの種類の情報を取得するのを簡単な処理にする必要があるため、とても難しいです。特定の HTML をパースするプラグインは、多くの処理を実装せずにサーバに負荷をかけないようにする必要があります。
行 27: 行 33:
 XML でデータを送信するプラグインを作成する理由は、自動検出処理の負荷をサーバに集中させずに分散することにあります。 XML でデータを送信するプラグインを作成する理由は、自動検出処理の負荷をサーバに集中させずに分散することにあります。
  
-==== サーバプラグインとエージェントプラグイン ====+===== サーバプラグインとエージェントプラグイン =====
  
 A [[:en:documentation:08_technical_reference:05_anexo_server_plugins_development|server plugin]] should be used when: A [[:en:documentation:08_technical_reference:05_anexo_server_plugins_development|server plugin]] should be used when:
  
 [[:ja:documentation:08_technical_reference:05_anexo_server_plugins_development|サーバプラグイン]]は次のような場面で利用すべきです。 [[:ja:documentation:08_technical_reference:05_anexo_server_plugins_development|サーバプラグイン]]は次のような場面で利用すべきです。
 +
 +  * The load of each execution is small, for example, simple queries.
 +  * If the Recon Task requires low data process.
 +  * If the Recon Task execution intervals are large, for example, once a week
  
   * 実行負荷が小さい場合。例えば単純な処理など。   * 実行負荷が小さい場合。例えば単純な処理など。
-  * 自動検出処理が多くのデータ処理を必要後する場合。+  * 自動検出処理のデータ処理量が少ない場合。
   * 自動検出処理の実行間隔が長い場合。例えば、1週間に一度など。   * 自動検出処理の実行間隔が長い場合。例えば、1週間に一度など。
  
行 45: 行 55:
   * 自動検出処理の実行間隔が通常のエージェントの実行間隔に近い場合。例えば、5分間隔など。   * 自動検出処理の実行間隔が通常のエージェントの実行間隔に近い場合。例えば、5分間隔など。
  
-==== 開発における標準化 ====+===== 開発における標準化 =====
  
 In order that all plugins would be the more standard possible, and that they have similar features, you should consider the following aspects: In order that all plugins would be the more standard possible, and that they have similar features, you should consider the following aspects:
行 51: 行 61:
 すべてのプラグインを可能な限り標準化し、同様の機能を持たせるには、次の点を考慮する必要があります。 すべてのプラグインを可能な限り標準化し、同様の機能を持たせるには、次の点を考慮する必要があります。
  
-=== プラグインと拡張のバージョン管理 ===+==== プラグインと拡張のバージョン管理 ====
  
 In Pandora FMS we follow a system of versions for the plugins that has the following format: In Pandora FMS we follow a system of versions for the plugins that has the following format:
行 78: 行 88:
 常に最初のリビジョンから開始し、新しいバージョンへ変更していく必要があります。つまり、バージョン v1r5 のプラグインに対して、より新しいバージョンを定義したい場合は、v2r1 などになります。 常に最初のリビジョンから開始し、新しいバージョンへ変更していく必要があります。つまり、バージョン v1r5 のプラグインに対して、より新しいバージョンを定義したい場合は、v2r1 などになります。
  
-=== 使い方とプラグインのバージョン ===+==== 使い方とプラグインのバージョン ====
  
 All plugins should respond to a call without parameters, or also with an option type -h or --help, showing the command for its execution and the different parameters of it.Besides, it will be necessary to show the version of the plugin. For example: All plugins should respond to a call without parameters, or also with an option type -h or --help, showing the command for its execution and the different parameters of it.Besides, it will be necessary to show the version of the plugin. For example:
行 85: 行 95:
  
 <code> <code>
- $ ./myplugin +$ ./myplugin
- +
  myplugin version: v1r1  myplugin version: v1r1
- +
  Usage myplugin <param1> <param2> <param3>  Usage myplugin <param1> <param2> <param3>
-  +
-  param1: este parametro es una cosa +
-  param2: este parametro es otra cosa+
 </code> </code>
  
 [[ja:documentation:start|Pandora FMS ドキュメント一覧に戻る]] [[ja:documentation:start|Pandora FMS ドキュメント一覧に戻る]]