diff --git a/src/cloudron.js b/src/cloudron.js index 96e88320c..ed8d8510a 100644 --- a/src/cloudron.js +++ b/src/cloudron.js @@ -105,6 +105,12 @@ function runStartupTasks() { // configure nginx to be reachable by IP reverseProxy.writeDefaultConfig(NOOP_CALLBACK); + // this configures collectd to collect backup storage metrics if filesystem is used. This is also triggerd when the settings change with the rest api + settings.getBackupConfig(function (error, backupConfig) { + if (error) return console.error('Failed to read backup config.', error); + backups.configureCollectd(backupConfig, NOOP_CALLBACK); + }); + // always generate webadmin config since we have no versioning mechanism for the ejs if (settings.adminDomain()) reverseProxy.writeAdminConfig(settings.adminDomain(), NOOP_CALLBACK);