From 9c64d2a791b62e2def521f4ee2385d6fa574e18b Mon Sep 17 00:00:00 2001 From: Ivan Kurnosov Date: Sat, 22 Jul 2017 16:38:01 +1200 Subject: [PATCH] Skip `0.0.0.0` hosts in ntpd plugin --- src/ntpd.c | 6 ++++++ 1 file changed, 6 insertions(+) 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 */ -- 2.11.0