Munin::Node::ProxySpooler->run(spooldir => '/var/spool/munin');
# never returns.
# meanwhile, in another process
my $spoolreader = Munin::Node::Spoolreader->new(
spooldir => '/var/spool/munin',
);
print $spoolreader->fetch(123456789);
Munin::Node::ProxySpooler->new(%args);
Constructor. It is called automatically by the "run" method, so probably isn't of much use otherwise.
Munin::Node::ProxySpooler->run(%args);
Daemonises the current process, and starts fetching data from a Munin node.
Never returns. The process will clean up and exit(0) upon receipt of SIGINT, SIGTERM or SIGHUP.