Munin::...::Config(3)

πŸ“¦ version 2.0.78, in nixos 26.05, nixpkgs unstable

✨ 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, dated 1980-01-01. Bye and slay your config! πŸ’–βœ¨
πŸ“¦ where this page comes from