差分
このページの2つのバージョン間の差分を表示します。
両方とも前のリビジョン 前のリビジョン 次のリビジョン | 前のリビジョン | ||
ja:documentation:pandorafms:technical_reference:06_anexo_agent_plugins [2024/09/01 07:56] – [デバッグモード] junichi | ja:documentation:pandorafms:technical_reference:06_anexo_agent_plugins [2025/07/19 07:37] (現在) – [デバッグモード] junichi | ||
---|---|---|---|
行 8: | 行 8: | ||
===== エージェントプラグインの基本機能 ===== | ===== エージェントプラグインの基本機能 ===== | ||
- | The //agent //plugin **is executed | + | The //agent //plugin **is run by Pandora FMS EndPoint** so it has to have some special features: |
- | // | + | // |
- | | + | * Each plugin |
- | * It will be possible to access resources local to the machine | + | * It will be possible to access |
- | * It is possible to use any type of programming language supported by the operating system where the Pandora FMS software agent is installed. | + | * It is possible to use any type of programming language supported by the operating system where the Pandora FMS EndPoint |
- | * All the dependencies or software needed to run the plugin must be available or installed in the same machine that runs the Pandora FMS agent. | + | * All dependencies or software needed to run the plugin must be available or installed in the same machine that runs Pandora FMS agent. |
* それぞれのプラグインの実行では、一つまたは複数のモジュールの値を返します。出力は後述する XML フォーマットである必要があります。 | * それぞれのプラグインの実行では、一つまたは複数のモジュールの値を返します。出力は後述する XML フォーマットである必要があります。 | ||
* ローカルマシンのリソースおよび、リモートで他のマシンのリソースの両方にアクセスすることができます。 | * ローカルマシンのリソースおよび、リモートで他のマシンのリソースの両方にアクセスすることができます。 | ||
- | * Pandora | + | * Pandora |
- | * プラグインを実行するために必要な依存プログラムは、Pandora | + | * プラグインを実行するために必要な依存プログラムは、Pandora |
- | Agent plugins | + | Agent plugins |
エージェントプラグインは、" | エージェントプラグインは、" | ||
行 187: | 行 187: | ||
このプラグインから返されるモジュール数は、設定したファイルシステムの数に依存し、実行ごとに変更することができます。 | このプラグインから返されるモジュール数は、設定したファイルシステムの数に依存し、実行ごとに変更することができます。 | ||
- | The XML fragment is added to the general XML generated by the software agent and is sent to the Pandora FMS server to be processed by the **Data Server**. | + | The XML fragment is added to the general XML generated by the EndPoint |
- | この XML がソフトウエアエージェントが生成する全体の XML に追加され、Pandora サーバへ送信され、**データサーバ** にて処理されます。 | + | この XML がエンドポイントが生成する全体の XML に追加され、Pandora |
<wrap #ks4 /> | <wrap #ks4 /> | ||
行 203: | 行 203: | ||
==== pandora_agent.conf の修正 ==== | ==== pandora_agent.conf の修正 ==== | ||
- | The Software Agent requires a line in this file with the **correct path** of the plugin. | + | The EndPoint |
- | ソフトウエアエージェントでは、プラグインの **正しいパス** がこのファイル内に書かれている必要があります。 | + | エンドポイントでは、プラグインの **正しいパス** がこのファイル内に書かれている必要があります。 |
Example: | Example: | ||
行 224: | 行 224: | ||
==== pandora_agent_daemon の再起動 ==== | ==== pandora_agent_daemon の再起動 ==== | ||
- | The Software Agent will run the plugins every 5 minutes and it is possible to restart the Software Agent with user **root** or equivalent from the command line: | + | The EndPoint |
- | ソフトウエアエージェントは 5分ごとにプラグインを実行します。次回の実行まで待てない場合は、コマンドラインからソフトウエアエージェントを再起動します。 | + | エンドポイントは 5分ごとにプラグインを実行します。次回の実行まで待てない場合は、コマンドラインからエンドポイントを再起動します。 |
<code bash> | <code bash> | ||
- | / | + | systemctl |
</ | </ | ||
行 274: | 行 275: | ||
==== デバッグモード ==== | ==== デバッグモード ==== | ||
- | You can activate the development mode by changing the value of the debug tag in the '' | + | You may activate the development mode by changing the value of the debug tag in the '' |
- | '' | + | '' |
- | The name of the document will be the name of the agent with the extension | + | The name of the document will be the name of the agent with the '' |
ファイル名は、エージェント名と '' | ファイル名は、エージェント名と '' | ||
行 298: | 行 299: | ||
==== フォーラム ==== | ==== フォーラム ==== | ||
- | それでもまだうまくいかない場合は、我々の [[http://www.openideas.info/smf/ | + | If after all the error persists, [[https:// |
+ | |||
+ | それでもまだうまくいかない場合は、我々の [[https://pandorafms.com/community/ | ||
[[ja: | [[ja: | ||