ja:documentation:pandorafms:complex_environments_and_optimization:02_policy

文書の過去の版を表示しています。


ポリシーを使った監視

Enterprise 版

The policy system is designed to facilitate the management of large monitoring environments and allows the propagation of Modules, alerts, external alerts, plugins, remote inventories and collections to Agents in a centralized and homogeneous manner.

ポリシーシステムは、大規模な監視環境の管理を容易にすることを目的としています。 モジュール、アラート、外部アラート、プラグイン、リモートインベントリおよびコレクションを一元化された方法でエージェントに伝播できます。

To make any changes we have made to the policies effective, it is necessary to apply the policy in the corresponding section (Queue).

ポリシーに加えた変更を適用するには、対応する画面で ポリシーの適用(apply the policy) (キューへの挿入) を行います。

Policy management can be performed by clicking on Configuration > Manage policies on the left side of the Pandora FMS web console as shown below.

ポリシー管理は、次のように Pandora FMS Web コンソールの左側のメニューの 設定(configuration) > ポリシー管理(Manage Policies) をクリックします。

You can also get more information with the quick guide "Differences between Templates, Policies and Massive Operations".

クイックガイド “テンプレート、ポリシー、一括操作の違い” でも詳細を確認できます。

Policies management is done in the ManagementConfigurationManage policies section, located on the left side of the Pandora FMS Web Console.

ポリシー管理は、Pandora FMS ウェブコンソールの左にある 管理(Management)設定(Configuration)ポリシー管理(Manage policies) から行えます。

The components of any policy can be quickly accessed by clicking on the corresponding links.

対応するリンクをクリックすると、ポリシーのコンポーネントにすぐにアクセスできます。

ポリシーの検索

It can be done from the Pandora FMS search header both in the Metaconsole and in the node. Searches in the Metaconsole return two types of results:

メタコンソールとノードの両方の Pandora FMS 検索ヘッダから行えます。メタコンソールでの検索では、2つのタイプの結果を返します。

  • Centralized search: The policies shown are those that exist in the Metaconsole itself.
  • Non-centralized search: The policies shown are obtained directly from each node, indicating their origin.
  • 一元化検索(Centralized search): 表示されるポリシーは、メタコンソール自体のポリシーです。
  • 非一元化検索(Non-centralized search): 表示されるポリシーは、各ノードから直接取得されたポリシーです。

ポリシーの追加

Management menu → ConfigurationManage policiesCreate button. Enter the name and group and specify if it will apply to child groups and if it will be forced application for agents without remote configuration enabled. Click Create again to save.

管理(Management) メニュー → 設定(Configuration)ポリシー管理(Manage policies)作成(Create) ボタンをクリックします。名前とグループを入力し、子グループに適用するかどうか、およびリモート設定が有効になっていないエージェントに強制的に適用するかどうかを指定します。 作成(Create) を再度クリックして保存します。

ポリシーの複製

Click on the corresponding icon in the options column:

オプション列の対応するアイコンをクリックします。

The copy of the policy that will be created will be listed as not applied, regardless of the status of the source policy.

作成されるポリシーのコピーは、ソースポリシーの状態に関係なく、適用されていないものとしてリストされます。

監視ポリシーのエクスポートとインポート

  • Export policy: It is done from the Management menu → ResourcesResource exportingPolicy. Choose the policy to export, if you want to export agents, select Export agents and click the Export button just to the right. This option generates files of type .ptr (internally in XML format).
  • Import policy: You can import a policy from a .ptr file from the Management menu → ResourcesResource registration by selecting the .ptr file (use Group filter if the policy contains agents and you want to filter by a specific group) and then click the Upload button.
  • ポリシーのエクスポート: 管理(Management) メニュー → リソース(Resources)リソースのエクスポート(Resource exporting)ポリシー(Policy) から実行できます。 エクスポートするポリシーを選択します。エージェントをエクスポートする場合は、エージェントをエクスポート(Export agents) を選択し、すぐ右側にある エクスポート(Export) ボタンをクリックします。 このオプションは、.ptr (内部的には XML 形式) ファイルを生成します。
  • ポリシーのインポート: 管理(Management) メニュー → (Resources)リソースリソース登録(Resource registration) から .ptr ファイルを選択することで、.ptr ファイルからポリシーをインポートできます (ポリシーにエージェントが含まれており、特定のグループでフィルタリングしたい場合は、グループフィルタ(Group filter) を利用します) そして、アップロード(Upload) ボタンをクリックします。

ポリシーの削除

To delete a policy it is necessary that it does not have any associated Agent.

