1Munin::Master::Config(3U)ser Contributed Perl DocumentatiMounnin::Master::Config(3)
2
3
4

NAME

6       Munin::Master::Config - Holds the master configuration.
7

METHODS

9       instance
10             my $config = Munin::Master::Config->instance;
11
12           Returns the (possibly newly created) singleton configuration
13           instance.
14
15       set_value
16             $config->set_value($longkey, $value);
17
18           Set a value in the config, where $longkey is the full ;:. separated
19           value.
20
21       parse_config
22             $config->parse_config($io);
23
24           Populates the fields of $config from the configuration file
25           referred to by filehandle $io.
26
27       look_up
28             my $value = $config->look_up($key);
29
30           Look up a group/host by a key such as "localdomain;localhost" etc.
31           If the path does not exist create it with correct class and so on.
32
33           Lookup ends at host name.  If something is missing along the way
34           undef is returned.
35
36       get_groups_and_hosts
37             my $gah = $config->get_groups_and_hosts();
38
39           Returns all the groups and hosts defined in the configuration.
40
41       get_all_hosts
42             my $hosts = $config->get_all_hosts();
43
44           Returns a list of all the hosts defined in the configuration.
45
46       set
47             $config->set(\%attrs);
48
49           Sets the keys and values in $config to those in %attrs.
50
51
52
53perl v5.30.0                      2019-10-19          Munin::Master::Config(3)
Impressum