diff options
-rw-r--r-- | CHANGES | 1 | ||||
-rw-r--r-- | lib/Smokeping.pm | 2 |
2 files changed, 3 insertions, 0 deletions
@@ -1,4 +1,5 @@ * Do not force a page reload more frequently than every 120s -- tobi +* Make sure slaves in targets match up with entries in the slaves section -- tobi 2007/10/28 -- released version 2.2.6 * removed some cruft from the release archive -- tobi diff --git a/lib/Smokeping.pm b/lib/Smokeping.pm index e2c0421..56f2188 100644 --- a/lib/Smokeping.pm +++ b/lib/Smokeping.pm @@ -446,6 +446,8 @@ sub init_target_tree ($$$$) { push @slaves, split /\s+/, $tree->{slaves}; }; for my $slave (@slaves){ + die "ERROR: slave '$slave' is not defined in the '*** Slaves ***' section!\n" + unless $cfg->{Slaves}{$slave}; my $s = $slave ? "~".$slave : ""; my @create = ($name.$s.".rrd", "--start",(time-1),"--step",$step, |