---
name: "Munin::Master::Group"
section: "3pm"
platform: "linux"
package: "munin"
version: "2.0.76-1"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/Munin::Master::Group"
---

# Munin::Master::Group(3pm)

Holds information on host groups. Groups can be nested.

## NAME

Munin::Master::Group - Holds information on host groups.

Groups can be nested.

## METHODS

- **new**

  ```
    my $group = Munin::Master::Group->new($name, $parent);
  ```

  Constructor.  `$name` is the name of the group.

- **add\_attributes**

  ```
    $group->add_attributes(\%attrs);
  ```

  Sets attributes `%attrs` for the group.  Valid attributes are:

  - node\_order

    Override the order of the hosts within the group.

  - local\_address

    The local address the update process should bind to when contacting the nodes in this group.

  - contacts

    The contacts for this group.  See \<http://munin-monitoring.org/wiki/HowToContact\>.

  An exception will be thrown if invalid attributes are provided.

  (Full details here: \<http://munin-monitoring.org/wiki/munin.conf#Groupleveldirectives\>.)

- **add\_host**

  ```
    $group->add_host($host);
  ```

  Adds host `$host` to the group.

- **give\_attributes\_to\_hosts**

  ```
    $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.)

- **get\_all\_hosts**

  ```
    my @hosts = $group->get_all_hosts();
  ```

  Returns the list of all hosts associated with this group, including those belonging to any sub-groups.
