ja:documentation:08_technical_reference:05_anexo_server_plugins_development

差分

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

この比較画面へのリンク

両方とも前のリビジョン 前のリビジョン
次のリビジョン
前のリビジョン
最新のリビジョン両方とも次のリビジョン
ja:documentation:08_technical_reference:05_anexo_server_plugins_development [2021/07/16 23:11] – [モジュール定義 / ネットワークコンポーネント] junichija:documentation:08_technical_reference:05_anexo_server_plugins_development [2022/12/02 06:09] – [ヘッダー/定義] junichi
行 128: 行 128:
 ==== プラグインの手動登録 ==== ==== プラグインの手動登録 ====
  
-{{ wiki:Registro_manual_plugin.png?750 }}+{{  :wiki:pfms-server-plugins-manual_plugin_registration_1.png  }}
  
  
行 144: 行 144:
  
 プラグインの実行時間制限です。 この時間内に応答がない場合は、モジュールを不明として処理し、その値は更新されません。 プラグインを使用してモニタリングを実装する場合、これは非常に重要な要素です。そのため、プラグインの実行にかかる時間がこの数値より大きいと値を取得できません。この値は、プラグインとして使用されるスクリプトや実行ファイルが値を返すまでにかかる時間よりも常に大きくなければなりません。 何も設定しない場合は、plugin_timeout の設定値が使われます。 プラグインの実行時間制限です。 この時間内に応答がない場合は、モジュールを不明として処理し、その値は更新されません。 プラグインを使用してモニタリングを実装する場合、これは非常に重要な要素です。そのため、プラグインの実行にかかる時間がこの数値より大きいと値を取得できません。この値は、プラグインとして使用されるスクリプトや実行ファイルが値を返すまでにかかる時間よりも常に大きくなければなりません。 何も設定しない場合は、plugin_timeout の設定値が使われます。
 +
 +{{  :wiki:pfms-server-plugins-manual_plugin_registration_2.png  }}
  
   * **プラグインコマンド(Plug-in command)**   * **プラグインコマンド(Plug-in command)**
行 154: 行 156:
  
 コマンドのパラメータ文字列で、コマンドの引数としてしていするものです。パラメータフィールドには、_field1_ _field2_ ... _fieldN_ といったマクロが使えます。 コマンドのパラメータ文字列で、コマンドの引数としてしていするものです。パラメータフィールドには、_field1_ _field2_ ... _fieldN_ といったマクロが使えます。
 +
 +{{  :wiki:pfms-server-plugins-manual_plugin_registration_3.png  }}
  
   * **パラメータマクロ(Parameters macros)**   * **パラメータマクロ(Parameters macros)**
行 320: 行 324:
 === plugin_definition.ini の構造 === === plugin_definition.ini の構造 ===
 == ヘッダー/定義 == == ヘッダー/定義 ==
-これがオプションセクションを持つ標準的なINIファイルです。 + 
-最初のセクションは最も重要で、セクション名は"plugin_definition"固定です。 +This is a [[https://en.wikipedia.org/wiki/INI_file|classic INI file]] with optional sections. The first section, the most important, is a fixed name section called ''plugin_definition'', and this is an example: 
-以下に例を示します。+ 
 +これがオプションセクションを持つ[[https://en.wikipedia.org/wiki/INI_file|標準的なINIファイル]]です。最初のセクションは最も重要で、セクション名は ''plugin_definition'' 固定です。以下に例を示します。
  
 <code> <code>
行 495: 行 500:
 </code> </code>
  
-===== 古い PSPZ (Pandora バージョン 4のアップグレード =====+===== 古い PSPZ のアップグレード ===== 
 + 
 +From Pandora FMS version 4, some PSPZ prior to parameter dynamic field creation for plugins and had fixed parameters, **will not work in new versions**. 
 + 
 +Pandora FMS バージョン 4 までサーバプラグインの動的パラメータが無い、パラメータが静的な以前の PSPZ は、 **新しいバージョンの pandora では動作しません。** 
 + 
 +To migrate them, execute them with the appropriate credentials and after carrying out the upgrading process, the following: 
 + 
 +それらを移行するには、適切な権限でアップグレードプロセスを実行した後、次の手順を実行します。  
 + 
 +<code>/usr/share/pandora_server/util/pandora_migrate_plugins.pl <dbname> <dbhost> <dbuser> <dbpass> 
 + 
 + 
 +</code>
  
-サーバプラグインの動的パラメータが無い、パラメータが静的な以前の PSPZ は、新しいバージョンの pandora では動作しません。これを修正する手順は以下にあります。+Find more information about major and minor version update in [[https://prewebs.pandorafms.com/manual/en/documentation/02_installation/02_annex_upgrade|this link]].
  
-[[:ja:documentation:02_installation:02_anexo_upgrade#.E3.83.97.E3.83.A9.E3.82.B0.E3.82.A4.E3.83.B3|以前のバージョンからのアップグレード → メジャーバージョンのアップデート → バージョン 4.x から 5.0 へのアップデート → プラグイン]]+メジャーおよびマイナーバージョンのアップデートに関する詳細は、[[:ja:documentation:02_installation:02_anexo_upgrade|こちら]]を参照してください。