Munin:...Writer(3pm)
π NAME π
Munin::Node::SpoolWriter β bestie, this is the writing side of the spool functionality. She writes, she doesn't read. That's somebody else's job. β¨
πΈ SYNOPSIS πΈ
my $spool = Munin::Node::SpoolWriter->new(spooldir => $spooldir);
$spool->write(1234567890, 'cpu', \@results);
look at her go π¦ that's literally the whole vibe right there.
π METHODS π
new(%args)β the constructor, aka the glow-up moment where your spool object is born. The'spooldir'key should be the directory thatMunin::Node::SpoolReaderis reading from. iykyk β they gotta be looking at the same place or the whole thing is giving chaos. πwrite($timestamp, $service, \@results)β takes a timestamp, a service name, and the results of runningconfigandfetchon it. Then she writes it all to the spool directory soMunin::Node::SpoolReadercan come along and read it. it's giving β¨collaborationβ¨, it's giving two queens supporting each other π«Άcleanup($timestamp)β removes any items in the spool directory that are older than$timestamp. spring cleaning era π§ΉπΈ no cap.
reminder bestie: thespooldiryou hand to the writer has to be the oneMunin::Node::SpoolReaderis reading from. that's not a tip, that's literally in the docs. π
and that's the page!! this one came from the User Contributed Perl Documentation, running under perl v5.42.3, dated 2026-09-30 β so go forth and spool responsibly, main character. ππβ¨
π¦ 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