* Tore Anderson
> $ munin-run --servicedir /usr/share/munin/plugins cpu autoconf
* Marc Haber
> That one works fine, it outputs "yes".
Crap. Hmm. But, just noticed something:
> DEBUG: Checking plugin: apt_all...manual...autoconf...
> DEBUG: Checking plugin: cps_...manual...autoconf...suggest...
> DEBUG: Checking plugin: cpu...auto...autoconf...
Since the cpu plugin isn't a wildcard plugin, it's not supposed to
print more on that line. So it's quite possible that the problem isn't
with the cpu plugin, but with whatever comes afterwards. But the
"DEBUG: Checking plugin.." part of the line is printed before the
plugin is executed, and standard out is autoflushed. Strange indeed.
Can you apply the attached patch to /usr/sbin/munin-node-configure
applied, and try again with --debug?
Thanks,
--
Tore Anderson
--- /usr/sbin/munin-node-configure 2005-04-03 02:54:12.000000000 +0200
+++ munin-node-configure 2005-05-03 14:55:32.120997905 +0200
@@ -502,6 +502,7 @@
foreach my $plug (@plugins)
{
+ print "top of loop, plug=$plug\n";
my $path = "$dir/$plug";
$path = readlink($path) and $path = $path =~ /^\// ? $path :
"$dir/$path" while -l $path;
next unless -f $path;
@@ -548,6 +549,7 @@
if ($ps->{$plug}->{'capability'}->{'autoconf'})
{
+ print "before fork\n";
my $fork = open (PLUG, "-|");
if ($fork == -1)
@@ -562,9 +564,12 @@
}
else
{
+ print "waiting for output from child\n";
$ps->{$plug}->{'defaultreason'} = join (' ',
map {chomp; $_} <PLUG>);
+ print "got output from child\n";
}
close (PLUG);
+ print "foo. \$?=$?\n";
if ($?)
{
$ps->{$plug}->{'default'} = "no";