diff --git a/src/lib/assert/assert_config_file.js b/src/lib/assert/assert_config_file.js index c473f50b..1ff956c8 100644 --- a/src/lib/assert/assert_config_file.js +++ b/src/lib/assert/assert_config_file.js @@ -435,6 +435,11 @@ const configFileStructureAssert = async (config, logger) => { configFileCorrect = false; } + if (!config.has('Butler.anonTelemetry')) { + logger.error('ASSERT CONFIG: Missing config file entry "Butler.anonTelemetry"'); + configFileCorrect = false; + } + if (!config.has('Butler.heartbeat.enable')) { logger.error('ASSERT CONFIG: Missing config file entry "Butler.heartbeat.enable"'); configFileCorrect = false; @@ -564,6 +569,11 @@ const configFileStructureAssert = async (config, logger) => { configFileCorrect = false; } + if (!config.has('Butler.influxDb.instanceTag')) { + logger.error('ASSERT CONFIG: Missing config file entry "Butler.influxDb.instanceTag"'); + configFileCorrect = false; + } + if (!config.has('Butler.influxDb.retentionPolicy.name')) { logger.error('ASSERT CONFIG: Missing config file entry "Butler.influxDb.retentionPolicy.name"'); configFileCorrect = false; @@ -574,6 +584,31 @@ const configFileStructureAssert = async (config, logger) => { configFileCorrect = false; } + if (!config.has('Butler.influxDb.reloadTaskFailure.enable')) { + logger.error('ASSERT CONFIG: Missing config file entry "Butler.influxDb.reloadTaskFailure.enable"'); + configFileCorrect = false; + } + + if (!config.has('Butler.influxDb.reloadTaskFailure.tailScriptLogLines')) { + logger.error('ASSERT CONFIG: Missing config file entry "Butler.influxDb.reloadTaskFailure.tailScriptLogLines"'); + configFileCorrect = false; + } + + if (!config.has('Butler.influxDb.reloadTaskFailure.tag.static')) { + logger.error('ASSERT CONFIG: Missing config file entry "Butler.influxDb.reloadTaskFailure.tag.static"'); + configFileCorrect = false; + } + + if (!config.has('Butler.influxDb.reloadTaskFailure.tag.dynamic.useAppTags')) { + logger.error('ASSERT CONFIG: Missing config file entry "Butler.influxDb.reloadTaskFailure.tag.dynamic.useAppTags"'); + configFileCorrect = false; + } + + if (!config.has('Butler.influxDb.reloadTaskFailure.tag.dynamic.useTaskTags')) { + logger.error('ASSERT CONFIG: Missing config file entry "Butler.influxDb.reloadTaskFailure.tag.dynamic.useTaskTags"'); + configFileCorrect = false; + } + if (!config.has('Butler.scriptLog.storeOnDisk.reloadTaskFailure.enable')) { logger.error('ASSERT CONFIG: Missing config file entry "Butler.scriptLog.storeOnDisk.reloadTaskFailure.enable"'); configFileCorrect = false;