[ntp:questions] ntpdc and collectd queries timeout
Michał Purzyński
michalpurzynski1 at gmail.com
Fri Jan 24 16:38:36 UTC 2014
On Friday, January 24, 2014 3:46:16 PM UTC+1, David Lord wrote:
> Steve Kostecke wrote:
>
> > On 2014-01-24, David Lord <snews at lordynet.org> wrote:
>
> >
>
> >> On NetBSD-6 i386 ntp-dev-4.2.7p410
>
> >> $ ntpdc -c kern
>
> >> localhost: timed out, nothing received
>
> >> ***Request timed out
>
> >>
>
> >> Perhaps that is intended behavior for 2014 given recent
>
> >> DDOS attacks?
>
> >
>
> > According to http://archive.ntp.org/ntp4/ChangeLog-dev
>
> > mode 7 requests were disabled more than 2 years ago:
>
> >
>
> > (4.2.7p230) 2011/11/01 Released by Harlan Stenn <stenn at ntp.org>
>
> > * Disable mode 7 (ntpdc) query processing in ntpd by default. ntpq is
>
> > believed to provide all functionality ntpdc did, and uses a less-
>
> > fragile protocol that's safer and easier to maintain. If you do find
>
> > some management via ntpdc is needed, you can use "enable mode7" in the
>
> > ntpd configuration.
>
> >
>
>
>
> Before joining the pool in 2009 I'd changed most of my monitoring
>
> scripts to use ntpq rather than ntpdc.
>
>
>
> $ ntpq -c kerninfo me6000e
>
> associd=0 status=011d leap_none, sync_pps, 1 event, kern,
>
> pll offset: -0.000148
>
> pll frequency:
>
Thanks for all the answers. I will rewrite my monitoring scripts to use the ntpq than. It looks like all the code for type 7 packets is still there, it's just disabled by default.
More information about the questions
mailing list