diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Smokeping.pm | 2 |
1 files changed, 2 insertions, 0 deletions
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, |