Munin:...:Config(3pm)

okay bestie, welcome to the user-contributed Perl documentation for Munin:...:Config(3pm) β€” aka the page for Munin::Master::Config, which literally 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. It’s giving one config to rule them all, no cap. 🫢

πŸ’– set_value πŸ’–

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

Sets a value in the config, where $longkey is the full ;:. separated value. Slide that key in, bestie. πŸ’…

πŸ¦‹ parse_config πŸ¦‹

$config->parse_config($io);

Populates the fields of $config from the configuration file referred to by filehandle $io. Read the config tea β˜• and fill in the fields.

🌈 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, it creates it with the correct class and so on β€” main character behavior, honestly. ✨

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. The whole guest list, periodt. πŸ’–

🧚 get_all_hosts 🧚

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

Returns a list of all the hosts defined in the configuration. Every host, accounted for. πŸ¦‹

πŸ“ set πŸ“

$config->set(\%attrs);

Sets the keys and values in $config to those in %attrs. Swap the fit, but for config. πŸ’…


mwah πŸ’‹ this page is brought to you by perl v5.42.0, dated 2026-09-14 β€” iconic.

πŸ“¦ where this page comes from