[ntp:questions] Re: ntpq -p -n times out

Danny Mayer mayer at ntp.isc.org
Thu Mar 23 03:53:52 UTC 2006


Steve Kostecke wrote:
> On 2006-03-21, Chris Richmond wrote:
> 
>> Steve Kostecke <kostecke at ntp.isc.org> writes:
>>
>>> Either ntpd is not really running, or the restrictions in your
>>> ntp.conf are preventing you from querying your ntpd status.
>> Well... when it was dying trying to start because of the bad args,
>> I got Connection Refused messages, so I'm 99% sure its running.
> 
> You'll see 'Connection Refused' even if ntpd isn't running.
> 

Technically, you'll get Connection Refused if nothing is listening on
that particular address/port. One reason may be that ntpd is not running.

> Have you grepped the process tree to see if ntpd is really running?
> 
>> The config file is pretty basic, but that's where I'll check first.
>>
>> If there's no authentication stuff enabled, what else would restrict
>> access?
> 
> Check for lines starting with 'restrict' and look for 'noquery'.
> 

That won't give you a "Connection Refused" message. It just won't
respond and the client will time out.

Danny




More information about the questions mailing list