差分
このページの2つのバージョン間の差分を表示します。
両方とも前のリビジョン 前のリビジョン 次のリビジョン | 前のリビジョン最新のリビジョン両方とも次のリビジョン | ||
ja:documentation:04_using:03_templates_and_components [2021/07/21 23:03] – [SNMP プラグイン実行] junichi | ja:documentation:04_using:03_templates_and_components [2023/04/24 07:31] – [ローカルコンポーネント] junichi | ||
---|---|---|---|
行 7: | 行 7: | ||
==== 概要 ==== | ==== 概要 ==== | ||
- | Pandora FMS は全てのチェックをモジュールを通して行います。これらは、Pandora FMS が処理できる異なるデータタイプごとに異なります。Pandora FMS のデフォルトのモジュールリストは、' | ||
- | {{ wiki:julia1.png }} | + | Pandora FMS performs all checks through modules allowing you to process different data types depending on the element to be monitored. The full default module list for Pandora FMS can be checked by clicking on **Resources** > **Module Types**. |
+ | Pandora FMS は全てのチェックをモジュールを通して行います。これらは、Pandora FMS が処理できる異なるデータタイプごとに異なります。Pandora FMS のデフォルトのモジュールリストは、**リソース(Resources)** > **モジュールタイプ(Module Types)** から参照できます。 | ||
- | このメニューをクリックすると、Pandora FMS ウェブコンソールの右側に存在するモジュールが表示されます。 | + | {{ : |
- | {{ wiki:julia3.png? | + | There are different module types in Pandora FMS: |
- | 見ての通り、さまざまなモジュールのタイプとグループがあります。 | + | Pandora FMS には、異なるモジュールのタイプとグループがあります。 |
* **async**: 非同期データ | * **async**: 非同期データ | ||
行 34: | 行 34: | ||
* **inc_abs**: | * **inc_abs**: | ||
- | === コンポーネントとは | + | === コンポーネント === |
+ | |||
+ | **//What is a component?// | ||
+ | |||
+ | **// | ||
コンポーネントは、エージェントに繰り返し適用することができる " | コンポーネントは、エージェントに繰り返し適用することができる " | ||
行 41: | 行 46: | ||
- | === テンプレートコンポーネントとは | + | === コンポーネントテンプレート |
+ | |||
+ | //**コンポーネントテンプレートとは?** // | ||
Pandora FMS では、複数のネットワークコンポーネントをエージェントに直接適用できるように、ネットワークコンポーネントを " | Pandora FMS では、複数のネットワークコンポーネントをエージェントに直接適用できるように、ネットワークコンポーネントを " | ||
テンプレートに関連付けられたネットワークコンポーネントを通して複数のモジュールを同時に作成できるので、監視設定の展開が容易になります。 | テンプレートに関連付けられたネットワークコンポーネントを通して複数のモジュールを同時に作成できるので、監視設定の展開が容易になります。 | ||
- | 自動検出サーバは、テンプレートに関連付けられたネットワークコンポーネントを検出したホストに適用し、指定されたモジュールを自動的に追加し、非常に高速かつ自動の監視設定の展開ができます。 | + | [[: |
==== ネットワークコンポーネント ==== | ==== ネットワークコンポーネント ==== | ||
前述の通り、ネットワークコンポーネントはリモートネットワークチェックを行うためのエレメントです。Pandora FMS では、約 40 の定義済みのネットワークチェックがあります。エンタープライズ版では、400 以上あります。 | 前述の通り、ネットワークコンポーネントはリモートネットワークチェックを行うためのエレメントです。Pandora FMS では、約 40 の定義済みのネットワークチェックがあります。エンタープライズ版では、400 以上あります。 | ||
- | Pandora FMS のネットワークコンポーネントの確認および作成は、' | + | Pandora FMS network |
- | {{ wiki:lulu.png }} | + | Pandora FMS のネットワークコンポーネントの確認および作成は、**設定(Configuration)** → **テンプレート(Templates)** → **リモートコンポーネント(Remote components)** から行えます。 |
+ | |||
+ | {{ :wiki:pfms-configuration-templates-remote_components.png }} | ||
ここでは、定義済のコンポーネントの検索 (グループや任意の文字での検索によるフィルタが可能です)、設定詳細の確認、修正、新規コンポーネントの作成ができます。 | ここでは、定義済のコンポーネントの検索 (グループや任意の文字での検索によるフィルタが可能です)、設定詳細の確認、修正、新規コンポーネントの作成ができます。 | ||
- | モジュールのプロパティを参照するには名前をクリックしてください。詳細ページへのリンクになっています。 | + | To see the properties of any module, click on its name. It will take you to the editing page, for instance all the Host Alive network component details: |
- | {{ wiki: | + | モジュールのプロパティを参照するには名前をクリックします。たとえば、すべての Host Alive ネットワークコンポーネントの詳細などの編集ページに移動します。 |
+ | {{ : | ||
- | 図に示しているのは、ネットワークコンポーネント 'Host Alive' の詳細です。 | + | When applied to a module, this one will obtain the network component details, except for the IP address field, where the main agent IP address will automatically be adjusted. All parameters can be edited afterwards (for example: changing WMI module user/ |
- | モジュールに適用すると、IP アドレスフィールドを除き、ネットワークコンポーネントの詳細が反映されます。IP アドレスについては、エージェントのメインのアドレスが自動的に設定されます。全てのパラメータは (例: WMI モジュールのユーザ名、パスワードなど) あとから編集可能です。 | + | モジュールに適用すると、自動的に調整されるメインのエージェント |
+ | {{ : | ||
+ | |||
+ | <WRAP center round info 60%>\\ | ||
+ | If any template is modified, its new values will only be applied to the modules created from that moment on, **not to the the ones already created.** \\ | ||
+ | </ | ||
+ | |||
+ | <WRAP center round info 60%>\\ | ||
テンプレートを編集すると、**その時以降に行うモジュールへの適用に反映されます。すでにモジュールに適用されているものは変更されません。** | テンプレートを編集すると、**その時以降に行うモジュールへの適用に反映されます。すでにモジュールに適用されているものは変更されません。** | ||
+ | \\ | ||
+ | </ | ||
+ | |||
+ | To modify component values, click on the name of one them and modify the desired values in the editing page, e.g. the interval. Once updated, click **Update** at the bottom of the page to save the changes. | ||
+ | |||
+ | 実行間隔など、コンポーネントの値は、その名前をクリックし変更したい値を編集することにより可能です。変更したら、画面下の **更新(Update)** ボタンをクリックします。変更が反映され、以降はその内容でエージェントに適用できるようになります。 | ||
+ | |||
+ | {{ : | ||
+ | |||
+ | From that moment on, the new component configuration will be applied to the agents where said module is added. | ||
- | 実行間隔など、コンポーネントの値は、その名前をクリックし変更したい値を編集することにより可能です。変更したら、画面下の 更新(Update) ボタンをクリックします。変更が反映され、以降はその内容でエージェントに適用できるようになります。 | + | その時点から、新しいコンポーネント設定が、そのモジュールが追加されたエージェントに適用されます。 |
=== 新たなネットワークコンポーネントの作成 === | === 新たなネットワークコンポーネントの作成 === | ||
- | 3つのタイプのネットワークコンポーネントを作成することができます。 | ||
- | * ネットワーク | + | You may create four types of network components: |
- | * プラグイン (サーバアドオン) | + | |
- | * WMI | + | |
- | 新たなネットワークコンポーネントを作成するには、ネットワークコンポーネント管理のページ // | + | 4つのタイプのネットワークコンポーネントを作成することができます。 |
- | {{ wiki:luli.png |luli.png }} | + | * Network components. |
+ | * Plug-in components (server addons). | ||
+ | * Wizard component. | ||
+ | * WMI components. | ||
+ | * ネットワークコンポーネント | ||
+ | * プラグインコンポーネント (サーバアドオン) | ||
+ | * ウィザードコンポーネント | ||
+ | * WMI コンポーネント | ||
- | その後、コンポーネントを設定するためのフィールドが表示されます。必要な設定を行った後、// | + | To create a new network component, go to **Configuration** |
- | {{ wiki: | + | 新たなネットワークコンポーネントを作成するには、**設定(Configuration)** |
+ | {{ : | ||
- | フィールドを設定するとき、モジュールの説明については、それぞれエージェントに適用する時に設定するように考えても良いでしょう。SNMP のコミュニティ、ユーザ名、パスワードのようないくつかのパラメータは、適用するエージェントのモジュールごとに異なります。正しく動作させるためには、個別に設定する必要があります。しかし対象のシステムに共通のポリシーがある場合は、ユーザ名、パスワードやその他設定を共通にすることができます。もちろん、定義せずに空白にすることも可能です。 | + | Later, configure all component fields and click on **Create**. This is the WMI component creation screen. |
- | {{ wiki: | + | その後、コンポーネントのすべてのフィールドを設定し、**作成(Create)** をクリックします。以下に WMI コンポーネント作成画面を示します。 |
+ | {{ : | ||
+ | |||
+ | フィールドを設定するとき、モジュールの説明については、それぞれエージェントに適用する時に設定するように考えても良いでしょう。SNMP のコミュニティ、ユーザ名、パスワードのようないくつかのパラメータは、適用するエージェントのモジュールごとに異なります。正しく動作させるためには、個別に設定する必要があります。しかし対象のシステムに共通のポリシーがある場合は、ユーザ名、パスワードやその他設定を共通にすることができます。もちろん、定義せずに空白にすることも可能です。 | ||
+ | |||
+ | {{ : | ||
同様に、プラグインコンポーネントの場合は次のようになります。 | 同様に、プラグインコンポーネントの場合は次のようになります。 | ||
- | {{ wiki:trio.png?800 }} | + | {{ :wiki:pfms-configuration-templates-remote_components-remote_component_management-create_plugin_component.png?600 |
+ | In this case, similarly to creating a plugin module, when selecting a plugin in the interface, the fields defined in the plugin macros will appear. | ||
+ | |||
+ | この場合、プラグインモジュールの作成と同様に、インターフェイスでプラグインを選択すると、プラグインマクロで定義されたフィールドが表示されます。 | ||
==== ローカルコンポーネント ==== | ==== ローカルコンポーネント ==== | ||
- | ローカルコンポーネントは、ソフトウエアエージェントに適用できます。エンタープライズ版の場合は、コンポーネントは自動的にそしてリモートから適用することができます。ポリリーに従って適用したり、エージェントリモート設定エディタにて手動にて行うことができます。Pandora FMS エンタープライズ版でリモートのソフトウエアエージェントにローカルコンポーネントを実装する方法については、ポリシーを参照してください。 | + | |
+ | [[https:// | ||
+ | |||
+ | [[https:// | ||
+ | |||
+ | <WRAP center round info 60%> Check the [[: | ||
+ | |||
+ | <WRAP center round info 60%> Pandora FMS Enterprise でソフトウエアエージェントにローカルコンポーネントをリモートで適用する方法を知るには[[: | ||
ローカルコンポーネントは、Pandora FMS のオープンソース版でも利用可能です。エンタープライズ版との違いは、自動適用ができず手動で必要な設定を書く必要がある点のみです。エンタープライズ版の Pandora FMS には、カテゴリごとに分類された操作やポリシーを実装した多くのローカルモジュールがあります。 | ローカルコンポーネントは、Pandora FMS のオープンソース版でも利用可能です。エンタープライズ版との違いは、自動適用ができず手動で必要な設定を書く必要がある点のみです。エンタープライズ版の Pandora FMS には、カテゴリごとに分類された操作やポリシーを実装した多くのローカルモジュールがあります。 | ||
行 104: | 行 152: | ||
ローカルコンポーネントは、ネットワークコンポーネントととても似た動作をします。' | ローカルコンポーネントは、ネットワークコンポーネントととても似た動作をします。' | ||
- | {{ wiki:hue.png }} | + | {{ :wiki:pfms-configuration-templates-local_components.png? |
この画面では、すでに定義済のローカルモジュールを表示しています。異なるパラメータ (グループ、OS、任意のテキスト文字列) でフィルタリングして表示したり、編集や新たなコンポーネントの作成ができます。 | この画面では、すでに定義済のローカルモジュールを表示しています。異なるパラメータ (グループ、OS、任意のテキスト文字列) でフィルタリングして表示したり、編集や新たなコンポーネントの作成ができます。 | ||
行 110: | 行 158: | ||
モジュールのプロパティを見るには、名前をクリックします。詳細のページへのリンクになっています。 | モジュールのプロパティを見るには、名前をクリックします。詳細のページへのリンクになっています。 | ||
- | {{ wiki:huen.png? | + | {{ :wiki:pfms-configuration-templates-local_components-local_components_management-busy_xml_threads.png? |
- | {{ wiki: | + | |
- | {{ wiki: | + | |
- | {{ wiki:local_component_form4.png?800 }} | + | |
見ての通り、ローカルコンポーネントの設定はとてもシンプルです。設定項目は次の通りです。 | 見ての通り、ローカルコンポーネントの設定はとてもシンプルです。設定項目は次の通りです。 | ||
- | **名前(Name)**: | + | * **Name: |
+ | * **OS: | ||
+ | * **Group: | ||
+ | * **Description: | ||
+ | * **Configuration: | ||
+ | * **Warning Status: | ||
+ | * **Critical Status: | ||
+ | * **Warning Instructions: | ||
+ | * **Critical Instructions: | ||
+ | * **Unknown Instructions: | ||
+ | * **Category: | ||
+ | * **Tags: | ||
+ | * **Macros: | ||
+ | |||
+ | * **名前(Name)**: | ||
* **OS**: コンポーネントのオペレーティングシステムです。 | * **OS**: コンポーネントのオペレーティングシステムです。 | ||
* **グループ(Group)**: | * **グループ(Group)**: | ||
* **説明(Description)**: | * **説明(Description)**: | ||
- | * **設定(Configuration)**: | + | * **設定(Configuration)**: |
+ | * **警告状態(Warning Status):** 状態が '' | ||
+ | * **障害状態(Critical Status):** 状態が '' | ||
+ | * **警告時手順(Warning Instructions): | ||
+ | * **障害時手順(Critical Instructions): | ||
+ | * **不明時手順(Unknown Instructions): | ||
+ | * **カテゴリ(Category): | ||
+ | * **タグ(Tags): | ||
+ | * **マクロ(Macros): | ||
=== 新たなローカルコンポーネントの作成 === | === 新たなローカルコンポーネントの作成 === | ||
- | 新たなローカルコンポーネントを作成するには、' | ||
- | 新たにローカルコンポーネントを作成するフォームが表示されます。 | + | To create a new local component, click on **Configuration** → **Templates** → **Local components** and click **Create,** which is located at the right bottom of the page. |
- | {{ wiki: | + | 新たなローカルコンポーネントを作成するには、**設定(Configuration)** → **テンプレート(Templates)** → **ローカルコンポーネント(Local components)** をクリックし、ページの右下にある **作成(Create)** をクリックします。 |
+ | A page containing the form for creating new local components will be displayed. Fill out the form with the information given above and click **Create **to save. | ||
- | 前述の情報をフォームに入力し、作成ボタンをクリックします。 | + | 新たにローカルコンポーネントを作成するフォームが表示されます。前述の情報をフォームに入力し、**作成(Create)** |
=== ローカル実行マクロ === | === ローカル実行マクロ === | ||
- | Pandora FMS バージョン 5.0 以降では、ローカルコンポーネントにマクロを定義することができます。マクロは、module_exec パラメータに設定し、_field1_ , _field2_ | + | |
+ | From Pandora FMS versions 5 onwards, it is possible to define macros within local components. These macros are used in the **module_exec** parameter. They follow the structure of '' | ||
+ | |||
+ | Pandora FMS バージョン 5.0 以降では、ローカルコンポーネントにマクロを定義することができます。マクロは、 | ||
モジュールの編集フォームでは、マクロはユーザにとって透過的な通常のフィールドとして表示されます。 | モジュールの編集フォームでは、マクロはユーザにとって透過的な通常のフィールドとして表示されます。 | ||
- | それぞれのマクロには、説明(Description)、デフォルト値(Default value)、ヘルプ(Help)の 3つのフィールドがあります。 | + | Each macro has three fields: **Description**, |
+ | |||
+ | それぞれのマクロには、**説明(Description)**、**デフォルト値(Default value)**、**ヘルプ(Help)** の 3つのフィールドがあります。 | ||
* 説明(Description): | * 説明(Description): | ||
行 144: | 行 216: | ||
* ヘルプ(help): | * ヘルプ(help): | ||
- | {{ wiki: | + | {{ :wiki: |
モジュールコンポーネントにマクロが含まれている場合、デフォルトで表示を簡素化するために、構成データは非表示のままになります。 | モジュールコンポーネントにマクロが含まれている場合、デフォルトで表示を簡素化するために、構成データは非表示のままになります。 | ||
行 457: | 行 529: | ||
* **// | * **// | ||
+ | === WMI ウィザード === | ||
+ | {{ : | ||
- | WMI ウィザードのコンポーネントの特定フィールドは次の通りです。 | + | == ネットワーク WMI 実行 == |
- | | + | When the type of execution is **Network:** |
- | これは、// | + | 実行タイプが **ネットワーク(Network)** |
- | | + | |
- | 一般に、WMI クラスにはキーフィールドがあり、設定されているかどうかに関係なく、常にクエリで返されます。これは、それに指定するフィールドです。 たとえば、// | + | **WMI クラス** |
- | このフィールドの名前は、// | + | It allows to specify the WMI class to check. WMI classes are predefined and included in each namespace from Windows Management Instrumentation® |
- | * **追加フィールドクエリ(Query extra fields)** → // | + | チェックする WMI クラスを指定できます。 WMI クラスは事前定義されており、WindowsManagementInstrumentation®(WMI)コアの各名前空間に含まれています。 |
- | これらのフィールドの名前は、// | + | **Query key field** ( '' |
- | * **クエリフィルタ(Query | + | **クエリキーフィールド(Query |
- | WMI ウィザードコンポーネントでは、WMI スキャンクエリによって返されるレコードごとに異なるモジュールが生成されます。これまでに示した例に基づいて、Windows コンピューターのドライブの空き領域を取得するスキャンクエリは次のようになります。 | + | **Query extra fields** ( '' |
- | SELECT DeviceID, FreeSpace FROM Win32_LogicalDisk WHERE DriveType = 3 | + | **追加フィールドクエリ(Query extra fields)** ( '' |
+ | **Query filters** → Execution: | ||
- | {{ wiki: | + | **クエリフィルタ(Query filters)** → 実行(Execution) |
+ | This space allows indicating the conditions for the WMI query launched by each module generated by the component. It accepts the use of macros with the names of the query felds ('' | ||
- | 実行タイプが **ネットワーク(Network)** の場合は次の通りです。 | + | これにより、コンポーネントによって生成された各モジュールによって起動された WMI クエリの条件を示すことができます。 各フィールドログの値を取得するために、クエリフィールド |
+ | 例: | ||
- | * **クエリフィルタ(Query filters)** → 実行(Execution): | + | < |
+ | </ | ||
- | フィールドの各レコードの値を取得するために、クエリのフィールド名を持つマクロ(// | + | The query is the final execution of a module generated by the component to obtain the free space of the '' |
- | これまでに示した例に基づいて、ドライブ | + | 以下のクエリは、C: ドライブの空き領域を取得取得します。 |
- | SELECT DeviceID, FreeSpace FROM Win32_LogicalDisk WHERE DriveType = 3 AND DeviceID = ' | + | < |
- | * **フィールド値(Field value)**: モジュール値を取得する WMI クエリのフィールドの番号を示します。フィールド 0 はそのクラスのキーフィールドであり、フィールド 1 以上はそれらのクラスの追加フィールドです。 | + | </ |
- | これまでに示した例に基づいて、ディスクの空き容量の値はフィールド 1 (// | + | **Field value** |
- | | + | **フィールド値(Field value)** |
+ | |||
+ | Indicate the number of the field of the WMI query from which you want to obtain the module value. Field 0 is the key field of its class and fields 1, and higher, the additional ones of their class. | ||
+ | |||
+ | モジュール値を取得する WMI クエリのフィールドの番号を示します。フィールド 0 はそのクラスのキーフィールドであり、フィールド 1 以上はそれらのクラスの追加フィールドです。 | ||
+ | |||
+ | **Key string** | ||
+ | |||
+ | **キー文字列(Key string)** | ||
+ | |||
+ | It will allow to convert the module value into boolean (1 or 0) depending on whether the value of the field indicated in //Field value// matches the text string indicated in this field. | ||
+ | |||
+ | // | ||
+ | |||
+ | <WRAP center round important 60%> The Key string option will not be taken into account when the wizard is launched from a Satellite Server by **exec server** </ | ||
<WRAP center round important 60%> | <WRAP center round important 60%> | ||
行 505: | 行 597: | ||
</ | </ | ||
- | {{ wiki:IMG6_wizard_components.png }} | + | {{ :wiki:img6_wizard_components.png }} |
+ | |||
+ | == WMI プラグイン実行 == | ||
+ | |||
+ | {{ : | ||
+ | |||
+ | When there is a **plugin** execution: | ||
実行タイプが **プラグイン(Plugin)** の場合は次の通りです: | 実行タイプが **プラグイン(Plugin)** の場合は次の通りです: | ||
- | | + | It has common fields with **Network** execution until field **Scan** (**Query filters**). |
+ | |||
+ | **スキャン**(**クエリフィルター**)フィールドまでは、**ネットワーク** 実行と共通のフィールドです。 | ||
+ | |||
+ | **Value operation** | ||
+ | |||
+ | **値の計算(Value operation)** | ||
+ | |||
+ | The main purpose of using plugin type components is to be able to perform operations with the values of different query fields, such as obtaining the used-disk percentage from the free-disk bytes and the total disk bytes available. | ||
+ | |||
+ | プラグインタイプのコンポーネントを使用する主な目的は、空きディスク容量と使用可能な合計ディスク容量からディスク使用率を取得するなど、さまざまなクエリフィールドの値を使用して計算を実行できるようにすることです。 | ||
+ | |||
+ | This field allows to indicate an arithmetic operation with which you will obtain the current value of each module generated by the component in the wizard' | ||
このフィールドでは、ウィザードのモジュールプレビューでコンポーネントによって生成された各モジュールの現在の値を取得する算術演算を設定できます。 生成されたモジュールの最終的な実行には影響しません。 | このフィールドでは、ウィザードのモジュールプレビューでコンポーネントによって生成された各モジュールの現在の値を取得する算術演算を設定できます。 生成されたモジュールの最終的な実行には影響しません。 | ||
- | 計算した値を得るために、" | + | It accepts the characters '' |
- | ((_Size_ | + | 計算した値を得るために、" |
- | * **サテライト実行(Satellite execution)**: //exec server// を使用してサテライトサーバからウィザードを起動したときに、生成されたモジュールに対してサテライトサーバが実行するものを指定することができます。 これは、サテライトサーバの // module_exec/ | + | < |
+ | ((_Size_ - _FreeSpace_) * 100) / _Size_ | ||
- | これは、WMI ウィザードのマクロと | + | </ |
+ | |||
+ | **Satellite execution** | ||
+ | |||
+ | **サテライト実行(Satellite execution)** | ||
+ | |||
+ | It allows to indicate the execution that a Satellite Server should perform for the generated modules when the wizard is launched from a Satellite Server by using the //exec server//. It is the command, plugin or script that must be used in a Satellite server '' | ||
+ | |||
+ | //exec server// を使用してサテライトサーバからウィザードを起動したときに、生成されたモジュールに対してサテライトサーバが実行するものを指定することができます。 これは、サテライトサーバの '' | ||
+ | |||
+ | It accepts the use of macros for the WMI wizard and of '' | ||
+ | |||
+ | これは、WMI ウィザードのマクロと | ||
+ | |||
+ | The Satellite Server distributes a recommended plugin for these components: | ||
サテライトサーバには、これらのコンポーネントが要求するプラグインがあります。 | サテライトサーバには、これらのコンポーネントが要求するプラグインがあります。 | ||
- | | + | < |
+ | / | ||
+ | |||
+ | </ | ||
+ | |||
+ | **Server plugin** | ||
+ | |||
+ | **サーバプラグイン(Server plugin)** | ||
+ | |||
+ | It allows to indicate a plugin registered in Pandora FMS console that will be used by the plugin server with each module generated by the component. The choice of a plugin shows at the same time the specific fields for its use in the form. | ||
+ | |||
+ | コンポーネントによって生成された各モジュールでプラグインサーバによって使用される Pandora FMS コンソールに登録されたプラグインを指定することができます。プラグインを選択すると、それ用の特定のフィールドがフォームに表示されます。 | ||
+ | |||
+ | The own plugin fields accept the use of macros for the WMI wizard and '' | ||
- | * **サーバプラグイン(Server plugin)**: コンポーネントによって生成された各モジュールでプラグインサーバによって使用される | + | 独自のプラグインフィールドでは、WMI ウィザードのマクロの使用ができ、'' |
- | 独自のプラグインフィールドでは、WMI ウィザードのマクロの使用ができ、// | + | Pandora FMS console has an already registered and **recommended** plugin for these components: Wizard |
Pandora FMS コンソールには、これらのコンポーネント用の登録済みのプラグインがあります。 | Pandora FMS コンソールには、これらのコンポーネント用の登録済みのプラグインがあります。 | ||
- | Wizard WMI module | + | {{ : |
- | {{ wiki: | + | The specific macros for the WMI wizard components that can be used in the plugin execution fields are |
プラグイン実行フィールドで使用できる WMI ウィザードコンポーネントの特定のマクロは次のとおりです。 | プラグイン実行フィールドで使用できる WMI ウィザードコンポーネントの特定のマクロは次のとおりです。 | ||
- | | + | |
- | * **// | + | * **// |
- | * **// | + | * **// |
- | * **// | + | * **// |
+ | * **// | ||
+ | |||
+ | | ||
+ | * **// | ||
+ | * **// | ||
+ | * **// | ||
+ | |||
+ | The specified fields for WMI Wizard components are: | ||
+ | |||
+ | WMI ウィザードコンポーネントに指定されているフィールドは次のとおりです。 | ||
+ | |||
+ | * **WMI class**: It refers to the WMI class that will be used in the queries of the modules generated by the component. For example: // | ||
+ | |||
+ | * **WMI class**: これは、コンポーネントによって生成されたモジュールのクエリで使用されるWMIクラスを指します。例: | ||
+ | |||
+ | It can be used in other fields from the same form through the macro '' | ||
+ | |||
+ | **Query key field** | ||
+ | |||
+ | **クエリキーフィールド(Query key field)** ('' | ||
+ | |||
+ | It is the name of the key field that will be obtained in the WMI query used in the generated modules. Usually, WMI classes have a key field they always return in any query, whether indicated or not. That is the field that should be indicated here. For instance, the key field of class // | ||
+ | |||
+ | 生成されたモジュールで使用される WMI クエリで取得されるキーフィールドの名前です。 | ||
+ | 一般に、WMI クラスにはキーフィールドがあり、設定されているかどうかに関係なく、常にクエリで返されます。これは、それに指定するフィールドです。 たとえば、// | ||
+ | |||
+ | the name of this field can be obtained in other form fields through the macro '' | ||
+ | |||
+ | このフィールドの名前は、'' | ||
+ | |||
+ | **Query extra fields** | ||
+ | |||
+ | **追加フィールドクエリ(Query extra fields)** → '' | ||
+ | |||
+ | In these fields indicate the names of the additional fields that must be used in the WMI query used in the generated modules. | ||
+ | |||
+ | このフィールドでは、生成されたモジュールで使用される WMI クエリで使用する追加フィールドの名前を指定します。 | ||
+ | |||
+ | The names of these fields can be obtained in other form fields through the macros '' | ||
+ | |||
+ | これらのフィールドの名前は、'' | ||
+ | |||
+ | **Query filters** | ||
+ | |||
+ | **クエリフィルタ(Query filters)** → スキャン(Scan) | ||
+ | |||
+ | In this space the conditions for the WMI query launched in the scan are indicated, which will allow you to obtain one or more logs. E.g.: '' | ||
+ | |||
+ | ここには、スキャンで起動する WMI クエリの条件を指定します。これにより、1つ以上のレコードを取得できます。 たとえば、'' | ||
+ | |||
+ | In WMI wizard components, a different module is generated for each log returned by the WMI scan query. Based on the examples pruvided up to now, the scan query would obtain the free space of the disk units from the Windows computer: | ||
+ | |||
+ | WMI ウィザードコンポーネントでは、WMI スキャンクエリによって返されるレコードごとに異なるモジュールが生成されます。これまでに示した例に基づいて、Windows コンピューターのドライブの空き領域を取得するスキャンクエリは次のようになります。 | ||
+ | |||
+ | < | ||
+ | SELECT DeviceID, FreeSpace FROM Win32_LogicalDisk WHERE DriveType = 3 | ||
+ | |||
+ | </ | ||
+ | |||
+ | {{ : | ||
==== コンポーネントグループ ==== | ==== コンポーネントグループ ==== | ||
コンポーネントのソートや分類をするために、コンポーネントグループがあります。コンポーネントは、作成時のグループに属します。 | コンポーネントのソートや分類をするために、コンポーネントグループがあります。コンポーネントは、作成時のグループに属します。 | ||
- | 定義済みのコンポーネントグループを見るには、// | + | In order to see the existing component groups, go to **Resources** → **Component |
- | {{ wiki: | + | 定義済みのコンポーネントグループを見るには、**リソース(Resources)** → **コンポーネントグループ(Component Groups)** へ行きます。 |
+ | |||
+ | {{ :wiki: | ||
定義済みのグループとその説明が表示されます。 | 定義済みのグループとその説明が表示されます。 | ||
- | {{ wiki:pla10.png?800 }} | + | {{ :wiki:pfms-module_management-component_group_management.png?600x600 |
- | グループの名前をクリックするとその詳細を見ることができます。削除するには、右側の | + | You may view the details on the groups by clicking on their name, delete them by clicking on the trash icon at the right side, on the **Action** column, or create new ones by clicking **Create** at the bottom. you may also select several of them by their respective selection checkbox and clicking **Delete**. |
+ | |||
+ | グループの名前をクリックするとその詳細を見ることができます。削除するには、右側のごみ箱アイコンをクリックします。新たに作成する場合は、**作成(Create)** ボタンをクリックします。それぞれの選択チェックボックスで複数選択して、**削除(Delete)** することもできます。 | ||
新たなコンポーネントグループを作成したい場合は、作成(Create)ボタンをクリックし、フォームに入力します。 | 新たなコンポーネントグループを作成したい場合は、作成(Create)ボタンをクリックし、フォームに入力します。 | ||
- | {{ wiki:pla11.png?800 }} | + | {{ :wiki:pfms-module_management-component_group_management-create.png?600x300 |
+ | |||
+ | Just provide a name for the group and determine whether it has a parent among the existing groups or not. Then click on **Create** once you are done. | ||
- | グループの名前を入力し、既存のグループと親子関係があればそれの選択をするだけです。あとは、作成(Create)ボタンをクリックします。 | + | グループの名前を入力し、既存のグループと親子関係があればそれの選択をするだけです。あとは、 |
これにより、新たなコンポーネントを、作成したコンポーネントグループに追加することができます。 | これにより、新たなコンポーネントを、作成したコンポーネントグループに追加することができます。 | ||