両方とも前のリビジョン 前のリビジョン 次のリビジョン | 前のリビジョン |
ja:documentation:pandorafms:technical_reference:06_anexo_agent_plugins [2025/07/19 07:33] – [エージェントプラグイン開発の例] junichi | ja:documentation:pandorafms:technical_reference:06_anexo_agent_plugins [2025/07/19 07:37] (現在) – [デバッグモード] junichi |
---|
==== pandora_agent.conf の修正 ==== | ==== pandora_agent.conf の修正 ==== |
| |
The Software Agent requires a line in this file with the **correct path** of the plugin. | The EndPoint requires a line in this file with the **correct path** of the plugin. |
| |
ソフトウエアエージェントでは、プラグインの **正しいパス** がこのファイル内に書かれている必要があります。 | エンドポイントでは、プラグインの **正しいパス** がこのファイル内に書かれている必要があります。 |
| |
Example: | Example: |
==== 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 will run the plugins every 5 minutes and it is possible to restart the EndPoint with the **root** user or equivalent from the command line: |
| |
ソフトウエアエージェントは 5分ごとにプラグインを実行します。次回の実行まで待てない場合は、コマンドラインからソフトウエアエージェントを再起動します。 | エンドポイントは 5分ごとにプラグインを実行します。次回の実行まで待てない場合は、コマンドラインからエンドポイントを再起動します。 |
| |
<code bash> | <code bash> |
==== デバッグモード ==== | ==== デバッグモード ==== |
| |
You can activate the development mode by changing the value of the debug tag in the ''pandora_agent.conf'' file from ''0'' to ''1''. Once you have done this, when the Software Agent executes the plugin, the results will be saved in an XML document with all the agent information. | You may activate the development mode by changing the value of the debug tag in the ''pandora_agent.conf'' file from ''0'' to ''1''. Once done, when the EndPoint runs the plugin, the results will be saved in an XML document with all the agent information. |
| |
''pandora_agent.conf'' ファイル内で、debug の値を ''0'' から ''1'' に変更することで、デバッグモードを有効にすることができます。これを行うと、ソフトウエアエージェントがプラグインを実行した結果が、エージェントのその他の情報とあわせて xml ファイルに保存されます。 | ''pandora_agent.conf'' ファイル内で、debug の値を ''0'' から ''1'' に変更することで、デバッグモードを有効にすることができます。これを行うと、エンドポイントがプラグインを実行した結果が、エージェントのその他の情報とあわせて xml ファイルに保存されます。 |
| |
The name of the document will be the name of the agent with the extension ''.data'', and it will be located in the '''tmp''' directory (you should check the log of the PFMS agent in ''/var/log/pandora/pandora_agent.log''). By reviewing the document, you will be able to see if the plugin data is being collected and if it is as expected. | The name of the document will be the name of the agent with the ''.data'' extension and it will be located in the '''tmp''' directory (you should check PFMS agent log in ''/var/log/pandora/pandora_agent.log''). By double checking the document, you will be able to see whether the plugin data is being collected and if it is as expected. |
| |
ファイル名は、エージェント名と ''.data'' を含むもので、''tmp'' ディレクトリに保存されます(Pandora FMS エージェントのログは、''/var/log/pandora/pandora_agent.log'' を確認してください)。内容を確認し、期待したプラグインの実行結果が含まれているかどうかを見ます。 | ファイル名は、エージェント名と ''.data'' を含むもので、''tmp'' ディレクトリに保存されます(Pandora FMS エージェントのログは、''/var/log/pandora/pandora_agent.log'' を確認してください)。内容を確認し、期待したプラグインの実行結果が含まれているかどうかを見ます。 |