ポリシーを削除するには、関連づけられたエージェントが無い状態である必要があります。

If a policy has Agents, the delete button will be disabled and a button will appear to delete all its Agents.

ポリシーにエージェントがある場合、削除ボタンは無効になり、全エージェントの削除ボタンが表示されます。

This button will queue the deletion of Agents. Once processed, the button to delete the policy will be active again.

このボタンは削除処理をキューに追加します。処理が完了すると、ポリシーの削除ボタンが再び有効になります。

In the policy operations queue there is a summary of the elements that have been changed since the last time the policy was applied.

ポリシー操作キューには、最後にポリシーが適用されてから変更された要素の概要が含まれます。

In this list you have the elements pending to be updated and those pending to be deleted. This summary will indicate whether or not the policy needs to be applied. Sometimes, next to the icon of agents pending to be applied, a button will appear to apply them.

このリストには、更新が保留中の要素と削除が保留中の要素があります。 この概要には、ポリシーを適用する必要があるかどうかが示されます。 場合によっては、適用保留中のエージェントのアイコンの横に、適用するためのボタンが表示されることがあります。

  • If the pending modifications only affect the database (for example, changes in alerts) this button will only make changes at that level, so the application will be faster.
  • On the other hand, if the configuration that affects the configuration files has been modified (for example, if local collections or modules have been modified), the application will be complete.
  • Below the summary, on the right side, there is a button to apply everything, regardless of the type of pending modifications.
  • 保留中の変更がデータベースにのみ影響する場合 (アラートの変更など)、このボタンはそのレベルの変更のみを行うため適用は高速になります。
  • 一方、設定ファイルに影響する設定変更の場合 (たとえば、ローカル設定やモジュールが変更された場合)、一通りの適用が行なわれます。
  • 概要の右下には、保留中の変更の種類に関係なく、すべてを適用するボタンがあります。

To configure the policy, click on the name of the policy. Once inside, you can access the different configuration sections through the upper right menu.

ポリシーを設定するには、ポリシーの名前をクリックします。 中に入ると、右上のメニューからさまざまな設定セクションにアクセスできます。

Within the configuration of a policy, in addition to the setup, it has the following tabs:

ポリシーの設定では、セットアップに加えて、次のタブがあります。

  • Agents.
  • Modules.
  • Invent modulesriver.
  • Alerts.
  • External alerts.
  • Collections.
  • Linking.
  • Line.
  • Agent Plugins.
  • Agent Wizards.
  • エージェント(Agents)
  • モジュール(Modules)
  • インベントリモジュール(Inventory Modules)
  • アラート(Alerts)
  • 外部アラート(External alerts)
  • コレクション(Collections)
  • リンク(Linking)
  • キュー(Line)
  • エージェントプラグイン(Agent plugins)
  • エージェントウィザード(Agent wizards)

The possible operations on a policy are:

ポリシーで可能な操作は次のとおりです。

  • Add/Remove one or more existing Agents to the policy.
  • Create/Edit/Delete a Module.
  • Define/Edit/Delete an Agent plugin.
  • Create/Edit/Delete an alert.
  • Create/Edit/Delete an external alert.
  • Add/Remove an existing collection.
  • Add/Remove an existing Inventory Module.
  • Link to the policy one or more adopted Modules.
  • Apply the changes made in the policy.
  • 1 つまたは複数の既存のポリシー エージェントの追加/削除。
  • モジュールの作成/編集/削除。
  • エージェントプラグインの定義/編集/削除。
  • アラートの作成/編集/削除。
  • 外部アラートの作成/編集/削除。
  • 既存のコレクションの追加/削除。
  • 既存のインベントリモジュールの追加/削除。
  • ポリシーを 1 つまたは複数の関連モジュールにリンク。
  • ポリシーに変更を適用。
  • The different actions that can be performed will not be applied until the policy is applied.
  • If you have a policy applied and elements are modified or deleted, the changes will not be made until your next application.
  • All changes will be reflected in the window Queue , section from which the changes will be applied.
  • 実行可能な異なるアクションはポリシーが適用されるまで適用されません。
  • ポリシーが適用された状態で要素が変更または削除された場合、その変更は次回適用されるまで反映されません。
  • すべての変更は、キュー(Queue) ウインドウに反映されます。

エージェント

To add Agents to the policy, you have filtering options at the top to select the Agents you need as a group by selecting them using the Control Ctrl or Shift Shift keys. At the bottom of the window there is a list with all the Agents associated with the policy, including those that are pending removal from it.

