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-Tag: collectd-5.9.0~301^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9c64d2a791b62e2def521f4ee2385d6fa574e18b;p=thirdparty%2Fcollectd.git Skip `0.0.0.0` hosts in ntpd plugin --- diff --git a/src/ntpd.c b/src/ntpd.c index a19d05c10..796d92ce1 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 */