Thanks -- for the reply I was a bit puzzled. I think I have figured it out now.
/jffs/scripts/ntpmerlin: line 1177: ntpq: not found
Not sure how scribe could help.Question, trying to get stats to generate. The script seems to be working but I'm seeing no stats in the gui. Do I need scribe? Option 1, generate updated ntpmerlin graphs now, gives an error:In the gui, <Enable local NTP server> reverts to NO, when I set it to yes when installing unbound_manager, no idea if that's related.Code:/jffs/scripts/ntpmerlin: line 1177: ntpq: not found
Thanks for that, it wasn't in there so I reinstalled ntpmerlin and have stats! Updating unbound_manager also updated without complaint about the <Enable local NTP server> being set to NO. Everything around here just keeps getting better.Not sure how scribe could help.
My ntpq is in /opt/sbin
My $PATH contains /opt/sbin
If you cd to /opt/sbin, you will be in the Entware sbin directory. The ntpMerlin (Entware actually) ntpd is in there as well.
tcpdump on the router should show if ntp traffic is hitting itIf I'm understanding well, option 2 redirects all NTP requests on my network to my routers NTP Server, correct?
So it means if someone tries to NTP to time.google.com, it will redirect the traffic to router ip and get the time from my own routers server?
If that's correct, how can I check if traffic is being redirected ok?
Thank you!
@Jack Yazv2.3.0 is now available
Please update again after the first update, to pull down the required files.
Changelog:
Code:Use csv files for ChartJS data - reduces generation time of stats General improvements to WebUI page
Switch to single tar archive for shared-jy resources
rm -rf /www/user/shared-jy && rm -rf /jffs/addons/shared-jy
@Jack Yaz
You are brilliant. Thank you for everything you do!
That is for the user to decide. For set it and forget it- the routers ntp server does just fine for average user. For those that like more customizable approach with graphs and charts ntpmerlin does the job.What;s the benefit of NTPMerlin vs the built in NTP Merlin NTP server?
Choose an option: 3
ntpMerlin: Lock file found (age: 12 seconds) - stopping to prevent duplicate runs
Installing ntpd (4.2.8p13-4) to root...
Downloading http://bin.entware.net/armv7sf-k2.6/ntpd_4.2.8p13-4_armv7-2.6.ipk
Configuring ntpd.
/jffs/scripts/ntpmerlin: line 1200: can't open /jffs/addons/ntpmerlin.d/ntpdstats_www.asp: no such file
/jffs/scripts/ntpmerlin: line 1200: can't open /jffs/addons/ntpmerlin.d/ntpdstats_www.asp: no such file
/jffs/scripts/ntpmerlin: line 1200: can't open /jffs/addons/ntpmerlin.d/ntpdstats_www.asp: no such file
/jffs/scripts/ntpmerlin: line 1200: can't open /jffs/addons/ntpmerlin.d/ntpdstats_www.asp: no such file
/jffs/scripts/ntpmerlin: line 1200: can't open /jffs/addons/ntpmerlin.d/ntpdstats_www.asp: no such file
remote refid st t when poll reach delay offset jitter
==============================================================================
ntp1.0x00.lv 193.204.114.233 2 u 50y 64 3 1584558 7922792 29153.0
ntp4.0x00.lv 194.100.2.194 2 u 50y 64 3 1584558 7922792 0.002
ntp3.0x00.lv 193.204.114.233 2 u 50y 64 3 1584558 7922792 29201.6
wolf.netparks.l 194.58.203.148 2 u 28 64 3 2.620 0.398 5602259
Wow, what a mess.I get this message when i try to edit ntp.conf file (ntpMerlin option 3):
and it returns to menu. ntp.conf file is not present in /tmp/etcCode:Choose an option: 3 ntpMerlin: Lock file found (age: 12 seconds) - stopping to prevent duplicate runs
Actions described in post #913 i've done.
Router model and version in signature. Do you need any config/log files?
I uninstalled and reinstalled ntpMerlin, during installation:
Not to mention router interface got restarted, causing loss of internet connection. As per Murphy's Law someone else on my family was doing something important - applying for the job. Talk about coincidencesCode:Installing ntpd (4.2.8p13-4) to root... Downloading http://bin.entware.net/armv7sf-k2.6/ntpd_4.2.8p13-4_armv7-2.6.ipk Configuring ntpd. /jffs/scripts/ntpmerlin: line 1200: can't open /jffs/addons/ntpmerlin.d/ntpdstats_www.asp: no such file /jffs/scripts/ntpmerlin: line 1200: can't open /jffs/addons/ntpmerlin.d/ntpdstats_www.asp: no such file /jffs/scripts/ntpmerlin: line 1200: can't open /jffs/addons/ntpmerlin.d/ntpdstats_www.asp: no such file /jffs/scripts/ntpmerlin: line 1200: can't open /jffs/addons/ntpmerlin.d/ntpdstats_www.asp: no such file /jffs/scripts/ntpmerlin: line 1200: can't open /jffs/addons/ntpmerlin.d/ntpdstats_www.asp: no such file
I uninstalled ntpMerlin and installed it back again. Works now, i specified my router's IP as time server for Windows 10 - sync OK.
ntpq -p output:
I think ntpMerlin runs into issues when default NTP server is enabled on router and it has option "redirect all clients to router NTP" active.Code:remote refid st t when poll reach delay offset jitter ============================================================================== ntp1.0x00.lv 193.204.114.233 2 u 50y 64 3 1584558 7922792 29153.0 ntp4.0x00.lv 194.100.2.194 2 u 50y 64 3 1584558 7922792 0.002 ntp3.0x00.lv 193.204.114.233 2 u 50y 64 3 1584558 7922792 29201.6 wolf.netparks.l 194.58.203.148 2 u 28 64 3 2.620 0.398 5602259
It tries to disable it and then gets wonky. Just my guess...
#
logfile /opt/var/spool/ntp/ntp.log
driftfile /opt/var/spool/ntp/ntp.drift
leapfile /opt/var/spool/ntp/leap-seconds.list # https://hpiers.obspm.fr/iers/bul/bulc/ntp/leap-seconds.list
#
restrict default limited kod nomodify notrap nopeer noquery # restrictive default IPv4
restrict -6 default limited kod nomodify notrap nopeer noquery # restrictive default IPv6
restrict source nomodify notrap noquery # required for pool directive if using restrictive default permissions
restrict 127.0.0.1 # permissive localhost IPv4
restrict -6 ::1 # permissive localhost IPv6
#
interface ignore wildcard
interface listen br0
#
pool time.cloudflare.com iburst
#
==============================================================================
remote refid st t when poll reach delay offset jitter
==============================================================================
time.cloudflare .POOL. 16 p - 64 0 0.000 0.000 0.000
-time.cloudflare 10.106.8.5 3 u 33 64 377 9.774 0.931 2.399
+time.cloudflare 10.106.8.5 3 u 41 64 377 8.192 0.281 5.064
-time.cloudflare 10.106.8.5 3 u 36 64 377 8.923 0.692 2.116
-time.cloudflare 10.106.8.5 3 u 19 64 377 10.830 1.450 6.800
==============================================================================
remote refid st t when poll reach delay offset jitter
==============================================================================
time.cloudflare .POOL. 16 p - 64 0 0.000 0.000 0.002
time.cloudflare 10.151.8.4 3 u 1 64 1 2.693 -0.006 6468975
time.cloudflare 10.151.8.4 3 u 1 64 1 2.741 0.068 0.007
18 Mar 22:05:23 ntpd[5236]: kernel reports TIME_ERROR: 0x2041: Clock Unsynchronized
18 Mar 22:05:23 ntpd[5236]: kernel reports TIME_ERROR: 0x2041: Clock Unsynchronized
NTP only uses UTC. The local offset is left to your operating system to handle. In the case of your router, you need to get the settings correct in Administration --> Settings --> Basic ConfigThanks @EmeraldDeer! I removed local NTP servers, replacing them with "pool time.cloudflare.com iburst"
and ntpq -p output now looks good:
Only 2 things still bothering me:Code:remote refid st t when poll reach delay offset jitter ============================================================================== time.cloudflare .POOL. 16 p - 64 0 0.000 0.000 0.002 time.cloudflare 10.151.8.4 3 u 1 64 1 2.693 -0.006 6468975 time.cloudflare 10.151.8.4 3 u 1 64 1 2.741 0.068 0.007
And time is off by 2 hours in this log. Should be 00:05, date command from CLI shows correct time, same for System log menu.Code:18 Mar 22:05:23 ntpd[5236]: kernel reports TIME_ERROR: 0x2041: Clock Unsynchronized 18 Mar 22:05:23 ntpd[5236]: kernel reports TIME_ERROR: 0x2041: Clock Unsynchronized
I did reboot router after configuring.
time_zone=EST5DST
time_zone_dst=1
time_zone_dstoff=M3.2.0/2,M11.1.0/2
time_zone_x=EST5DST,M3.2.0/2,M11.1.0/2
Thread starter | Title | Forum | Replies | Date |
---|---|---|---|---|
W | ntpMerlin ntpMerlin and timeserverd ntp_ready tests | Asuswrt-Merlin AddOns | 1 | |
D | NTPmerlin config log not found | Asuswrt-Merlin AddOns | 2 | |
A | ntpMerlin Problems with ntpMerlin | Asuswrt-Merlin AddOns | 9 |
Welcome To SNBForums
SNBForums is a community for anyone who wants to learn about or discuss the latest in wireless routers, network storage and the ins and outs of building and maintaining a small network.
If you'd like to post a question, simply register and have at it!
While you're at it, please check out SmallNetBuilder for product reviews and our famous Router Charts, Ranker and plenty more!