Munin::...ginList(3)

πŸ“¦ version 2.0.78, in nixos 26.05, nixpkgs unstable

πŸ’– NAME πŸ’–

hey bestie, welcome to the Munin::...ginList(3) page β€” yes, that’s the title, and it’s straight out of User Contributed Perl Documentation ✨. this whole page is about Munin::Node::Configure::PluginList, aka loading and listing a collection of plugins. it’s literally the plugin roster manager, and it’s iconic.

πŸ¦‹ 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 🌸

  • new(%args) β€” constructor, periodt. the required arguments are 'libdir' and 'servicedir', which are the plugin library and service directory, respectively. both are required, no cap 🫢.
  • load(@families) β€” finds all the plugins in 'libdir' that are in any of @families, and any instances of these plugins in 'servicedir'. so it’s doing the plugin scavenger hunt in both places, slay πŸ’….
  • list() β€” returns a list of Munin::Node::Configure::Plugin objects currently loaded, sorted alphabetically by name. organized queen behavior, honestly πŸ‘‘.
  • names() β€” returns the names of the currently-loaded plugins. just the names, lowkey simple and useful 🌸.

okay bye bestie 🫢 this page is from perl v5.42.3, dated 1980-01-01, and it ate. mwah πŸ’‹

πŸ“¦ where this page comes from