差分
このページの2つのバージョン間の差分を表示します。
| 両方とも前のリビジョン 前のリビジョン 次のリビジョン | 前のリビジョン | ||
| ja:documentation:pandorafms:monitoring:02_operations [2026/05/30 22:31] – [PowerShell チェックの利用] junichi | ja:documentation:pandorafms:monitoring:02_operations [2026/05/30 23:04] (現在) – [エンドポイントを使った監視] junichi | ||
|---|---|---|---|
| 行 4: | 行 4: | ||
| - | [[: | + | [[: |
| <wrap #ks1 /> | <wrap #ks1 /> | ||
| 行 1127: | 行 1127: | ||
| < | < | ||
| - | + | /usr/share/ | |
| - | /etc/pandora/plugins | + | |
| </ | </ | ||
| 行 1138: | 行 1136: | ||
| <WRAP center round info 90%> | <WRAP center round info 90%> | ||
| - | By having remote configuration | + | By having |
| </ | </ | ||
| 行 1144: | 行 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 /> | ||
| - | |||
| ==== コンソールからの高度なエンドポイントプラグイン管理 ==== | ==== コンソールからの高度なエンドポイントプラグイン管理 ==== | ||
| 行 1167: | 行 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 エージェントはプラグインでエラーが発生したものと認識し、出力を無視します。 | ||
| 行 1261: | 行 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> | + | |
| === 例 === | === 例 === | ||
| 行 1351: | 行 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 モジュールは、**リモート設定が有効になっていない場合でも** コンソールから作成することができます。また、'' | ||
| 行 1363: | 行 1349: | ||
| </ | </ | ||
| - | A unique module in Pandora FMS is the type called '' | + | You must go to the agent administration menu in <wrap : |
| - | Pandora FMS の固有のモジュールで '' | + | エージェント管理メニューの<wrap : |
| - | You must go to the modules tab (**Management** → **Manage agents** → click on agent name → **Modules**). | + | Once the module list of the selected agent is visible, you must press the <wrap :en>**Create module**</ |
| - | 設定には、モジュールタブに移動する必要があります (**管理(Management)** → **エージェント管理(Manage agents)** → エージェント名をクリック → **モジュール(Modules)**)。 | + | 選択したエージェントのモジュール一覧が表示されたら、**モジュール作成(Create module)** ボタンを押し、**モジュールタイプ選択(Select module type)** リストから |
| - | Click **Create module** and select **Create a new data server module** → **Create** → enter the name of the new module → **Create**. | + | {{ : |
| - | + | ||
| - | **モジュールの作成(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 '' | + | '' |
| - | + | ||
| - | '' | + | |
| < | < | ||
| 行 1393: | 行 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 [[: |
| </ | </ | ||
| 行 1409: | 行 1390: | ||
| </ | </ | ||
| + | |||
| + | In the main agent editing view, module bottom section, the <wrap : | ||
| + | |||
| + | メインエージェント編集画面のモジュール下部セクションの <wrap : | ||
| + | |||
| + | {{ : | ||
| <wrap #ks11 /> | <wrap #ks11 /> | ||
| 行 1414: | 行 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 "< | ||
| 行 1429: | 行 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 < | + | |
| </ | </ | ||
| 行 1454: | 行 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**. |
| </ | </ | ||
| 行 1476: | 行 1454: | ||
| === プロセスモニタリング === | === プロセスモニタリング === | ||
| - | The **module_proc** parameter checks if a certain process name is running | + | The '' |
| - | **module_proc** | + | '' |
| < | < | ||
| 行 1487: | 行 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 |
| </ | </ | ||
| 行 1509: | 行 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 の章の冒頭にある一般的なルールを参照してください)。 | + | |
| ==== サービスモニタリングと、サービスウォッチドック ==== | ==== サービスモニタリングと、サービスウォッチドック ==== | ||
| 行 1548: | 行 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 /> | ||
| 行 1597: | 行 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 のモニタリング === | ||
| 行 1712: | 行 1705: | ||
| </ | </ | ||
| - | [[: | + | [[: |
| ===== (OBSOLETE) バージョン 7 NG 以前 ===== | ===== (OBSOLETE) バージョン 7 NG 以前 ===== | ||