log a line for each host monitored
Costa Tsaousis (ktsaou) committed
Feb 25, 2017 at 00:44 UTC
c3a1db5996e1cc189c3bfa14b5e1a5f686acfc25
2 files changed
+12
-4
src/rrdhost.c
+12
-3
@@ -192,7 +192,17 @@ RRDHOST *rrdhost_create(const char *hostname,
192
193
rrd_unlock();
194
195
- debug(D_RRDHOST, "Host '%s', added with guid '%s'", host->hostname, host->machine_guid);
195
+ 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'"
196
+ , host->hostname
197
+ , host->machine_guid
198
+ , host->rrd_update_every
199
+ , rrd_memory_mode_name(host->rrd_memory_mode)
200
+ , host->rrdpush_enabled?"enabled: ":"disabled"
201
+ , host->health_enabled?"enabled":"disabled"
202
+ , host->cache_dir
203
+ , host->varlib_dir
204
+ , host->health_log_filename
205
+ );
206
return host;
207
}
208
@@ -232,6 +242,7 @@ RRDHOST *rrdhost_find_or_create(const char *hostname, const char *guid, const ch
242
void rrd_init(char *hostname) {
243
health_init();
244
registry_init();
245
+ rrdpush_init();
246
247
debug(D_RRDHOST, "Initializing localhost with hostname '%s'", hostname);
248
localhost = rrdhost_create(hostname,
@@ -243,8 +254,6 @@ void rrd_init(char *hostname) {
254
default_health_enabled,
255
1
256
);
246
-
247
- rrdpush_init();
257
}
258
259
// ----------------------------------------------------------------------------
src/rrdpush.h
-1
@@ -2,7 +2,6 @@
2
#define NETDATA_RRDPUSH_H
3
4
extern int default_rrdpush_enabled;
5
-extern int default_rrdpush_exclusive;
5
6
extern int rrdpush_init();
7
extern void rrdset_done_push(RRDSET *st);