diff --git a/config/config.go b/config/config.go index 57b5beef1..4038d6b33 100755 --- a/config/config.go +++ b/config/config.go @@ -362,6 +362,11 @@ func (self *CGRConfig) checkConfigSanity() error { return fmt.Errorf(" Cannot find CDR export template with ID: <%s>", cdrePrfl) } } + for _, connCfg := range self.CDRSThresholdSConns { + if connCfg.Address == utils.MetaInternal && !self.thresholdSCfg.Enabled { + return errors.New("ThresholdS not enabled but requested by CDRS component.") + } + } } // CDRC sanity checks for _, cdrcCfgs := range self.CdrcProfiles {