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
- opensuse-leap 16.0: munin 2.0.76+git14.68213d60-bp160.1.1 Β· GPL-2.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms