What's new

ntpMerlin ntpMerlin - NTP Daemon for AsusWRT Merlin

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

After I updated conmon and ntpmerlin yesterday (AC68U, 384.14_2), the graphs under Tools are gone for both. That never happened after previous updates. Will collect more info later today. "ps" shows that ntpd is running and using an existing ntp.conf. However, the last time the log file (referenced in ntp.conf) was updated was 20 hours ago.

Same. Reboot fixed it
 
OK, I did the forced update but missed the reboot - will do now.

Edit: Life could be much easier if I only would read the documentation properly... Stats are back! Thanks for your help!
 
Last edited:
@Jack Yaz,

I wanted to adjust my server list but my /jffs/configs/ntp.conf is empty. I uninstalled and reinstalled ntpMerlin several times but it is empty each time. Any idea what may be causing this?

Thank you!
 
@Jack Yaz,

I wanted to adjust my server list but my /jffs/configs/ntp.conf is empty. I uninstalled and reinstalled ntpMerlin several times but it is empty each time. Any idea what may be causing this?

Thank you!

Check here:

/jffs/addons/ntpmerlin.d

It gets copied from here as I understand.
 
Check here:

/jffs/addons/ntpmerlin.d

It gets copied from here as I understand.

This is empty but it is my understanding that it shouldn’t be here. On the main menu, option 3 no longer brings up the configuration server list for me. Would also not be surprised if my jffs directory is corrupted somehow. Will wait until this weekend to experiment with it (reformat jffs, my usb flash drive).


Sent from my iPhone using Tapatalk
 
My understanding is that it was moved to /jffs/addons/ntpmerlin.d/ntp.conf permanently. This is the only copy of the proper ntp.conf file outside of my backups.
Code:
# cat /jffs/addons/ntpmerlin.d/ntp.conf
#
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
#
server 192.168.50.200
server 192.168.50.230 iburst minpoll 3 maxpoll 3
#
#pool north-america.pool.ntp.org
#
enable stats
statsdir /opt/var/spool/ntp
statistics loopstats protostats sysstats
filegen loopstats file loopstats type week enable
filegen protostats file protostats type week enable
filegen sysstats file sysstats type week enable
#
/tmp/mnt/ent/entware/etc/ntp.conf appears to be a generic default file which is not live.
 
My understanding is that it was moved to /jffs/addons/ntpmerlin.d/ntp.conf permanently. This is the only copy of the proper ntp.conf file outside of my backups.
Code:
# cat /jffs/addons/ntpmerlin.d/ntp.conf
#
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
#
server 192.168.50.200
server 192.168.50.230 iburst minpoll 3 maxpoll 3
#
#pool north-america.pool.ntp.org
#
enable stats
statsdir /opt/var/spool/ntp
statistics loopstats protostats sysstats
filegen loopstats file loopstats type week enable
filegen protostats file protostats type week enable
filegen sysstats file sysstats type week enable
#
/tmp/mnt/ent/entware/etc/ntp.conf appears to be a generic default file which is not live.

Good to know, thank you! So, will step 3 of the menu (edit configuration) go away or will it be eventually changed so it leads others to this:

cat /jffs/addons/ntpmerlin.d/ntp.conf





Sent from my iPhone using Tapatalk
 
Good to know, thank you! So, will step 3 of the menu (edit configuration) go away or will it be eventually changed so it leads others to this:

cat /jffs/addons/ntpmerlin.d/ntp.conf

Sent from my iPhone using Tapatalk
Yes, the latter when Jack reads your post :)
 
I too had the problem with the option 3 being blank. I updated the ntpMerlin script, rebooted, went back to option 3, and it is still blank. But if I go to /jffs/addons/ntpmerlin.d/ntp.conf, it is there.
 
I have the same problem like you. Maybe Jack Yaz will fix it in the next update :)
 
ntp conf editing option fixed, no version change. Run u at the menu to grab it.

Apologies for the delay.
That did the trick for me, thanks. But I really would appreciate if you bump the minor.minor version whenever you make a change like that. It really does help in knowing and communicating what is running.
 
That did the trick for me, thanks. But I really would appreciate if you bump the minor.minor version whenever you make a change like that. It really does help in knowing and communicating what is running.
That's why we have an md5 check, such a minor change didn't really warrant a version increment (especially when I'm working on doing the config in the WebUI, which does need a version increment ;-) )
 
It occurred to me whether time.cloudflare.com supports the ntp.conf pool directive.
Code:
#
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
#
server 192.168.50.200
server 192.168.50.230 iburst minpoll 3 maxpoll 3
#
pool time.cloudflare.com
#
enable stats
statsdir /opt/var/spool/ntp
statistics loopstats protostats sysstats
filegen loopstats file loopstats type week enable
filegen protostats file protostats type week enable
filegen sysstats file sysstats type week enable
#
It would appear that it does. It is nice that the requests are being serviced from the closest Cloudflare data center.
Code:
==============================================================================
     remote           refid      st t when poll reach   delay   offset  jitter
==============================================================================
-LaptopPuget     .GPS.            1 u   12   64  377    0.611   -0.679   0.236
*LeoNTP          .GPS.            1 u    4    8  377    0.151    0.177   0.323
 time.cloudflare .POOL.          16 p    -   64    0    0.000    0.000   0.000
+time.cloudflare 10.106.8.5       3 u    4   64  377    7.905    0.166   1.350
-time.cloudflare 10.106.8.5       3 u    6   64  377    8.014    0.423   1.375
-time.cloudflare 10.106.8.5       3 u    5   64  377    7.690    0.710   0.412
+time.cloudflare 10.106.8.5       3 u    9   64  377    7.876    0.342   0.394
==============================================================================
ntp_gettime() returns code 0 (OK)
  maximum error 7575 us, estimated error 61 us, TAI offset 37
ntp_adjtime() returns code 0 (OK)
  offset 118.169 us, frequency 3.928 ppm, interval 1 s,
==============================================================================
precision=-22, rootdelay=0.151, rootdisp=1.195, refid=192.168.50.230,
mintc=3, offset=0.178547, frequency=3.928, sys_jitter=0.750223,
clk_jitter=0.061, clk_wander=0.051, tai=37, leapsec=201701010000,
==============================================================================
Sun Jan 19 12:31:35 EST 2020
 12:31:35 up 11 days, 16:18,  load average: 1.82, 1.87, 1.89
==============================================================================
 
REQUEST: Could we have a menu item to restart ntpd, either in ntpMerlin or scMerlin?
In the meantime:
Code:
/opt/etc/init.d/S77ntpd restart
 
can anybody clear my confusion regarding this daemon
can I run this along with merlin ntpd?
what is the difference between the both apart from GUI page and CLI script?
apologies for noob questions
 
can anybody clear my confusion regarding this daemon
can I run this along with merlin ntpd?
what is the difference between the both apart from GUI page and CLI script?
apologies for noob questions

No difference in actual use except for the nice graphs. :)

Don't run them both though, that would cause issues, I'm sure. ;)
 

Similar threads

Latest threads

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top