This is a translation of the original English documentation page. Help us make it better.

2 テンプレートグループの設定

概要

テンプレートグループは、テンプレートを論理的にグループ化し、ユーザー権限を割り当てるために使用されます。

各テンプレートには、少なくとも1つのテンプレートグループが割り当てられている必要があります。1つのテンプレートが複数のテンプレートグループに属する場合があり、各テンプレートグループには複数のテンプレートが含まれる場合があります。

Zabbixでは、すべての権限はグループ(ユーザーグループホストグループ、およびテンプレートグループ)に基づいていることに注意してください。そのため、1人のユーザーが1つのテンプレートにアクセスする必要がある場合でも、そのテンプレートを含むテンプレートグループへのアクセス権限を持つユーザーグループにユーザーを追加することでアクセス権限が付与されます。

設定

Super admin のユーザーのみがテンプレートグループを作成できます。

Zabbixフロントエンドでテンプレートグループを作成するには、2つの選択肢があります。

選択肢1:

  • 次の場所に移動します: データ収集 → テンプレートグループ
  • 画面の右上隅にあるテンプレートグループの作成をクリックします
  • フォームにグループ名を入力します

選択肢2: テンプレートの設定時に、テンプレートグループ入力フィールドに存在しないグループ名を入力します。

テンプレートグループが作成されると、データ収集テンプレートグループの下のリストでグループ名をクリックして、グループ名を編集したり、グループを複製したり、グループを削除したりできます。

テンプレートグループを削除すると、論理グループのみが削除され、グループ内のテンプレートは削除されません。既存のテンプレートが唯一所属しているテンプレートグループは削除することはできません。

Creating template subgroups

A template subgroup (or nested template group) is a child of the parent template group that contains it.

A subgroup is created by using the forward slash '/' in the group name input field to denote its relation to the parent group(s). For example:

  • inputting Linux servers/Databases creates the Linux servers/Databases subgroup of the parent group Linux servers.
  • inputting Linux servers/Databases/MySQL/Tokyo creates the respective subgroup within the nested parent groups Linux servers, Linux servers/Databases, Linux servers/Databases/MySQL.

When creating a subgroup, using leading or trailing slashes, or several slashes in a row is not allowed. Escaping of '/' is not supported.

It is not required to create any parent template group(s) before creating a subgroup. You can choose whether to start by creating a subgroup (for example, Linux servers/Databases) or any parent template group(s) (in our example, Linux servers). If you start by creating a subgroup, parent template group(s) will not be created automatically.

Permissions to template groups
  • When creating a subgroup to an existing parent template group (for example, creating Databases/MySQL when Databases already exists), user group permissions to the subgroup are inherited from the parent.
  • When creating a parent template group to an existing subgroup (for example, creating Databases when Databases/MySQL already exists), no permissions to the parent are set.

When editing any template group, you can also set an additional option, Apply permissions to all subgroups.

Marking this checkbox and clicking on Update will apply the same level of permissions to all current and future subgroups of the template group being edited.

So, if any user groups have been given varying permissions to the subgroups of the template group being edited, marking the checkbox will grant all current and future subgroups the same user permissions as the group being edited.

Note that this option is not saved in the database and will override existing permissions. Any changes made through this option can be reverted only manually.