Permalink
Browse files

- Leave configured plugins, but w/o values when spoolfetching

- Add a debug log when updating the spoolfetch_timestamp
  • Loading branch information...
1 parent b11d022 commit 50989cdd63602e2d0a806e03d94a729c1da77e85 @steveschnepp steveschnepp committed Dec 2, 2010
Showing with 7 additions and 5 deletions.
  1. +7 −5 master/lib/Munin/Master/UpdateWorker.pm
@@ -129,11 +129,12 @@ sub do_work {
# __root__ is only a placeholder plugin for
# an empty spoolfetch so we should ignore it
- # if asked to fetch it
- next if ($plugin eq "__root__");
-
- DEBUG "[DEBUG] No service data for $plugin, fetching it";
- %service_data = $self->{node}->fetch_service_data($plugin);
+ # if asked to fetch it.
+ # But we should still do everything after than.
+ if ($plugin ne "__root__") {
+ DEBUG "[DEBUG] No service data for $plugin, fetching it";
+ %service_data = $self->{node}->fetch_service_data($plugin);
+ }
}
# If update_rate is aligned, round the "when" for alignement
@@ -285,6 +286,7 @@ sub get_spoolfetch_timestamp {
sub set_spoolfetch_timestamp {
my ($nodedesignation, $timestamp) = @_;
+ DEBUG "[DEBUG] set_spoolfetch_timestamp($nodedesignation, $timestamp)";
my $key = "$nodedesignation/__spoolfetch__";
my $db_file = $config->{dbdir} . "/spoolfetch.db";

0 comments on commit 50989cd

Please sign in to comment.