ポリシーにエージェントを追加するには、上部のフィルタリングオプションで、Ctrl キーまたは Shift キーを使用してグループとして必要なエージェントを選択します。 ウィンドウの下部には、ポリシーからの削除が保留されているエージェントを含む、ポリシーに関連付けられたすべてのエージェントのリストが表示されます。

Likewise, the list of Agents has a filter by group, subchain or its application status.

同様に、エージェントのリストには、グループ、サブチェーン、またはそのアプリケーションステータスによるフィルタがあります。

  • When an Agent is deleted it will appear with its name highlighted in red and instead of a delete button it will show a button to undo the deletion and re-associate the Agent to the policy.
  • Remember that adding or removing Agents from the policy will become effective when the policy is applied on the page Queue.
  • エージェントが削除されると、その名前が赤で強調表示され、削除ボタンの代わりに削除を元に戻してエージェントをポリシーに再度関連付けるためのボタンが表示されます。
  • ポリシーに対するエージェントの追加または削除は、キュー(Queue) の画面でポリシーが適用された際に有効になります。

グループ

As of version 760, if new agents are assigned to any of the groups configured in this option, they will automatically receive the policy settings.

バージョン 760 以降、このオプションで設定されたグループのいずれかに新しいエージェントが割り当てられると、それらのエージェントは自動的にポリシー設定を受け取ります。

Under Apply to select Groups and then browse and select the required groups. Then add Groups in policy to the list. The lower part of the window shows a list with all the groups associated with the policy, including those that are pending to be removed from it.

適用先(Apply to)グループ(Groups) を選択し、必要なグループを参照して選択します。 次に、ポリシー内のグループ(Groups in policy) をリストに追加します。 ウィンドウの下部には、ポリシーからの削除が保留されているグループも含め、ポリシーに関連付けられているすべてのグループのリストが表示されます。

When a group is deleted it will appear with the name crossed out and instead of the deleted button there will be a button to undo the deletion and re-associate the group to the policy. Agents belonging to the group will also appear crossed out.

グループが削除されると、名前に取り消し線が引かれて表示され、削除ボタンの代わりに、削除を元に戻してグループをポリシーに再度関連付けるためのボタンが表示されます。 グループに属するエージェントも取り消し線で表示されます。

Adding or removing groups from the policy will not take effect until the policy is applied.

ポリシーへのグループの追加または削除は、ポリシーが適用されるまで有効になりません。

モジュール

This menu allows you to configure the Modules that are going to be added to the policy.

このメニューでは、ポリシーに追加するモジュールを設定できます。

To add Modules you must choose the type from the dropdown menu. Select one of the possible ones and press the Create button:

モジュールを追加するには、ドロップダウンメニューからタイプを選択する必要があります。 可能なもののうち 1 つを選択し、作成(Create) ボタンを押します。

データサーバモジュールの作成

Enterprise VersionThe Data Server Modules are added to the Software Agents. To work with these Modules it is necessary that the agents have remote configuration enabled.

Enterprise 版データサーバモジュールは、ソフトウエアエージェントへ追加するモジュールです。このモジュールが動作するようにするためには、エージェントでリモート設定が有効になっている必要があります。

Choose the Create a new data server module option and click the Create button.

データサーバモジュールの新規作成(Create a new data server module) オプションを選択し、作成(Create) ボタンをクリックします。

Configure all the fields of the Module. The Data configuration field is the one that allows you to enter the Module code that will be applied to the Agents that subscribe to said policy. This modification will be reflected in the pandora_agent.conf file of the Agent itself.

モジュールのすべてのフィールドを設定します。 データ設定(Data configuration) フィールドには、上記のポリシーに含まれるエージェントに適用されるモジュールコードを入力できます。 この変更は、エージェント自体の pandora_agent.conf ファイルに反映されます。

You can either fill in the fields or, if you have previously defined a localcomponent, select it. You can learn more about the description of these fields Templates and components.

フィールドに入力するか、以前に ローカルコンポーネント を定義している場合はそれを選択できます。これらのフィールドの説明について詳しくは、テンプレートとコンポーネント をご覧ください。

ネットワークサーバモジュールの作成

To create a Network Server Module, choose the Create a new network server module option and click the Create button.

ネットワークサーバモジュールを作成するには、ネットワークサーバモジュールの新規作成(Create a new Network Server Module) を選択し、作成(Create) をクリックします。

Configure all the fields of the Module. The description of the fields of these screens are the same explained in the chapter Templates and components. Once you have filled in all the fields, click on the Create button.

モジュールのすべてのフィールドを設定します。 これらの画面のフィールドの説明は、テンプレートとコンポーネント の章で説明しているものと同じです。 すべてのフィールドに入力したら、作成(Create) ボタンをクリックします。

