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

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

🌸 NAME 🌸

okay so this is the page for Munin::...::Config(3) from User Contributed Perl Documentation, and it's all about Munin::Node::Config β€” a Singleton node configuration container. Reads configuration files. That's the whole vibe: one config container to rule them all, bestie. πŸ‘‘


✨ SYNOPSIS ✨

$config = Munin::Node::Config->instance();
$config->parse_config_from_file('/etc/munin/munin-node.conf');
print $config->{fqdn}, "\n";

like, you grab the singleton, parse the config file, and print the fqdn. slay. πŸ’…


πŸ’… METHODS πŸ’…

πŸ’– instance πŸ’–

$config = Munin::Node::Config->instance();

Returns the singleton instance of this class. one instance, main character energy, no cap. ✨

πŸ¦‹ reinitialize πŸ¦‹

$config->reinitialize();

Deletes all configuration variables. like, poof, gone, periodt. πŸ’€

$config->reinitialize(\%variables);

Deletes all configuration variables and reinitializes the object with values from \%variables. so it's a full reset plus a fresh little config glow-up. 🫢

πŸŽ€ parse_config_from_file πŸŽ€

$config->parse_config_from_file($filename);

Parses the munin node configuration from a file. Dies if the file fails the paranoia checks β€” yes bestie, it literally dies, so respect the paranoia checks. 😭

🌈 parse_config 🌈

$config->parse_config($io_handle);

Parses the munin node configuration from a filehandle. filehandle girlies rise. 🧚

πŸ“ process_plugin_configuration_files πŸ“

$config->process_plugin_configuration_files();

Parses all unignored files in the plugin configuration folder. if it's unignored, it's getting parsed, iykyk. πŸ’–

🌸 parse_plugin_config_file 🌸

$config->parse_plugin_config_file($file);

Parses the plugin configuration in $file. yes, that exact file. no substitutions. πŸ’…

⭐ parse_plugin_config ⭐

$config->parse_plugin_config($io_handle);

Parses the plugin configuration from an IO::Handle. handle it, bestie. 🫢

πŸ‘‘ apply_wildcards πŸ‘‘

$config->apply_wildcards();

Applies the contents of any wildcard plugin configuration sections to matching plugins. matching plugins get the wildcard tea. obsessed. ✨

See <http://munin-monitoring.org/wiki/Priority_and_inheritance> πŸ¦‹


πŸ’– okay that's the whole page! footer tea: perl v5.42.3, dated 1980-01-01, and this iconic page is Munin::...::Config(3) β€” bye bestie, mwah πŸ’‹πŸ«Ά

πŸ“¦ where this page comes from