Scroll to navigation

Munin::Node::Configure::PluginList(3pm) User Contributed Perl Documentation Munin::Node::Configure::PluginList(3pm)

NAME

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

SYNOPSIS

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

SUBROUTINES

Constructor.

Required arguments are 'libdir' and 'servicedir', which are the plugin library and service directory, respectively.

Finds all the plugins in 'libdir' that are in any of @families, and any instances of these plugins in 'servicedir'.
Returns a list of Munin::Node::Configure::Plugin objects currently loaded, sorted alphabetically by name.
Returns the names of the currently-loaded plugins.
2024-09-29 perl v5.40.0