プラグインサーバモジュールの作成

Choose the Create a new Plugin server module option and then Create. enter a name and then go to the Advanced options section and select in Plugin one of the registered plugins.

プラグインサーバモジュールの新規作成(Create a new Plugin Server Module) を選択して 作成(Create) をクリックし、名前を入力します。次に、詳細オプション(Advanced options) セクションに移動し、プラグイン(Plugin) で登録されているプラグインの 1 つを選択します。

Once you have filled in all the fields, click on the Create buttontea.

すべてのフィールドを入力したら、作成(Create) ボタンをクリックします。

Use macros to set dynamic parameters, such as an Agent's IP address with _address_.

エージェントの IP アドレスを表す _address_ など、動的なパラメータを設定するには、マクロを利用します。

WMI サーバモジュールの作成

To create a WMI Server type module, select the Create a new WMI server module option and click the Create button. Assign a name and then configure the Module fields.

WMI サーバモジュールを作成するには、WMI サーバモジュールを新規作成する(Create a new WMI Server Module) をクリックし、作成(Create) をクリックします。名前を割り当て、モジュールのフィールドを設定します。

For Target IP (address) there are three options:

対象IP (アドレス)(Target IP (Address)) には、3つのオプションがあります。

  1. Auto: It is always updated with the first IP address that the agent has.
  2. Force primary key: The module is created with the agent's primary IP address at the time of applying the policy, if the agent's IP address is changed, the old IP address is maintained.
  3. Custom: Allows you to assign a specific IP address in the policy, for which a text box will appear when choosing this option.
  1. 自動(Auto): エージェントが持つ最初の IP アドレスで常に更新されます。
  2. プライマリキーを強制(Force primary key): モジュールは、ポリシーの適用時にエージェントのプライマリ IP アドレスを使用して作成されます。エージェントの IP アドレスが変更されても、古い IP アドレスが維持されます。
  3. カスタム(Custom): ポリシーで特定の IP アドレスを割り当てることができます。このオプションを選択すると、テキストボックスが表示されます。

The description of the fields of these screens is in the Templates and components chapter. Once all the fields are filled in, click on the Create button.

これらの画面のフィールドの説明は、テンプレートとコンポーネント の章にあります。 すべてのフィールドに入力したら、作成(Create) ボタンをクリックします。

For more information about creating remote WMI modules, see Remote Windows monitoring with WMI.

リモート WMI モジュールの作成の詳細については、WMI でのリモート Windows モニタリング を参照してください。

ウェブサーバモジュールの作成

Choose the Create a new web server module option and click the Create button. Configure the Module fields and access the Web checks section. Then access the advanced options (Advanced options). To save use the Create button again.

ウェブサーバモジュールの新規作成(Create a new Web Server module) オプションを選択し、作成(Create) ボタンをクリックします。 モジュールフィールドを設定し、Web checks セクションにアクセスします。 次に、詳細オプション(Advanced options) にアクセスします。 保存するには、もう一度 作成(Create) ボタンを使用します。

In the case of Web Modules there are no components.

ウェブモジュールでは、コンポーネントはありません。

作成済モジュールの編集

It is possible to modify any of the Modules assigned to a policy. To do this, simply click on the name of the Module so that the configuration options appear.

ポリシーに割り当てられたモジュールは編集することができます。それにはモジュール名をクリックします。すると設定オプションが表示されます。

If the Policy Module is renamed, the Module name will be updated as well as any other fields when the policy is applied.

ポリシーモジュールの名前を変更すると、ポリシーが適用されたときの他のフィールドの名前が変更されます。

Once they have been modified, click on the Update button.

修正したら、更新(Update) ボタンをクリックします。

If the Policy Module is renamed and a module with the new name already exists in an Agent, this Module will be adopted and the Module with the old name will be removed.

ポリシーモジュールの名前を変更し、エージェント内に新しい名前のモジュールが存在すると、そのモジュールに適用され、古い名前のモジュールは削除されます。

作成済モジュールの削除

To remove a Module from the policy and remove it from the Agents configuration, you must click on the trash can icon located to the right of the Module. By doing so, the Module will remain in the list but with the name crossed out and the trash can button will become an undo delete button.

ポリシーからモジュールを削除し、エージェントからも削除するには、モジュール名の右側のごみ箱をクリックします。実行するとモジュールの表示は残っていますが、打消し線が引かれ、削除ボタンが取消に置き換わります。

If you need to delete multiple modules, you can select the box to the right of the trash can and press the Delete button.

