NTPD config error



  • Found this in syslog today right after update to 23 august build:
    <99>Aug 24 20:07:30 ntpd[43900]: line 10 column 8 syntax error, unexpected T_Statistics in 24-Aug 20:7:30.28 from 1xx.xx.7x.1
    <99>Aug 24 20:07:30 ntpd[43900]: syntax error in /var/etc/ntpd.conf line 10, column 8 in 24-Aug 20:7:30.28 from 1xx.xx.7x.1
    <99>Aug 24 20:07:30 ntpd[43900]: syntax error in /var/etc/ntpd.conf line 10, column 8 in 24-Aug 20:7:30.28 from 1xx.xx.7x.1

    /var/etc/ntpd.conf

    # 
    # pfSense ntp configuration file 
    # 
    
    # Upstream Servers
    server 0.pfsense.pool.ntp.org iburst maxpoll 9
    enable monitor
    enable statistics
    enable clockstats
    statsdir /var/log/ntp
    logconfig =syncall +clockall
    driftfile /var/db/ntpd.drift
    interface ignore all
    interface listen em1
    
    

    I don't know what is wrong so I've decided to ask - is it normal or something was broken?


  • Rebel Alliance Developer Netgate

    Hmm it's possible those are only valid when a GPS is active, I'll need to run some tests. The box I've been testing those on has a GPS enabled in NTP and all of those lines work there.


  • Rebel Alliance Developer Netgate

    ah, found it. Apparently they changed the keyword at some point it should be "enable stats" and then "statistics clockstats". Fixed in the src, will commit shortly.



  • Fixed! Thanks jimp!


Locked