%Groups — determine group memberships
%Groups
The %Group statement is useful to determine alias names and group memberships. The staus of single hosts as well as the status of predefined groups can be displayed in your html output. The color of a group status light reflects the status of the member with the highest severity level. E.g. if a group consists of few subgroups and several hosts, the status of the whole group is set to red of any single host (no matter if it is member of a subgroup or not) switches to red.
The %Groups statement is followed by a number of lines with the syntax:
name(Display name) GROUP1 ... GROUPN
The meaning is: 'name' will be printed as 'Display name' when appearing on a html page and belongs to the groups GROUP1 ... GROUPN.
The group definitions are recursive. This means that e.g.:
host1(Computer 1) GROUP1 GROUP2
GROUP1(Group of computers) GROUP3
is valid and means that the reported status values for host1 will influence not only GROUP1 and GROUP2 but also GROUP3.