Munin::...::Config(3)
β¨ NAME β¨
Okay bestie, this is Munin::...::Config(3) from the User Contributed Perl Documentation, and it's literally the page for Munin::Master::Config. Its whole main-character job? Holding the master configuration. That's the vibe. π
π METHODS π
Here's the method lineup, no skips, no cap. π«Ά
πΈ instance πΈ
my $config = Munin::Master::Config->instance;
Returns the singleton configuration instance β possibly newly created, possibly the one that already exists. One config, one destiny. Obsessed. β¨
π¦ set_value π¦
$config->set_value($longkey, $value);
Sets a value in the config, where $longkey is the full ;:. separated value. iykyk. π
π parse_config π
$config->parse_config($io);
Populates the fields of $config from the configuration file referred to by filehandle $io. It's giving "read the config, bestie." π§
β look_up β
my $value = $config->look_up($key);
Looks 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. The lookup ends at host name. If something is missing along the way, undef is returned. No cap, that's the whole rule. π
π get_groups_and_hosts π
my $gah = $config->get_groups_and_hosts();
Returns all the groups and hosts defined in the configuration. The whole crew, assembled. π
π₯ get_all_hosts π₯
my $hosts = $config->get_all_hosts();
Returns a list of all the hosts defined in the configuration. Every single host, front and center. β
π set π
$config->set(\%attrs);
Sets the keys and values in $config to those in %attrs. Boom, config updated. π
π And that's the whole page, bestie! This cutie came from the User Contributed Perl Documentation,perl v5.42.3, dated1980-01-01. Bye and slay your config! πβ¨
π¦ where this page comes from
- nixos 26.05: munin 2.0.76
- nixpkgs unstable: munin 2.0.78
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms