From 35490069d03df22ec290f707eba31d7b26e8517d Mon Sep 17 00:00:00 2001 From: Tobi Oetiker Date: Fri, 2 Nov 2007 22:04:36 +0000 Subject: added slaves consistancy test --- lib/Smokeping.pm | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib') 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, -- cgit v1.2.3-24-g4f1b