# Ntppool-agent v4.0.5

**URL:** <https://community.ntppool.org/t/ntppool-agent-v4-0-5/4033>\
**Category:** Monitoring Operators\
**Created:** [August 12, 2025, 12:39pm UTC](https://community.ntppool.org/t/ntppool-agent-v4-0-5/4033 "2025-08-12T12:39:36Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![ask](https://sea2.discourse-cdn.com/flex016/user_avatar/community.ntppool.org/ask/32/907_2.png) [@ask](https://community.ntppool.org/u/ask)\
**Post date:** [August 12, 2025, 12:39pm UTC](https://community.ntppool.org/t/ntppool-agent-v4-0-5/4033/1 "2025-08-12T12:39:36Z")

</div>

In v4 we’re using the MQTT connection less, so I didn’t notice (though monitoring was squeaking!) that I broke the client connectivity. It is used for the “ad hoc NTP check” feature and for the first sanity check when adding a monitor, so that breaks when there are no more v3.8.6 monitors.

Upgrading to v4.0.5 fixes it (I upgraded a few monitors so the features above should work again).

Thanks to @msiegen for [reporting this](https://github.com/abh/ntppool/issues/265).

---

<div class="post-metadata">

**Author:** ![john1](https://sea2.discourse-cdn.com/flex016/user_avatar/community.ntppool.org/john1/32/1464_2.png) [@john1](https://community.ntppool.org/u/john1)\
**Post date:** [August 12, 2025, 5:58pm UTC](https://community.ntppool.org/t/ntppool-agent-v4-0-5/4033/2 "2025-08-12T17:58:22Z")

</div>

@ask was the build for 4.0.5 uploaded? I do not see it on [Index of /ntppool-agent/builds/release](https://builds.ntppool.dev/ntppool-agent/builds/release/)

---

<div class="post-metadata">

**Author:** ![avij](https://sea2.discourse-cdn.com/flex016/user_avatar/community.ntppool.org/avij/32/197_2.png) [@avij](https://community.ntppool.org/u/avij)\
**Post date:** [August 12, 2025, 7:27pm UTC](https://community.ntppool.org/t/ntppool-agent-v4-0-5/4033/3 "2025-08-12T19:27:39Z")

</div>

For “yum” users it seems to be available in the ntppool-test repository only.

Maybe [https://builds.ntppool.dev/ntppool-agent/builds/test/579/checksums.txt](https://builds.ntppool.dev/ntppool-agent/builds/test/579/checksums.txt) helps?

---

<div class="post-metadata">

**Author:** ![ask](https://sea2.discourse-cdn.com/flex016/user_avatar/community.ntppool.org/ask/32/907_2.png) [@ask](https://community.ntppool.org/u/ask)\
**Post date:** [August 13, 2025, 3:12am UTC](https://community.ntppool.org/t/ntppool-agent-v4-0-5/4033/4 "2025-08-13T03:12:12Z")

</div>

Whoops – @avij is right it’s only in the testing repository. I forgot to hit “publish” to promote it as a proper build. It should be in the repositories now, and on

> **[Index of /ntppool-agent/builds/release/579](https://builds.ntppool.dev/ntppool-agent/builds/release/579/)**

---

<div class="post-metadata">

**Author:** ![Bas](https://sea2.discourse-cdn.com/flex016/user_avatar/community.ntppool.org/bas/32/465_2.png) [@Bas](https://community.ntppool.org/u/Bas)\
**Post date:** [August 23, 2025, 5:40pm UTC](https://community.ntppool.org/t/ntppool-agent-v4-0-5/4033/5 "2025-08-23T17:40:59Z")

</div>

Up and running IPv4 only. Tell me what you expect.

As I have a new router, DrayTek and it CAN handle the requests, where the Fritzbox failed.

2 monitors in production, like the new system a lot!

But 1 remark, I tried to install from the github, but the apt-source was missing, maybe a good idea to link to it or mention it in the readme. Other then that, great job!👌

DrayTek seems to handle the load fine….where the Fritzbox started to crawl within the hour of running.

 ![Schermafdruk op 2025-08-24 16-54-57](https://us1.discourse-cdn.com/flex016/uploads/ntppool/original/2X/7/7ff3df393cd51c6a6c87f9121962752860c2a9e9.png)

But then, these are not simple home-grade-routers 🤣

---

<div class="post-metadata">

**Author:** ![microchip8](https://sea2.discourse-cdn.com/flex016/user_avatar/community.ntppool.org/microchip8/32/1388_2.png) [@microchip8](https://community.ntppool.org/u/microchip8)\
**Post date:** [August 25, 2025, 1:33pm UTC](https://community.ntppool.org/t/ntppool-agent-v4-0-5/4033/6 "2025-08-25T13:33:27Z")

</div>

I’m using a MikroTik RB3011 router myself for the NTP in Leuven, Belgium. It can do 2 million pkts/s _with_ connection tracking. MikroTik has a so-called fasttrack function that offloads most of the network stack to hardware. As of now, my NTP does on average 1500 pkts/s so that’s “pocket change” 😄

---

<div class="post-metadata">

**Author:** ![Bas](https://sea2.discourse-cdn.com/flex016/user_avatar/community.ntppool.org/bas/32/465_2.png) [@Bas](https://community.ntppool.org/u/Bas)\
**Post date:** [August 28, 2025, 3:34pm UTC](https://community.ntppool.org/t/ntppool-agent-v4-0-5/4033/7 "2025-08-28T15:34:29Z")

</div>

Are you running this sever by any chance?

> **[Statistics - NTP & NTS Time Server of Team Belgium](https://ntp.teambelgium.net/ntpstats)**
>
> NTP & NTS Time Server of Team Belgium

BTW, ntp.oma.be seems to have put all severs in a pool, like I do with ntp.heppen.be

nslookup ntp.oma.be  
Server: 127.0.0.53  
Address: 127.0.0.53#53

Non-authoritative answer:  
Name: ntp.oma.be  
Address: 193.190.230.106  
Name: ntp.oma.be  
Address: 193.190.230.105

---

<div class="post-metadata">

**Author:** ![microchip8](https://sea2.discourse-cdn.com/flex016/user_avatar/community.ntppool.org/microchip8/32/1388_2.png) [@microchip8](https://community.ntppool.org/u/microchip8)\
**Post date:** [August 28, 2025, 7:20pm UTC](https://community.ntppool.org/t/ntppool-agent-v4-0-5/4033/8 "2025-08-28T19:20:35Z")

</div>

Yes, that’s my NTP. I was wondering whether the oma ntp was undergoing maintenance or had other problems. Will update the config.

---

<div class="post-metadata">

**Author:** ![Bas](https://sea2.discourse-cdn.com/flex016/user_avatar/community.ntppool.org/bas/32/465_2.png) [@Bas](https://community.ntppool.org/u/Bas)\
**Post date:** [August 29, 2025, 2:09pm UTC](https://community.ntppool.org/t/ntppool-agent-v4-0-5/4033/9 "2025-08-29T14:09:22Z")

</div>

Seems Oma blocked the access to their Stratum1 servers, I tried to acces them but got thrown out.

So I switched to their pool.

---

<div class="post-metadata">

**Author:** ![microchip8](https://sea2.discourse-cdn.com/flex016/user_avatar/community.ntppool.org/microchip8/32/1388_2.png) [@microchip8](https://community.ntppool.org/u/microchip8)\
**Post date:** [September 1, 2025, 1:40pm UTC](https://community.ntppool.org/t/ntppool-agent-v4-0-5/4033/10 "2025-09-01T13:40:06Z")

</div>

I’m getting KoD from the second Oma server. chrony can’t use it at all, and no, nothing’s wrong on my side. The first Oma server has no issues.

---

<div class="post-metadata">

**Author:** ![Bas](https://sea2.discourse-cdn.com/flex016/user_avatar/community.ntppool.org/bas/32/465_2.png) [@Bas](https://community.ntppool.org/u/Bas)\
**Post date:** [September 2, 2025, 2:37pm UTC](https://community.ntppool.org/t/ntppool-agent-v4-0-5/4033/11 "2025-09-02T14:37:16Z")

</div>

Weird, as they both work fine here:

```auto
Last login: Sun Aug 31 17:43:03 2025 from 192.168.1.101
root@server:~# chronyc sourcestats 
Name/IP Address NP NR Span Frequency Freq Skew Offset Std Dev
==============================================================================
GPS 6 5 18 -560.883 3089.430 +4499us 5256us
PPS 37 17 72 -0.002 0.298 -1ns 10us
ntp0.nl.uu.net 15 9 275m +0.132 0.039 -1389us 166us
ptbtime1.ptb.de 17 6 293m +0.098 0.175 -3477us 954us
ntp-public-2.oma.be 11 7 241m +0.138 0.042 -2321us 122us
ntp-public-1.oma.be 7 5 138m +0.103 0.106 -2054us 92us
root@server:~# chronyc sources
MS Name/IP address Stratum Poll Reach LastRx Last sample               
===============================================================================
#- GPS 0 2 377 2 +7293us[+7293us] +/- 111ms
#* PPS 0 1 377 2 +1102ns[+1232ns] +/- 27us
^- ntp0.nl.uu.net 1 10 377 565 +1021us[+1083us] +/- 10ms
^- ptbtime1.ptb.de 1 10 277 22m -4957us[-4812us] +/- 16ms
^- ntp-public-2.oma.be 2 10 377 517 -1304us[-1249us] +/- 34ms
^- ntp-public-1.oma.be 2 10 377 1018 -2303us[-2188us] +/- 36ms

```

But then, I do not poll other sources that often, there is no use for it.

My setup:

```auto
# GPS time.
refclock SHM 0 refid GPS poll 2 precision 1e-3 offset 0.070 delay 0.2
refclock SHM 1 refid PPS poll 1 lock GPS precision 1e-8 maxlockage 64 prefer
#refclock PPS /dev/pps0 lock GPS refid PPS poll 1 precision 1e-8 maxlockage 64 prefer

#You do need to talk to an NTP server or two (or three).
server ntp0.nl.uu.net
server ptbtime1.ptb.de
pool ntp.oma.be

```

Beware, I use an RS-232 GPS, so I poll a bit faster, but just to show my workings.

---

<div class="post-metadata">

**Author:** ![james58899](https://sea2.discourse-cdn.com/flex016/user_avatar/community.ntppool.org/james58899/32/1298_2.png) [@james58899](https://community.ntppool.org/u/james58899)\
**Post date:** [October 13, 2025, 11:54am UTC](https://community.ntppool.org/t/ntppool-agent-v4-0-5/4033/12 "2025-10-13T11:54:24Z")

</div>

I’ve observed a large number of “local-check failure” related warnings in the ntppool-agent log, as well as occasional “local clock might not be okay”.

I think the reference time source used by the ntppool-agent is too far away from my location.  
Is it possible to adjust the max offset limit based on the latency instead of hard-coding it to 10ms?

---

<div class="post-metadata">

**Author:** ![ebahapo](https://sea2.discourse-cdn.com/flex016/user_avatar/community.ntppool.org/ebahapo/32/1152_2.png) [@ebahapo](https://community.ntppool.org/u/ebahapo)\
**Post date:** [October 13, 2025, 1:03pm UTC](https://community.ntppool.org/t/ntppool-agent-v4-0-5/4033/13 "2025-10-13T13:03:09Z")

</div>

I did notice the use of some reference serverson the other side of the world from me, and most are in Europe. Among the servers used, the one at Cloud Flare is any cast, so the NTP request is routed to a nearby server. Perhaps additional any cast servers that do not do leap second smearing should be used, such as the one at Apple, so that more nearby reference servers are used.

---

<div class="post-metadata">

**Author:** ![avij](https://sea2.discourse-cdn.com/flex016/user_avatar/community.ntppool.org/avij/32/197_2.png) [@avij](https://community.ntppool.org/u/avij)\
**Post date:** [October 13, 2025, 3:57pm UTC](https://community.ntppool.org/t/ntppool-agent-v4-0-5/4033/14 "2025-10-13T15:57:33Z")

</div>

Those “local clock might not be okay”, are those for a production or test monitor? IPv4 or IPv6? Because oddly enough, on my own “remote” monitor I get those warnings only for IPv6 and almost exclusively for the test monitor. My /var/log/messages started yesterday at midnight and there are now 451 entries for “local clock might not be okay” for env=test ip\_version=v6, but only 1 for env=prod ip\_version=v6, and none for ip\_version=v4.

These are the typical numbers for a production and test local checks:

msg=local-check env=prod ip\_version=v6 failures=2 threshold=3 hosts=8

msg=local-check env=test ip\_version=v6 failures=5 threshold=4 hosts=9

Note that even though 3 failures out of 8 (prod) is a tighter requirement than 4 failures out of 9 (test), I still get more “local clock might not be okay” errors for the test environment. Maybe the pool of reference NTP servers from which the reference time sources are picked is different between production and test.

Here are my top offset reference clock entries:  
grep “offset too large” messages | grep env=test | grep version=v6 |cut -d" " -f11 | sort | uniq -c | sort -rn

```auto
711 server=uslax1-ntp-004.aaplimg.com
711 server=time.apple.com
677 server=ntp.nict.jp
520 server=twtpe2-ntp-001.aaplimg.com
424 server=sesto4-ntp-002.aaplimg.com
177 server=ntp.se
 19 server=time.google.com
 11 server=ntp.ripe.net

```

This issue only shows up on my most distant monitor in Australia. The others do not have any “local clock might not be okay” entries in their logs.

Otherwise I’d chalk this up to bad routing at my provider, but the stark contrast between production and test environment results suggests otherwise.

---

<div class="post-metadata">

**Author:** ![james58899](https://sea2.discourse-cdn.com/flex016/user_avatar/community.ntppool.org/james58899/32/1298_2.png) [@james58899](https://community.ntppool.org/u/james58899)\
**Post date:** [October 13, 2025, 5:57pm UTC](https://community.ntppool.org/t/ntppool-agent-v4-0-5/4033/15 "2025-10-13T17:57:23Z")

</div>

Most of the warnings come from prod and ipv4, I agree that this is related to the network environment.

```auto
level=WARN msg="local-check failure" env=prod ip_version=v4 server=tock.ucla.edu ip=164.67.62.199 err="offset too large: 13.164934ms"
level=WARN msg="local-check failure" env=prod ip_version=v4 server=ntp1.net.berkeley.edu ip=169.229.128.134 err="offset too large: 11.594985ms"
level=WARN msg="local-check failure" env=prod ip_version=v4 server=usscz2-ntp-002.aaplimg.com ip=17.253.16.253 err="offset too large: 15.963879ms"
level=WARN msg="local-check failure" env=prod ip_version=v4 server=ntp.stupi.se ip=192.36.143.153 err="offset too large: -36.914252ms"
level=WARN msg="local-check failure" env=prod ip_version=v4 server=ntp.ripe.net ip=193.0.0.229 err="offset too large: -30.735914ms"
level=WARN msg="local-check failure" env=prod ip_version=v4 server=time.fu-berlin.de ip=130.133.1.10 err="offset too large: -35.146165ms"
level=INFO msg=local-check env=prod ip_version=v4 failures=6 threshold=5 hosts=12
level=INFO msg="local clock might not be okay" env=prod ip_version=v4
level=INFO msg=local-check env=prod ip_version=v6 failures=0 threshold=3 hosts=8

```

I’ve observed offsets between +15ms and -38ms, and the target server’s latency is between 180ms and 240ms. I think the offset is normal for this latency.

If the upper limit isn’t determined by latency, I think 50ms is an acceptable value for my environment.