複数のモジュールを削除したい場合は、ごみ箱アイコンの右側のチェックボックスを選択して、削除(Delete) ボタンをクリックします。

インベントリモジュール

Enterprise version.In a policy you can also create Inventory Modules, choosing one from the list of those available in the system, an interval and the credentials.

Enterprise 版システムに存在するインベントリ、間隔、および権限を選択することで、ポリシーにインベントリモジュールを作成することもできます。

As with the rest of the elements of the policies, if you delete an inventory module, it will appear crossed out and an undo button will appear instead of the delete button.

他のポリシーの要素と同じように、インベントリモジュールを削除すると、削除ボタンの代わりに取り消し線と 取り消しアイコンが表示されます。

For more information about adding Remote Inventory Modules you can consult Inventory Modules.

リモートインベントリモジュールの追加に関しての詳細は、インベントリモジュール を参照してください。

ポリシーモジュールの状態

When a Module is created from a policy, it appears referenced through the policies icon.

ポリシーからモジュールが作成されると、そのモジュールはポリシーアイコンで参照されます。

リンク済モジュール

These Modules are created in the policy and when applying the policy they are also created in the Agent. Modules can be linked and unlinked from the configuration page of the Module itself by pressing this button.

これらは、ポリシーで作成されるモジュールです、適用されるとエージェント内にも作成されます。このボタンを押すと、モジュール自体の設定ページからモジュールをリンクしたりリンク解除したりできます。

リンク解除モジュール

Unbound Modules are those that belong to a policy but are not sensitive to changes to it. They can be useful because they allow you to set individual exceptions to Modules belonging to a policy. In this way you can customize a Module of a given Agent within a policy without removing it from it.

リンクされていないモジュールは、ポリシーに属しているが、ポリシーの変更の影響を受けないモジュールです。 特定のポリシーに属するモジュールに対して個別の例外を作ることができるため便利です。これにより、ポリシーから特定のエージェントモジュールをカスタマイズすることができます。

Policy changes will be applied only when the Module is linked again.

ポリシーの変更は、モジュールが再びリンクされたときにのみ適用されます。

適用済モジュール

These Modules were created in the policy with the same name as an existing Module in the Agent. When applying the policy, Pandora FMS will use the data of the existing Module instead of creating a new Module and it will continue to be managed from the Agent.

このモジュールは、エージェント内の既存のモジュールと同じ名前でポリシー内に作成されたものです。 ポリシーを適用する場合、Pandora FMS は新しいモジュールを作成する代わりに既存のモジュールのデータを使用し、エージェントから管理され続けます。

  • This type of Modules are not affected by the changes made in the policys.
  • When deleting a policy, the adopted Modules are not deleted from the Agents.
  • このタイプのモジュールは、ポリシーで行われた変更の影響を受けません。
  • ポリシーを削除しても、適用済モジュールはエージェントから削除されません。
リンク・適用済モジュール

An Adopted Module can be bound to make use of the definition set in the policy instead of the local one. In this way, when managing the Module from the policy, when you make a change, this module changes.

適用済モジュールをリンクして、ローカルの定義の代わりにポリシーで設定された定義を使用できます。これにより、ポリシーからモジュールを管理するときに、何らかの変更があるとモジュールも変更されます。

When an Agent is removed from a policy, the Linked Modules are removed and the Adopted Modules and Linked Adopted Modules will remain.

ポリシーからエージェントを削除すると、リンク済モジュールは削除され、リンク・適用済モジュールのみが保持されます。

アラート

アラートの追加

To add an alert, associate one of the previously defined Alert template alert templates with a Module belonging to the policy and then click the Add button.

アラートを追加するには、アラートテンプレート(Alert template)を事前に定義したポリシーのモジュールに割り当てて 追加(Add) ボタンをクリックします。

アラートの編集

You can add actions, put on hold or standby or deactivate an alert. If you want to change the Module or the template, you must delete it and create a new alert.

アクションを追加したり、アラートを静観またはスタンバイにしたり無効化したりできます。 モジュールまたはテンプレートを変更する場合は、それを削除し、新しいアラートを作成する必要があります。

アラートの削除

To delete the alert from the policy and remove it from the Agents configuration, you must click on the trash can icon to the right of the alert. When you do this, the alert will remain in the list but with the name crossed out and the trash can button will become an undo delete button.

ポリシーからアラートを削除し、設定されたエージェントから削除するには、アラートの行のゴミ箱アイコンをクリックします。これを実行するとアラートは一覧には残りますが、名前が取り消し表示となり、削除ボタンが取り消しボタンに変わります。

