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.
Only Super admin users can create host groups.
There are two options of creating a host group in Zabbix frontend.
Option one:
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 collection → Host 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
と入力すると、親グループEurope
のEurope/Latvia
サブグループが作成されます。Europe/Latvia/Riga/Zabbix servers
と入力すると、ネストされた親グループEurope
、Europe/Latvia
、Europe/Latvia/Riga
内にそれぞれのサブグループが作成されます。サブグループを作成する場合、先頭または末尾にスラッシュを使用したり、複数のスラッシュを連続して使用したりすることはできません。 '/' のエスケープはサポートされていません。
サブグループを作成する前に親ホストグループを作成する必要はありません。サブグループ(例: Europe/Latvia
)か親ホストグループ(この例ではEurope
)か、どちらからでも作成できます。サブグループを先に作成しても、自動的に親ホストグループが作成されることはありません。
Europe
がすでに存在し、Europe/Latvia
を作成する)、サブグループへのユーザーグループ権限は親から継承されます。Europe/Latvia
がすでに存在し、Europe
を作成する)、親に対する権限は設定されていません。ホストグループを編集するときに、すべてのサブグループに権限とタグフィルターを適用という追加オプションを設定することもできます。
このチェックボックスをオンにして更新をクリックすると、編集中のホストグループの現在のサブグループと将来のサブグループすべてに同じレベルの権限とタグフィルターが適用されます。
したがって、編集中のホストグループのサブグループに対して、ユーザーグループにさまざまな権限が与えられている場合、チェックボックスをオンにすると、現在および将来のすべてのサブグループに、編集中のグループと同じユーザー権限とタグベースの権限が付与されます。
このオプションはデータベースに保存されず、既存の権限が上書きされることに注意してください。このオプションによって行われた変更は、手動でのみ元に戻すことができます。