diff options
author | Tobi Oetiker <tobi@oetiker.ch> | 2007-11-02 23:04:36 +0100 |
---|---|---|
committer | Tobi Oetiker <tobi@oetiker.ch> | 2007-11-02 23:04:36 +0100 |
commit | 35490069d03df22ec290f707eba31d7b26e8517d (patch) | |
tree | ebfe8a51c96b4bb10881ba45b0ad199b0303c873 /lib | |
parent | fbcdaf2188f3dfa5d74beade8ab3e8d7390402e9 (diff) | |
download | smokeping-35490069d03df22ec290f707eba31d7b26e8517d.tar.gz smokeping-35490069d03df22ec290f707eba31d7b26e8517d.tar.xz |
added slaves consistancy test
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, |