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

2 Configuring a host group

Overview

Host groups are used for the logical grouping of hosts and assigning user permissions to them.

Each host must have at least one host group assigned. A host may belong to multiple host groups, and each host group may contain multiple hosts.

Note that in Zabbix, all permissions are based on groups: user groups, host groups, and template groups. So, even if a single user needs access to a single host, it is granted by adding the user to a user group that has permission to access the host group containing that host.

Configuration

Only Super admin users can create host groups.

There are two options of creating a host group in Zabbix frontend.

Option one:

  • Go to: Data collectionHost groups
  • Click on Create host group in the upper right corner of the screen
  • Enter the group name in the form

Option two: when configuring a host, enter a non-existing group name in the Host groups input field.

Once the host group is created, you can click on the group name in the list under Data collectionHost groups to edit the group name, clone the group, or delete the group.

Deleting a host group only deletes the logical group, not the hosts in the group. It is not possible to delete a host group that is the only group for any existing host.

ホストサブグループの作成

ホストサブグループ(またはネストされたホストグループ)は、それを含む親ホスト グループの子です。

サブグループは、グループ名入力フィールドでスラッシュ'/'を使用して、親グループとの関係を示すことによって作成されます。例:

  • Europe/Latviaと入力すると、親グループEuropeEurope/Latviaサブグループが作成されます。
  • Europe/Latvia/Riga/Zabbix serversと入力すると、ネストされた親グループEuropeEurope/LatviaEurope/Latvia/Riga内にそれぞれのサブグループが作成されます。

サブグループを作成する場合、先頭または末尾にスラッシュを使用したり、複数のスラッシュを連続して使用したりすることはできません。 '/' のエスケープはサポートされていません。

サブグループを作成する前に親ホストグループを作成する必要はありません。サブグループ(例: Europe/Latvia)か親ホストグループ(この例ではEurope)か、どちらからでも作成できます。サブグループを先に作成しても、自動的に親ホストグループが作成されることはありません

ホストグループへの権限
  • 既存の親ホストグループにサブグループを作成する場合(たとえば、Europeがすでに存在し、Europe/Latviaを作成する)、サブグループへのユーザーグループ権限は親から継承されます。
  • 既存のサブグループに親ホストグループを作成する場合(たとえば、Europe/Latviaがすでに存在し、Europeを作成する)、親に対する権限は設定されていません。

ホストグループを編集するときに、すべてのサブグループに権限とタグフィルターを適用という追加オプションを設定することもできます。

このチェックボックスをオンにして更新をクリックすると、編集中のホストグループの現在のサブグループと将来のサブグループすべてに同じレベルの権限とタグフィルターが適用されます。

したがって、編集中のホストグループのサブグループに対して、ユーザーグループにさまざまな権限が与えられている場合、チェックボックスをオンにすると、現在および将来のすべてのサブグループに、編集中のグループと同じユーザー権限とタグベースの権限が付与されます。

このオプションはデータベースに保存されず、既存の権限が上書きされることに注意してください。このオプションによって行われた変更は、手動でのみ元に戻すことができます。