Munin:...inList(3pm)

✨ NAME ✨

Munin::Node::Configure::PluginList β€” it's giving "loading and listing a whole collection of plugins" πŸ’– this is the lil module (from the Munin:...inList manpage, 3pm section, bestie) that scoops up all your Munin plugins and keeps them in one cute lil list.


🌸 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
}

no cap, that's the whole vibe right there πŸ’…


πŸŽ€ SUBROUTINES πŸŽ€

new(%args)

Constructor. The main character of object creation 🫢

The arguments you HAVE to pass are 'libdir' and 'servicedir' β€” which are, respectively, the plugin library and the service directory. Not optional. Not negotiable. They're required, fr fr.

load(@families)

Okay so this one goes hunting πŸ” β€” it finds all the plugins in 'libdir' that live in any of @families, plus any instances of those same plugins hanging out in 'servicedir'. Like, both places. Both. 🌈

list()

Returns a list of Munin::Node::Configure::Plugin objects that are currently loaded, sorted alphabetically by name. A–Z, queen behavior πŸ‘‘

names()

Returns the names of the currently-loaded plugins. Just the names, no objects, no drama. πŸ¦‹


lowkey important: load is the one doing the actual finding, list and names are just the lil reporters telling you what you've got 🌸

perl v5.42.3, dated 2026-09-30, User Contributed Perl Documentation β€” mwah, that's the whole page bestie, ate and left no crumbs πŸ’…βœ¨πŸŽ€

πŸ“¦ where this page comes from