From: Ivan Kurnosov Date: Sat, 22 Jul 2017 04:38:01 +0000 (+1200) Subject: Skip `0.0.0.0` hosts in ntpd plugin X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=9c64d2a791b62e2def521f4ee2385d6fa574e18b;p=collectd.git Skip `0.0.0.0` hosts in ntpd plugin --- diff --git a/src/ntpd.c b/src/ntpd.c index a19d05c1..796d92ce 100644 --- a/src/ntpd.c +++ b/src/ntpd.c @@ -894,6 +894,12 @@ static int ntpd_read(void) { continue; } + // `0.0.0.0` hosts are caused by POOL servers + // see https://github.com/collectd/collectd/issues/2358 + if (strcmp(peername, "0.0.0.0") == 0) { + continue; + } + refclock_id = ntpd_get_refclock_id(ptr); /* Convert the `long floating point' offset value to double */