外部アラート

External Alerts allow you to link alerts with Agent Modules that are not in the Modules list of the policy. It is very useful to assign alerts only to some Agent Modules and not to all of them.

外部アラートを使用すると、ポリシーのモジュールリストにないエージェントモジュールにアラートをリンクできます。アラートをすべてのエージェントモジュールではなく、一部のエージェントモジュールにのみ割り当てると非常に便利です。

外部アラートの追加

To create an External Alert, you must fill in the following form:

外部アラートを作成するには、以下のフィールドを入力する必要があります。

This functionality is available both in Metaconsole and in nodes.

この機能は、メタコンソールとノードの両方にあります。

外部アラートの編集

The only edit allowed is the addition or deletion of external alert actions. For other changes it must be deleted and created again.

編集では、外部アラートアクションの追加または削除のみできます。 その他の変更を行う場合は、削除して再度作成する必要があります。

外部アラートの削除

To remove the External Alert from the policy and remove it from the Agents configuration, click the trash can icon located to the right of the External Alert.

外部アラートをポリシーから削除し、エージェント設定からも削除するには、外部アラートの右側にあるゴミ箱アイコンをクリックします。

The deletion system is the same as that of normal alerts; it will not become effective until the policy is applied.

削除の仕組みは通常のアラートと同じです。 ポリシーが適用されるまで、削除は有効になりません。

複数のポリシーからの外部アラート

NG 766 version or later.

バージョン NG 766 以降

One or several modules can have different actions from different policies.

1 つまたは複数のモジュールに、さまざまなポリシーからのさまざまなアクションを設定できます。

This feature is also in Metaconsole.

この機能はメタコンソールにもあります。

エージェントプラグイン

The way to add plugins in policies is exactly the same as how it is done in an Agent. You can consult the section "Plugins in Software Agents" for more information.

ポリシーにプラグインを追加する方法は、エージェントで行う方法とまったく同じです。 詳細については、"ソフトウエアエージェントでのプラグインの利用" の章を参照してください。

In order for an Agent plugin to be applied by a policy, the plugin must exist in the specified path within the Agent.

エージェントプラグインがポリシーによって適用されるには、プラグインがエージェントによって指定されたパスに存在している必要があります。

Enterprise versionThese are resources used to massively deploy scripts or plugins to be used in Software Agents, monitoring policies on agents and Satellite servers. It is accessed from the menu ConfigurationCollections.

Enterprise 版これらは通常、ソフトウエアエージェント、エージェントの監視ポリシー、および、サテライトサーバ で、スクリプトまたはプラグインを一括展開するために使用されます。設定(Configuration)コレクション(Collections) メニューからアクセスします。

To create a new file collection, click Create:

新しいファイル コレクションを作成するには、作成(Create) ボタンをクリックします。

Fill in the name, group, short name and description and click Create.

名前、グループ、短い名前、および説明を入力し、作成(Create) をクリックします。

To add resources to a collection go back to the collection list and click on the name of the collection resources will be added to.

リソースをコレクションに追加するには、コレクション一覧に戻り、リソースを追加するコレクションの名前をクリックします。

In the three icons highlighted in the image above, from left to right you may create a directory, create a text (which you can then edit) or store a new file.

上の画像で強調表示されている 3 つのアイコンでは、左から右に、ディレクトリの作成、テキストの作成 (後で編集可能)、または新しいファイルの保存を行うことができます。

Once the resources have been added, return to the collection list and an icon with a yellow triangle will appear where you may click to synchronize the changes with the different Pandora FMS elements (agents, Software Agents, monitoring policies and Satellite servers).

リソースが追加されたら、コレクションのリストと黄色の三角形のアイコンに戻ります。ここをクリックすると、変更を Pandora FMS のさまざまな要素 (エージェント、ソフトウェアエージェント、監視ポリシー、サテライトサーバ) と同期できます。

Each collection has its own base directory. In the Web Console these are stored in the directory /pandora_console/attachment/collection with a name like fc_XXX, where XXX is the numeric ID of the collection. File collections can contain subdirectories. File collections are transferred as ZIP (compressed) files to the Agent, through Tentacle. File collections are only supported with Tentacle transfer mode.

各コレクションには独自のベースディレクトリがあります。 Web コンソールでは、これらはディレクトリ /pandora_console/attachment/collectionfc_XXX のような名前で保存されます。ここで、XXX はコレクションの数値 ID です。 ファイルコレクションには、サブディレクトリを含めることができます。 ファイルコレクションは、Tentacle 経由で ZIP (圧縮) ファイルとしてエージェントに転送されます。 ファイルコレクションは、Tentacle 転送モードでのみサポートされます。

