Scroll to navigation

Munin::Node::Config(3pm) User Contributed Perl Documentation Munin::Node::Config(3pm)

NAME

Munin::Node::Config - Singleton node configuration container. Reads configuration files.

SYNOPSIS

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

METHODS

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

Returns the singleton instance of this class.

 $config->reinitialize();
    

Deletes all configuration variables

 $config->reinitialize(\%variables);
    

Deletes all configuration variables and reinitializes the object with values from \%variables.

  $config->parse_config_from_file($filename);
    

Parses the munin node configuration from a file. Dies if the file fails the paranoia checks.

 $config->parse_config($io_handle);
    

Parses the munin node configuration from a filehandle.

 $config->process_plugin_configuration_files();
    

Parses all unignored files in the plugin configuration folder.

 $config->parse_plugin_config_file($file);
    

Parses the plugin configuration in $file.

 $config->parse_plugin_config($io_handle);
    

Parses the plugin configuration from an IO::Handle.

 $config->apply_wildcards();
    

Applies the contents of any wildcard plugin configuration sections to matching plugins.

See <http://munin-monitoring.org/wiki/Priority_and_inheritance>

2024-05-24 perl v5.38.2