1Munin::Master::Group(3pUms)er Contributed Perl DocumentatMiuonnin::Master::Group(3pm)
2
3
4

NAME

6       Munin::Master::Group - Holds information on host groups.
7
8       Groups can be nested.
9

METHODS

11       new
12             my $group = Munin::Master::Group->new($name, $parent);
13
14           Constructor.  $name is the name of the group.
15
16       add_attributes
17             $group->add_attributes(\%attrs);
18
19           Sets attributes %attrs for the group.  Valid attributes are:
20
21           node_order
22               Override the order of the hosts within the group.
23
24           local_address
25               The local address the update process should bind to when
26               contacting the nodes in this group.
27
28           contacts
29               The contacts for this group.  See
30               <http://munin-monitoring.org/wiki/HowToContact>.
31
32           An exception will be thrown if invalid attributes are provided.
33
34           (Full details here:
35           <http://munin-monitoring.org/wiki/munin.conf#Groupleveldirectives>.)
36
37       add_host
38             $group->add_host($host);
39
40           Adds host $host to the group.
41
42       give_attributes_to_hosts
43             $group->give_attributes_to_hosts();
44
45           Propagates the attributes of $group to all hosts in the group.
46           (This does not apply to hosts belonging to sub-groups.)
47
48       get_all_hosts
49             my @hosts = $group->get_all_hosts();
50
51           Returns the list of all hosts associated with this group, including
52           those belonging to any sub-groups.
53
54
55
56perl v5.38.0                      2023-11-06         Munin::Master::Group(3pm)
Impressum