@cryptotaxi247 / netdata-1 / commits / 83ad007da

log a line in error.log if multiple slaves are sending metrics for the same host; #2364

Costa Tsaousis (ktsaou) committed Jun 22, 2017 at 12:02 UTC 83ad007daa471e592484d0e32d62413726ba3743
1 file changed +3
src/rrdpush.c
+3
@@ -624,6 +624,9 @@ static int rrdpush_receive(int fd, const char *key, const char *hostname, const
624 }
625
626 rrdhost_wrlock(host);
627 + if(host->connected_senders > 0)
628 + info("STREAM %s [receive from [%s]:%s]: multiple streaming connections for the same host detected. If multiple netdata are pushing metrics for the same charts, at the same time, the result is unexpected.", host->hostname, client_ip, client_port);
629 +
630 host->connected_senders++;
631 rrdhost_flag_clear(host, RRDHOST_ORPHAN);
632 if(health_enabled != CONFIG_BOOLEAN_NO)