ファイルコレクションとソフトウエアエージェント

Go to ResourcesManage agents and click on the name of a Software Agent. Click on the Collection tab. You will have a list of available collections similar to this one:

リソース(Resources)エージェント管理(Manage agents) へ行き、ソフトウエアエージェントの名前をクリックします。コレクション(Collection) タブをクリックします。次のような定義済のコレクション一覧が表示されます。

If a Software Agent has remote configuration disabled it will display the following warning:

ソフトウエアエージェントの リモート設定が無効化されている場合は、次の警告が表示されます。

To add a collection click on the sum icon in the Add column:

コレクションを追加するには、追加(Add) 列の合計アイコンをクリックします:

If you see an icon with a yellow warning triangle in the Status column, either the collection is empty or the collection has not been synchronized. If the collection contains files or directories, click on the yellow icon. Once you have applied the changes the status of the collection will indicate the success of the synchronization.

状態(Status) 列に黄色の警告三角形のアイコンが表示される場合は、コレクションが空であるか、コレクションが同期されていません。 コレクションにファイルまたはディレクトリが含まれている場合は、黄色のアイコンをクリックします。 変更を適用すると、コレクションのステータスが同期の成功を示します。

After a few minutes you can go to ConfigurationCollections and click on the name of the added collection. The newly added Software Agent will be displayed in the Agents tab.

数分後、設定(Configuration)コレクション(Collections) に移動し、追加したコレクションの名前をクリックします。 新しく追加されたソフトウェアエージェントがエージェントタブに表示されます。

ソフトウエアエージェントにおけるコレクションの場所

Each collection of files has a short name; for this example fc_13830334393. This means that the utilities, scripts or executables that are inside the collection will be in:

それぞれのファイルコレクションは、短い名前を持っています。この例では、fc_1383033439 です。ユーティリティ、スクリプトや、実行ファイルなどを含んだコレクションが以下に置かれることを意味しています。

%ProgramFiles%\pandora_agent\collections\fc_13830334393

It is important to know that the collection is compressed to be sent to the Software Agent, so the latter must have the unzip.exe tool in order to decompress the file. As of version 3.2 of the Agent, this utility is installed inside:

コレクションは圧縮された形式でソフトウエアエージェントに送信されるため、ソフトウエアエージェントには、ファイルを解凍するための unzip.exe ツールが含まれている必要があることに注意してください。 エージェントバージョン 3.2 以降、このツールは以下にインストールされています。

%ProgramFiles%\pandora_agent\utils

You need to know this to be able to use Modules that work when working with those files, so that you can specify the full “real” path. Each collection of files is stored at a different address, to prevent different collections of files from overwriting or conflicting with each other.

完全な “実際の”パスを指定して、これらのファイルを利用してモジュールが動くようにする必要があることを理解してください。各コレクションファイルは異なる場所に保存され、異なるコレクションファイルが互いに上書きまたは競合するのを防ぎます。

The collection control system is based on md5 hashes, similar to the management of Agent configuration files. When creating the collection in the Pandora FMS Web Console, an md5 hash is created and sent to the Software Agent. This md5 will only be updated when there are changes in the collection in the Pandora FMS Web Console side, and not in the Software Agent. Therefore, the changes in the collections made locally in the agents will remain as long as the collection is not modified in the Web Console.

コレクション制御システムは md5 ハッシュに基づいており、エージェント設定ファイルの管理と同様です。 Pandora FMS ウェブコンソールでコレクションを作成すると、md5 ハッシュが作成され、ソフトウェアエージェントに送信されます。 この md5 は、ソフトウェアエージェントではなく、Pandora FMS ウェブコンソール側のコレクションに変更がある場合にのみ更新されます。 したがって、エージェントでローカルに行われたコレクションの変更は、コレクションがウェブコンソールで変更されない限りそのまま残ります。

If any change is made in the collection in the Web Console side, the md5 will be recalculated, and when it disagrees with the existing one in the Agents it will apply the last configuration of the collection, overwriting the previous one and eliminating possible local modifications on the collections.

ウェブコンソール側でコレクションに変更が加えられると、md5 が再計算され、エージェント内の既存の設定と一致しない場合は、コレクションの最後の設定が適用され、以前の設定が上書きされ、コレクションに対してローカルで行った変更は破棄されます。

If you want to use a Module that uses a file included in the collection, reference only the directory that contains the collection, using its fixed identifier. This is an example using a plugin Module:

