my $group = Munin::Master::Group->new($name, $parent);
Constructor. $name is the name of the group.
$group->add_attributes(\%attrs);
Sets attributes %attrs for the group. Valid attributes are:
An exception will be thrown if invalid attributes are provided.
(Full details here: <http://munin-monitoring.org/wiki/munin.conf#Groupleveldirectives>.)
$group->add_host($host);
Adds host $host to the group.
$group->give_attributes_to_hosts();
Propagates the attributes of $group to all hosts in the group. (This does not apply to hosts belonging to sub-groups.)
my @hosts = $group->get_all_hosts();
Returns the list of all hosts associated with this group, including those belonging to any sub-groups.