1Munin::Node::Configure:U:sPelrugCionnLtirsitb(u3t)ed PerMlunDionc:u:mNeondtea:t:iCoonnfigure::PluginList(3)
2
3
4

NAME

6       Munin::Node::Configure::PluginList - Loading and listing a collection
7       of plugins
8

SYNOPSIS

10         my $plugins = Munin::Node::Configure::PluginList->new(
11               libdir     => '/usr/share/munin/plugins/',
12               servicedir => '/etc/munin/plugins/',
13         );
14         $plugins->load('auto');
15         foreach my $plugin ($plugins->list) {
16               # do something to each 'auto' plugin in turn
17         }
18

SUBROUTINES

20       new(%args)
21           Constructor.
22
23           Required arguments are 'libdir' and 'servicedir', which are the
24           plugin library and service directory, respectively.
25
26       load(@families)
27           Finds all the plugins in 'libdir' that are in any of @families, and
28           any instances of these plugins in 'servicedir'.
29
30       list()
31           Returns a list of Munin::Node::Configure::Plugin objects currently
32           loaded, sorted alphabetically by name.
33
34       names()
35           Returns the names of the currently-loaded plugins.
36
37
38
39perl v5.32.1                      2021-02-M0u5nin::Node::Configure::PluginList(3)
Impressum