Skip to content

Commit

Permalink
a bit more debug output for the node server -- note which node each p…
Browse files Browse the repository at this point in the history
…lugin is associated with, and whether it requires multigraph.
  • Loading branch information
Matthew Boyle committed Nov 12, 2009
1 parent a211ad2 commit 55dc52f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion node/lib/Munin/Node/Server.pm
Expand Up @@ -94,11 +94,14 @@ sub _add_services_to_nodes
|| (split /\s+/, ($host_name || ''))[1]
|| $config->{fqdn};

print STDERR "\tAdding to node $node\n" if $config->{DEBUG};
$nodes{$node}{$service} = 1;

# Note any plugins that require particular server capabilities.
if (grep /^multigraph\s+/, @{$res->{stdout}}) {
push @multigraph_services, $service;
print STDERR "\tAdding to multigraph plugins\n"
if $config->{DEBUG};
push @multigraph_services, $service;
}
}
print STDERR "Finished configuring services\n" if $config->{DEBUG};
Expand Down

0 comments on commit 55dc52f

Please sign in to comment.