From: Costa Tsaousis (ktsaou) Date: Fri, 24 Feb 2017 22:55:45 +0000 (+0200) Subject: log all host configuration when a host is created X-Git-Tag: ab-debian_0.20170227.01-0ab1~1^2~14^2~15 X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?p=netdata.git;a=commitdiff_plain;h=28dceff98d42a960d611ec02d78b0a4e28950ec6 log all host configuration when a host is created --- diff --git a/src/rrdhost.c b/src/rrdhost.c index b7c9cf8b..f43d472b 100644 --- a/src/rrdhost.c +++ b/src/rrdhost.c @@ -150,7 +150,7 @@ RRDHOST *rrdhost_create(const char *hostname, } snprintfz(filename, FILENAME_MAX, "%s/health/health-log.db", host->varlib_dir); - host->health_log_filename = strdupz(config_get(CONFIG_SECTION_HEALTH, "health db file", filename)); + host->health_log_filename = strdupz(filename); snprintfz(filename, FILENAME_MAX, "%s/alarm-notify.sh", netdata_configured_plugins_dir); host->health_default_exec = strdupz(config_get(CONFIG_SECTION_HEALTH, "script to execute on alarm", filename)); @@ -192,16 +192,29 @@ RRDHOST *rrdhost_create(const char *hostname, rrd_unlock(); - info("Host '%s' with guid '%s' initialized, update every: %d, memory mode: %s, streaming: %s, health: %s, cache_dir: '%s', varlib_dir: '%s', health_log: '%s'" + info("Host '%s' with guid '%s' initialized" + ", update every: %d" + ", memory mode: %s" + ", history entries: %d" + ", streaming: %s" + ", health: %s" + ", cache_dir: '%s'" + ", varlib_dir: '%s'" + ", health_log: '%s'" + ", alarms default handler: '%s'" + ", alarms default recipient: '%s'" , host->hostname , host->machine_guid , host->rrd_update_every , rrd_memory_mode_name(host->rrd_memory_mode) + , host->rrd_history_entries , host->rrdpush_enabled?"enabled: ":"disabled" , host->health_enabled?"enabled":"disabled" , host->cache_dir , host->varlib_dir , host->health_log_filename + , host->health_default_exec + , host->health_default_recipient ); return host; }