コレクションに含まれるファイルを使用するモジュールを使用する場合は、その固定識別子を使用して、コレクションを含むディレクトリのみを参照してください。 これは プラグインモジュール を使用した例です:

ファイルコレクションと監視ポリシー

It works much like individual Agent collections, but instead of applying a collection to a specific Agent it is applied to a policy:

個々のエージェントコレクションと同じように機能しますが、コレクションを特定のエージェントに適用する代わりに、ポリシーに適用します。

Refer to this section to manage and synchronize collections.

コレクションを管理および同期するには、こちらを参照してください

サテライトサーバファイルコレクション

Versión EnterpriseClick on the ServersManage servers menu and then click on the remote configuration icon of the Satellite server to which the collection will be added. Click on the Collections tab and in the list of available collections, in the Actions column add the respective collection by clicking on the + icon. You can also delete the added collections by clicking on the trash can icon.

Enterprise 版サーバ(Servers)サーバ管理(Manage servers) メニューをクリックし、コレクションが追加されるサテライトサーバのリモート設定アイコンをクリックします。 コレクション(Collections) タブをクリックし、使用可能なコレクションの一覧で、アクション(Actions) 列の + アイコンをクリックして、それぞれのコレクションを追加します。ごみ箱アイコンをクリックして、追加したコレクションを削除することもできます。

When you save the changes, after a few minutes, you will see in the configuration file the new section created with the added collections and their respective short name.

変更を保存すると、数分後に、追加されたコレクションとそれぞれの短い名前で作成された新しいセクションが設定ファイルに表示されます。

Refer to this section to manage and synchronize collections.

コレクションの管理と同期はこちらの章を参照してください。

メタコンソールでのファイルコレクション

From Pandora FMS 729 OUM you can centralize the collections management from the Metaconsole. To access go to the Centralised managementAgent management menu and click on the Collections tab.

Pandora FMS 729 OUM からは、[:ja:documentation:06_metaconsole:01_introduction|メタコンソール]]からコレクションの中央管理ができます。それには、中央管理(Centralized management)エージェント管理(Agent management) メニューに移動し、コレクション(Collections) タブをクリックします。

Refer to this section to manage and synchronize collections, as they work similarly in the Web Console.

ウェブコンソールと同じようにコレクションを管理および同期するには、こちらの章を参照してください。

設定と中央管理モード

メタコンソールには中央管理モードがあります。つまり、ポリシーに関しては管理はメタコンソールから行われ、ノードでは実行しません。メタコンソールでは、一般設定からこのモードを選択します。

For the configured nodes to know that the mode is centralized, just go to the license screen and synchronize. That way, all policy management pages will be informative only, that is, available in read-only mode. The new nodes that are added will be automatically configured in this mode.

ノードが中央管理モードに設定されていることを確認するには、ライセンス画面に移動して同期します。 そうすれば、すべてのポリシー管理ページは情報のみ、つまり読み取り専用モードで利用できるようになります。 追加される新しいノードは、このモードで自動的に設定されます。

ノードが中央管理モードであるかを確認してください。この場合、ポリシー画面に警告メッセージが表示されます。

メタコンソールにおけるポリシーキュー

The policy queue in the Metaconsole is different from that of the nodes. While in the latter, you can see the status of the implementation of the incomplete policies and a history of those already completed, in the Metaconsole this second part has been deleted. Only those that have not been applied or are in progress are shown indicating the node they belong to.

メタコンソールにおけるポリシーキューは、ノードとは異なります。ノードでは、状態表示画面で適用が完了していないポリシーおよび適用済ポリシーの履歴を見ることができましたが、メタコンソールでは後者が削除されました。適用されていない、または進行中のポリシーだけが、それが属するノードと共に表示されます。

ただし、履歴を確認したい場合はノードで見ることができます。リードオンリーになっている中で、唯一これだけがノードで管理できる部分です。

データの整合性

ノードとメタコンソールでポリシーのデータは同じでなければいけません。モジュール、アラート、インベントリモジュール、コレクションなどが関連します。メタコンソールからポリシーを適用したときに、これらのすべてのデータはノードにコピーされます。

これは、非常に多様で非常に機密性の高い情報です。データのコピー時にエラーが発生するかもしれません。その場合は、コンソールにエラーが表示され、ノードは前のデータに戻されます。クリーンインストールでは問題は発生しませんが、ノードで手動で作成した以前のポリシー構成を削除し、メタコンソールに渡して後でそれらを同期させることをお勧めします。

  • ja/documentation/pandorafms/complex_environments_and_optimization/02_policy.1707203819.txt.gz
  • 最終更新: 2024/02/06 07:16
  • by junichi