差分
このページの2つのバージョン間の差分を表示します。
| 両方とも前のリビジョン 前のリビジョン 次のリビジョン | 前のリビジョン | ||
| ja:documentation:pandorafms:monitoring:02_operations [2026/05/30 22:25] – [エンドポイントへのサービス再起動要求の送信方法] junichi | ja:documentation:pandorafms:monitoring:02_operations [2026/05/30 23:04] (現在) – [エンドポイントを使った監視] junichi | ||
|---|---|---|---|
| 行 4: | 行 4: | ||
| - | [[: | + | [[: |
| <wrap #ks1 /> | <wrap #ks1 /> | ||
| 行 1049: | 行 1049: | ||
| ==== カスタムリモートアクション ==== | ==== カスタムリモートアクション ==== | ||
| - | In addition to the EndPoint service | + | In addition to the action of restarting |
| - | エンドポイントサービスの再起動アクションに加えて、カスタムアクションを指定できます。 | + | エンドポイントサービスの再起動に加えて、[[: |
| - | + | ||
| - | < | + | |
| + | <code bash> | ||
| process_< | process_< | ||
| - | |||
| </ | </ | ||
| - | 例えば、リモートから sshd サービスを起動したい場合は次のようにします。 | + | <WRAP center round tip 90%> |
| - | + | ||
| - | < | + | |
| - | + | ||
| - | process_sshd_start / | + | |
| - | + | ||
| - | </ | + | |
| - | + | ||
| - | <WRAP center round tip 60%> | + | |
| - | You can also create commands | + | Orders |
| </ | </ | ||
| - | <WRAP center round tip 60%> | + | <WRAP center round tip 90%> |
| - | ボタンをクリックするだけで複数のリモートアクションを実行するスクリプトを呼び出すコマンドを作成することもできます。 | + | また、ボタンを押すだけで複数のリモート操作を実行するスクリプトを呼び出すような処理を作成することもできます。 |
| </ | </ | ||
| 行 1083: | 行 1073: | ||
| ===== エンドポイントでのプラグインの利用 ===== | ===== エンドポイントでのプラグインの利用 ===== | ||
| - | Unlike server plugins, executed by Pandora FMS server, EndPoint plugins report one **or several modules at the same time**. | + | Unlike server plugins, executed by Pandora FMS server, |
| - | Pandora FMS サーバによって実行されるサーバプラグインとは異なり、エンドポイントプラグインは 1 つ **または複数のモジュールを同時に** レポートします。 | + | Pandora FMS サーバによって実行されるサーバプラグインとは異なり、[[: |
| <wrap #ks8_1 /> | <wrap #ks8_1 /> | ||
| 行 1107: | 行 1097: | ||
| === PowerShell チェックの利用 === | === PowerShell チェックの利用 === | ||
| - | From version 776 onwards, | + | From version 776 onwards, '' |
| バージョン 776 以降には、'' | バージョン 776 以降には、'' | ||
| - | < | + | < |
| # Example of Powershell execution module | # Example of Powershell execution module | ||
| module_begin | module_begin | ||
| module_name Powershell | module_name Powershell | ||
| module_type generic_data_string | module_type generic_data_string | ||
| - | module_exec_powershell < command_1 > | < command_2 > | … | < command_N > | + | module_exec_powershell < |
| module_end | module_end | ||
| + | </ | ||
| + | Commands are entered as they are, without the need for quotation marks to be processed by the PFMS EndPoint (PowerShell commands, on the other hand, may need quotation marks). | ||
| - | </ | + | コマンドはそのまま入力され、PFMS エンドポイントで処理するために引用符は必要ありません(一方、PowerShell コマンドには引用符が必要な場合があります)。 |
| - | The commands are entered as they are, without the need of quotation marks for them to be processed by PFMS EndPoint (PowerShell commands, on the other hand, may need quotation marks). | + | If the command is not valid, an error is added to the EndPoint log ('' |
| - | コマンドは、PFMS エンドポイントによって処理されるように引用符無しにそのまま入力します (一方、PowerShell コマンドには引用符が必要な場合があります)。 コマンドが正しくない場合、エンドポイントログ | + | コマンドが無効な場合、エンドポイントログ('' |
| <wrap #ks8_2 /> | <wrap #ks8_2 /> | ||
| 行 1135: | 行 1127: | ||
| < | < | ||
| - | + | /usr/share/ | |
| - | /etc/pandora/plugins | + | |
| </ | </ | ||
| 行 1146: | 行 1136: | ||
| <WRAP center round info 90%> | <WRAP center round info 90%> | ||
| - | By having remote configuration | + | By having |
| </ | </ | ||
| 行 1152: | 行 1142: | ||
| <WRAP center round info 90%> | <WRAP center round info 90%> | ||
| - | リモート設定を有効にすると、設定ファイルを直接編集せずに管理することができます。管理画面のエンドポイントにプラグインエディタータブが表示されます。 | + | リモート設定を有効にすると、エンドポイントの管理画面でプラグインエディタタブが使用できるようになります。すべてのプラグインには編集および削除アクションがありますが、一部のプラグインは読み取り専用([[: |
| </ | </ | ||
| - | {{ :wiki:plugin_editor_simple.png }} | + | {{ :wiki:pfms-plugin_editor-802_version.png }} |
| <wrap #ks8_4 /> | <wrap #ks8_4 /> | ||
| - | |||
| ==== コンソールからの高度なエンドポイントプラグイン管理 ==== | ==== コンソールからの高度なエンドポイントプラグイン管理 ==== | ||
| 行 1175: | 行 1164: | ||
| ==== 独自エンドポイントプラグインの作成方法 ==== | ==== 独自エンドポイントプラグインの作成方法 ==== | ||
| - | Plugins | + | plugins |
| プラグインは、任意のプログラミング言語で作成することができます。[[: | プラグインは、任意のプログラミング言語で作成することができます。[[: | ||
| - | <WRAP center round important | + | <WRAP center round important |
| - | Make sure you finish | + | Make sure to end the output of the new plugin (if it is a script) with an '' |
| </ | </ | ||
| - | <WRAP center round important | + | <WRAP center round important |
| カスタムプラグインの終了コードは 0 になるようにしてください。そうでないと、Pandora FMS エージェントはプラグインでエラーが発生したものと認識し、出力を無視します。 | カスタムプラグインの終了コードは 0 になるようにしてください。そうでないと、Pandora FMS エージェントはプラグインでエラーが発生したものと認識し、出力を無視します。 | ||
| 行 1269: | 行 1258: | ||
| ==== エンドポイントでの nagios プラグインの利用 ==== | ==== エンドポイントでの nagios プラグインの利用 ==== | ||
| - | Nagios has a large number of plugins that you can use with Pandora FMS. One way to do this is to use the remote plugins with the Plugin | + | Nagios has a large number of plugins that can be used with Pandora FMS. One way to do it is to use remote plugins with the [[: |
| - | Nagios には、Pandora FMS で使用できる多数のプラグインがあります。その一つとして、[[: | + | Nagiosには、Pandora FMS で使用できるプラグインが多数あります。その方法の 1つは、[[: |
| - | ただし、ステータスを取得するのみで、いくつかの nagios プラグインが持っている詳細情報を扱うことができません。 | + | <wrap #ks9 /> |
| - | + | ||
| - | この問題は、エンドポイントで nagios プラグインラッパーを使うことで解決できます。ラッパーは、Unix エージェントにデフォルトで付属しています。Pandora FMS Windows エンドポイント用の同様のプラグインは、 [[https:// | + | |
| - | + | ||
| - | nagios プラグイン用のプラグインラッパーは何をするのでしょうか。 | + | |
| - | + | ||
| - | nagios プラグインをそれ独自のパラメータを使って実行し、出力データを Pandora FMS で使いやすいように、次のような 2種類のデータに変換します。 | + | |
| - | + | ||
| - | * ステータス情報: | + | |
| - | * 詳細情報: | + | |
| - | + | ||
| - | < | + | |
| - | + | ||
| - | < | + | |
| - | + | ||
| - | </code> | + | |
| === 例 === | === 例 === | ||
| 行 1359: | 行 1333: | ||
| ===== KeepAlive によるモニタリング ===== | ===== KeepAlive によるモニタリング ===== | ||
| - | <WRAP center round tip 60%> | + | A unique module in Pandora FMS is the type called '' |
| - | The KeepAlive module can only be created from the Console, **even if remote configuration is not enabled** | + | Pandora FMS のユニークなモジュールの一つに '' |
| + | |||
| + | <WRAP center round tip 90%> | ||
| + | |||
| + | The KeepAlive module can only be created from the Web Console, **even if remote configuration is not enabled**, and it leaves no trace in the '' | ||
| </ | </ | ||
| - | <WRAP center round tip 60%> | + | <WRAP center round tip 90%> |
| KeepAlive モジュールは、**リモート設定が有効になっていない場合でも** コンソールから作成することができます。また、'' | KeepAlive モジュールは、**リモート設定が有効になっていない場合でも** コンソールから作成することができます。また、'' | ||
| 行 1371: | 行 1349: | ||
| </ | </ | ||
| - | A unique module in Pandora FMS is the type called '' | + | You must go to the agent administration menu in <wrap : |
| - | + | ||
| - | Pandora FMS の固有のモジュールで '' | + | |
| - | You must go to the modules tab (**Management** → **Manage agents** | + | エージェント管理メニューの< |
| - | 設定には、モジュールタブに移動する必要があります (**管理(Management)** → **エージェント管理(Manage agents)** → エージェント名をクリック → **モジュール(Modules)**)。 | + | Once the module list of the selected agent is visible, you must press the <wrap :en>**Create module**</ |
| - | Click **Create module** | + | 選択したエージェントのモジュール一覧が表示されたら、**モジュール作成(Create module)** ボタンを押し、**モジュールタイプ選択(Select |
| - | **モジュールの作成(Create module)** をクリックし、**データサーバモジュールの新規作成(Create a new data server module)** → **作成(Create)** → 新しいモジュールの名前を入力 → **作成(Create)** を選択します。 | + | {{ : |
| <wrap #ks10 /> | <wrap #ks10 /> | ||
| - | ===== コマンドスナップショット ===== | + | ===== コマンドスナップショット監視(コマンドスナップショット表示) |
| - | {{ | + | Commands that present extensive outputs, such as '' |
| - | Commands with long output, such as '' | + | '' |
| - | + | ||
| - | '' | + | |
| < | < | ||
| 行 1401: | 行 1375: | ||
| module_group System | module_group System | ||
| module_end | module_end | ||
| - | |||
| </ | </ | ||
| <WRAP center round important 90%> | <WRAP center round important 90%> | ||
| - | * For this to work like this, you have to properly configure | + | * For this to work this way, both the Pandora console (//setup//) and the EndPoint that collects that information |
| - | * In the [[: | + | * In the [[: |
| </ | </ | ||
| 行 1417: | 行 1390: | ||
| </ | </ | ||
| + | |||
| + | In the main agent editing view, module bottom section, the <wrap : | ||
| + | |||
| + | メインエージェント編集画面のモジュール下部セクションの <wrap : | ||
| + | |||
| + | {{ : | ||
| <wrap #ks11 /> | <wrap #ks11 /> | ||
| 行 1422: | 行 1401: | ||
| ===== 画像の監視と表示 ===== | ===== 画像の監視と表示 ===== | ||
| - | This method allows defining | + | This method allows defining string-type modules |
| この監視では、base64 エンコードを使用したテキスト形式の画像を含む文字列型 ('' | この監視では、base64 エンコードを使用したテキスト形式の画像を含む文字列型 ('' | ||
| - | For example: | + | A script file is created such as: |
| - | 例: | + | 次のようなスクリプトファイルを作成します。 |
| - | < | + | < |
| #!/bin/bash | #!/bin/bash | ||
| echo "< | echo "< | ||
| 行 1437: | 行 1416: | ||
| echo "< | echo "< | ||
| echo "</ | echo "</ | ||
| - | |||
| </ | </ | ||
| - | Write that content to a file on the EndPoint (or distribute by [[: | + | Save that content to a file on the EndPoint (or distribute |
| - | 上記のファイルをエンドポイント上で保存し(または[[: | + | そのコンテンツをエンドポイント上のファイルに保存するか(または[[: |
| < | < | ||
| - | + | module_plugin <complete_path_to_the_file> | |
| - | module_plugin <complete path to the file> | + | |
| - | + | ||
| - | </ | + | |
| - | + | ||
| - | < | + | |
| - | + | ||
| - | module_plugin < | + | |
| </ | </ | ||
| 行 1462: | 行 1432: | ||
| <WRAP center round info 90%> | <WRAP center round info 90%> | ||
| - | * If the process name contains | + | |
| - | | + | * The process name must be the same as shown in the MS Windows® |
| - | | + | * It is important to **respect upper and lower case**. |
| </ | </ | ||
| 行 1484: | 行 1454: | ||
| === プロセスモニタリング === | === プロセスモニタリング === | ||
| - | The **module_proc** parameter checks if a certain process name is running | + | The '' |
| - | **module_proc** | + | '' |
| < | < | ||
| 行 1495: | 行 1465: | ||
| module_description Process Command line | module_description Process Command line | ||
| module_end | module_end | ||
| - | |||
| </ | </ | ||
| - | The parameter **[[: | + | The '' |
| - | **module_async yes** のパラメータを指定する必要があります。 | + | '' |
| < | < | ||
| - | module_begin | + | module_begin |
| - | | + | module_name CMDProcess |
| - | | + | module_type generic_proc |
| - | | + | module_proc cmd.exe |
| - | | + | module_async yes |
| - | | + | module_description Process Command line |
| - | | + | module_end |
| </ | </ | ||
| 行 1517: | 行 1485: | ||
| === プロセスウォッチドック === | === プロセスウォッチドック === | ||
| - | Windows のソフトウエアエージェントのウォッチドック機能は、プロセスがダウンしたときに再起動することができます。ウォッチドックは、モジュールが非同期の場合にのみ動作します。 | + | he Watchdog functionality for MS Windows® allows restarting an interrupted process. |
| - | ウォッチドックモジュールの設定例を以下に示します。 | + | MS Windows® のウォッチドッグ機能を使用すると、中断されたプロセスを再起動できます。 |
| - | <code> | + | In the following |
| - | | + | |
| - | | + | |
| - | | + | |
| - | | + | |
| - | | + | |
| - | | + | |
| - | | + | |
| - | | + | |
| - | | + | |
| - | | + | |
| - | | + | |
| - | | + | |
| - | | + | |
| - | + | ||
| - | </code> | + | |
| - | + | ||
| - | Each time the notepad.exe process is deactivated and the command: | + | |
| - | notepad.exe | + | 以下のコードでは、**メモ帳**プログラムがインストールされたエンドポイントを介して// |
| < | < | ||
| - | %SystemRoot%\notepad.exe | + | module_begin |
| + | module_name Notepad | ||
| + | module_type generic_data | ||
| + | module_proc notepad.exe | ||
| + | module_description Notepad | ||
| + | module_async yes | ||
| + | module_watchdog yes | ||
| + | module_user_session yes | ||
| + | module_start_command "%SystemRoot%\notepad.exe" | ||
| + | module_startdelay 3000 | ||
| + | module_retrydelay 2000 | ||
| + | module_retries 5 | ||
| + | module_end | ||
| </ | </ | ||
| - | will be executed (see common rules at the beginning of the Windows section). The process reactivation will be attempted 5 times with an initial waiting time of 3 seconds and a waiting time between retries of 2 seconds in the user's active session. | + | <wrap #ks12_2 /> |
| - | + | ||
| - | が実行されます(Windows の章の冒頭にある一般的なルールを参照してください)。 | + | |
| ==== サービスモニタリングと、サービスウォッチドック ==== | ==== サービスモニタリングと、サービスウォッチドック ==== | ||
| 行 1556: | 行 1515: | ||
| === サービスモニタリング === | === サービスモニタリング === | ||
| - | **module_service** パラメータは、指定したサービスがマシンで動作しているかどうかをチェックします。モジュールの設定例を以下に示します。 | + | The '' |
| - | < | + | '' |
| - | | + | |
| - | | + | |
| - | | + | |
| - | module_service | + | |
| - | | + | |
| - | | + | |
| + | < | ||
| + | module_begin | ||
| + | module_name Service_Dhcp | ||
| + | module_type generic_proc | ||
| + | module_service Dhcp | ||
| + | module_description Service DHCP Client | ||
| + | module_end | ||
| </ | </ | ||
| - | サービス名にスペースが含まれる場合、«" | + | The '' |
| - | サービスがダウンしたときにソフトウエアエージェントがすぐに通知して欲しい場合は、**module_async yes** | + | プロセスが動作を停止したときに**即座に**通知するために、'' |
| < | < | ||
| - | module_begin | + | module_begin |
| - | | + | module_name Service_Dhcp |
| - | | + | module_type generic_proc |
| - | | + | module_service Dhcp |
| - | | + | module_description Service DHCP Client |
| - | | + | module_async yes |
| - | | + | module_end |
| </ | </ | ||
| + | |||
| + | <wrap #ks12_2_2 /> | ||
| === サービスウォッチドック === | === サービスウォッチドック === | ||
| - | プロセスと同様に、ダウンしたサービスを再起動できるウォッチドックモードがあります。ウォッチドックを使ったモジュール定義例は次の通りです。 | + | It works similarly to the [[# |
| - | < | + | これは、[[# |
| - | | + | |
| - | | + | |
| - | | + | |
| - | | + | |
| - | | + | |
| - | | + | |
| - | | + | |
| - | | + | |
| + | < | ||
| + | module_begin | ||
| + | module_name ServiceSched | ||
| + | module_type generic_proc | ||
| + | module_service Schedule | ||
| + | module_description Service Task scheduler | ||
| + | module_async yes | ||
| + | module_watchdog yes | ||
| + | module_end | ||
| </ | </ | ||
| - | ウォッチドックの定義には、特別なパラメータは必要ありません。サービスの定義内にあるためです。 | + | <WRAP center round tip 90%> |
| + | |||
| + | The Watchdog definition for services does not require any additional parameters like the one for processes //because that information is already within the service definition// | ||
| + | |||
| + | </ | ||
| + | |||
| + | <WRAP center round tip 90%> | ||
| + | |||
| + | サービスに対するウォッチドッグ定義では、プロセスに対するもののような追加のパラメータは必要ありません。// | ||
| + | |||
| + | </ | ||
| <wrap #ks12_3 /> | <wrap #ks12_3 /> | ||
| 行 1605: | 行 1577: | ||
| ==== 基本リソースのモニタリング ==== | ==== 基本リソースのモニタリング ==== | ||
| - | When installing the PFMS EndPoint for MS Windows® the necessary | + | <WRAP center round info 90%> |
| + | |||
| + | When installing the PFMS EndPoint for MS Windows®, the basic necessary | ||
| + | |||
| + | </ | ||
| + | |||
| + | <WRAP center round info 90%> | ||
| + | |||
| + | MS Windows® 用の PFMS エンドポイントをインストールする際に、必要な基本モジュールはすべて含まれています。 | ||
| + | |||
| + | </ | ||
| + | |||
| + | Some modules | ||
| + | |||
| + | 一部のモジュールは最初から有効になっていますが、その他のモジュールは< | ||
| - | MS Windows® 用 Pandora FMS エンドポイントをインストールすると、必要な基本モジュールが含まれています。その一部は有効になっていますが、その他は **リモート設定** (またはエンドポイントの '' | ||
| === CPU のモニタリング === | === CPU のモニタリング === | ||
| 行 1720: | 行 1705: | ||
| </ | </ | ||
| - | [[: | + | [[: |
| ===== (OBSOLETE) バージョン 7 NG 以前 ===== | ===== (OBSOLETE) バージョン 7 NG 以前 ===== | ||