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:loadis the one doing the actual finding,listandnamesare 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
- fedora 43: munin-node 2.0.78-1.fc43 Β· GPL-2.0-only
- fedora 44: munin-node 2.0.78-1.fc44 Β· GPL-2.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms