]> arthur.barton.de Git - netdata.git/commitdiff
log a line for each host monitored
authorCosta Tsaousis (ktsaou) <costa@tsaousis.gr>
Fri, 24 Feb 2017 22:44:54 +0000 (00:44 +0200)
committerCosta Tsaousis (ktsaou) <costa@tsaousis.gr>
Fri, 24 Feb 2017 22:44:54 +0000 (00:44 +0200)
src/rrdhost.c
src/rrdpush.h

index 6584cfcdc7666c7c8f7d29221ad067a12e35a8e1..b7c9cf8b6e475c4b54dfb880fb43f2748c0cc423 100644 (file)
@@ -192,7 +192,17 @@ RRDHOST *rrdhost_create(const char *hostname,
 
     rrd_unlock();
 
-    debug(D_RRDHOST, "Host '%s', added with guid '%s'", host->hostname, host->machine_guid);
+    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'"
+         , host->hostname
+         , host->machine_guid
+         , host->rrd_update_every
+         , rrd_memory_mode_name(host->rrd_memory_mode)
+         , host->rrdpush_enabled?"enabled: ":"disabled"
+         , host->health_enabled?"enabled":"disabled"
+         , host->cache_dir
+         , host->varlib_dir
+         , host->health_log_filename
+    );
     return host;
 }
 
@@ -232,6 +242,7 @@ RRDHOST *rrdhost_find_or_create(const char *hostname, const char *guid, const ch
 void rrd_init(char *hostname) {
     health_init();
     registry_init();
+    rrdpush_init();
 
     debug(D_RRDHOST, "Initializing localhost with hostname '%s'", hostname);
     localhost = rrdhost_create(hostname,
@@ -243,8 +254,6 @@ void rrd_init(char *hostname) {
             default_health_enabled,
             1
     );
-
-    rrdpush_init();
 }
 
 // ----------------------------------------------------------------------------
index ab3fa15ddd13e1275bb6cd8361cce7a737593b74..6a7d8e59a93e750eb802c78e2b2988968af3f42f 100644 (file)
@@ -2,7 +2,6 @@
 #define NETDATA_RRDPUSH_H
 
 extern int default_rrdpush_enabled;
-extern int default_rrdpush_exclusive;
 
 extern int rrdpush_init();
 extern void rrdset_done_push(RRDSET *st);