---
name: "Munin::Master::Config"
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::Config"
---

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

Holds the master configuration.

## NAME

Munin::Master::Config - Holds the master configuration.

## METHODS

- **instance**

  ```
    my $config = Munin::Master::Config->instance;
  ```

  Returns the (possibly newly created) singleton configuration instance.

- **set\_value**

  ```
    $config->set_value($longkey, $value);
  ```

  Set a value in the config, where `$longkey` is the full ;:. separated value.

- **parse\_config**

  ```
    $config->parse_config($io);
  ```

  Populates the fields of `$config` from the configuration file referred to by filehandle `$io`.

- **look\_up**

  ```
    my $value = $config->look_up($key);
  ```

  Look up a group/host by a key such as "localdomain;localhost" etc. If the path does not exist create it with correct class and so on.

  Lookup ends at host name.  If something is missing along the way undef is returned.

- **get\_groups\_and\_hosts**

  ```
    my $gah = $config->get_groups_and_hosts();
  ```

  Returns all the groups and hosts defined in the configuration.

- **get\_all\_hosts**

  ```
    my $hosts = $config->get_all_hosts();
  ```

  Returns a list of all the hosts defined in the configuration.

- **set**

  ```
    $config->set(\%attrs);
  ```

  Sets the keys and values in `$config` to those in `%attrs`.
