From: Ruben Kerkhof Date: Tue, 3 Apr 2018 21:29:17 +0000 (+0200) Subject: Merge pull request #2376 from zerkms/ISSUE-2358 X-Git-Url: https://git.octo.it/?a=commitdiff_plain;h=5a32acd88719481cc22aaecd36f3cbc11f3a3489;hp=358bf39b09f69220fc8e1b6c2fe98e5e185e3364;p=collectd.git Merge pull request #2376 from zerkms/ISSUE-2358 Skip `0.0.0.0` hosts in ntpd plugin --- diff --git a/src/ntpd.c b/src/ntpd.c index 84512d2b..ed3c0422 100644 --- a/src/ntpd.c +++ b/src/ntpd.c @@ -883,6 +883,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 */