1Munin::Node::Configure:U:sPelrugCionnLtirsitb(u3tpemd)PMeurnlinD:o:cNuomdeen:t:aCtoinofnigure::PluginList(3pm)
2
3
4
6 Munin::Node::Configure::PluginList - Loading and listing a collection
7 of plugins
8
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
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.38.0 2023-1M1u-n0i6n::Node::Configure::PluginList(3pm)