summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--CHANGES1
-rw-r--r--lib/Smokeping.pm2
2 files changed, 3 insertions, 0 deletions
diff --git a/CHANGES b/CHANGES
index f02768b..cc41d63 100644
--- a/CHANGES
+++ b/CHANGES
@@ -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,