summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTobi Oetiker <tobi@oetiker.ch>2007-08-30 09:54:51 +0200
committerTobi Oetiker <tobi@oetiker.ch>2007-08-30 09:54:51 +0200
commit66e499975a20daf698545dcadd80a572a1df0eb9 (patch)
tree6fe0176949b5e56a1c72017272d38a36545dbab3
parentfec4230894e1c24460031f4ac3ae7f10ed1cf815 (diff)
downloadsmokeping-66e499975a20daf698545dcadd80a572a1df0eb9.tar.gz
smokeping-66e499975a20daf698545dcadd80a572a1df0eb9.tar.xz
do not start when we get no config
-rw-r--r--lib/Smokeping.pm2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/Smokeping.pm b/lib/Smokeping.pm
index 642ee83..3e66ce5 100644
--- a/lib/Smokeping.pm
+++ b/lib/Smokeping.pm
@@ -3744,6 +3744,8 @@ sub main (;$) {
$probes = load_probes $cfg;
$cfg->{__probes} = $probes;
add_targets($cfg, $probes, $cfg->{Targets}, $cfg->{General}{datadir});
+ } else {
+ die "ERROR: we did not get config form the master. Maybe we are not configured as a slave for any of the targets on the master ?\n";
}
} else {
if(defined $opt{'check'}) { verify_cfg($cfgfile); exit 0; }