Xymon Mailing List Archive search

NTP

8 messages in this thread

list Kevin · Sun, 12 Nov 2006 10:19:17 -0500 ·
Hi all,
  Can someone tell me how to get the NTP test to work? I get an error when I try it saying something like " a suitable time server could not be found". I get the impression that I need to specify MY time server in some config file somewhere but I cannot find where that is. Any help appreciated.

Kevin
list Rob MacGregor · Sun, 12 Nov 2006 16:03:13 +0000 ·
quoted from Kevin
On 11/12/06, Kevin <user-a004b26f09c6@xymon.invalid> wrote:
Hi all,
  Can someone tell me how to get the NTP test to work? I get an error
when I try it saying something like " a suitable time server could not
be found". I get the impression that I need to specify MY time server in
some config file somewhere but I cannot find where that is. Any help
appreciated.
A quick eyeball of the output suggests it uses:

 ntpdate -u -q -p 2 HOST_IP 2>&1

Try su-ing to the user you run hobbit as and try the command.

-- 
                 Please keep list traffic on the list.

Rob MacGregor
      Whoever fights monsters should see to it that in the process he
        doesn't become a monster.                  Friedrich Nietzsche
list Kevin · Sun, 12 Nov 2006 11:48:30 -0500 ·
Thanks for the feedback Rob. I tried what you said and it doesn't matter. This is being run from the main Hobbit server. The problem seems to be with iptables on the client. When I shut off iptables on the client it works just fine so the query from the hobbit server to the client is being blocked. This is what the server says:

server 10.164.138.60, stratum 0, offset 0.000000, delay 0.00000
12 Nov 11:31:32 ntpdate[26628]: no server suitable for synchronization found


It looks like it is trying to use port 26628.


Got any ideas how I specify the port to use (and exactly where that is specified in Hobbit) so I can allow for it in the client iptables config?


Thanks

kevin
quoted from Rob MacGregor


Rob MacGregor wrote:
On 11/12/06, Kevin <user-a004b26f09c6@xymon.invalid> wrote:
Hi all,
  Can someone tell me how to get the NTP test to work? I get an error
when I try it saying something like " a suitable time server could not
be found". I get the impression that I need to specify MY time server in
some config file somewhere but I cannot find where that is. Any help
appreciated.
A quick eyeball of the output suggests it uses:

ntpdate -u -q -p 2 HOST_IP 2>&1

Try su-ing to the user you run hobbit as and try the command.
list Dan Vande More · Sun, 12 Nov 2006 10:50:01 -0600 ·
26628 in this case is the pid. ntp always has an destination port of 123 so
you can write your iptables rule with that.
quoted from Kevin

On 11/12/06, Kevin <user-a004b26f09c6@xymon.invalid> wrote:
Thanks for the feedback Rob. I tried what you said and it doesn't
matter. This is being run from the main Hobbit server. The problem seems
to be with iptables on the client. When I shut off iptables on the
client it works just fine so the query from the hobbit server to the
client is being blocked. This is what the server says:

server 10.164.138.60, stratum 0, offset 0.000000, delay 0.00000
12 Nov 11:31:32 ntpdate[26628]: no server suitable for synchronization
found


It looks like it is trying to use port 26628.


Got any ideas how I specify the port to use (and exactly where that is
specified in Hobbit) so I can allow for it in the client iptables config?


Thanks

kevin


Rob MacGregor wrote:
On 11/12/06, Kevin <user-a004b26f09c6@xymon.invalid> wrote:
Hi all,
  Can someone tell me how to get the NTP test to work? I get an error
when I try it saying something like " a suitable time server could not
be found". I get the impression that I need to specify MY time server
in
some config file somewhere but I cannot find where that is. Any help
appreciated.
A quick eyeball of the output suggests it uses:

ntpdate -u -q -p 2 HOST_IP 2>&1

Try su-ing to the user you run hobbit as and try the command.
list Rob MacGregor · Sun, 12 Nov 2006 16:53:16 +0000 ·
quoted from Kevin
On 11/12/06, Kevin <user-a004b26f09c6@xymon.invalid> wrote:
Thanks for the feedback Rob. I tried what you said and it doesn't
matter. This is being run from the main Hobbit server. The problem seems
to be with iptables on the client. When I shut off iptables on the
client it works just fine so the query from the hobbit server to the
client is being blocked. This is what the server says:

server 10.164.138.60, stratum 0, offset 0.000000, delay 0.00000
12 Nov 11:31:32 ntpdate[26628]: no server suitable for synchronization found

It looks like it is trying to use port 26628.
That's the process id :)

Check the iptables config on the clients and ensure that they allow
the hobbit server to communicate to port 123/UDP.
quoted from Rob MacGregor

-- 
                 Please keep list traffic on the list.

Rob MacGregor
      Whoever fights monsters should see to it that in the process he
        doesn't become a monster.                  Friedrich Nietzsche
list Henrik Størner · Sun, 12 Nov 2006 17:54:05 +0100 ·
quoted from Dan Vande More
On Sun, Nov 12, 2006 at 10:50:01AM -0600, Dan Vande More wrote:
26628 in this case is the pid. ntp always has an destination port of 123 so
you can write your iptables rule with that.
Two other things to remember:

1) ntp uses UDP, not tcp. So your iptables rule should be something like
    iptables -A INPUT -p udp --destination-port 123 -s ip.of.hobbit.server -j ACCEPT

2) The ntp.conf on the host you want to check must be setup to allow
   queries by the Hobbit server.


Regards,
Henrik
list Kevin · Sun, 12 Nov 2006 12:27:43 -0500 ·
Gentlemen,
  As always, the feedback here is outstanding. I forgot that ntp uses 
UDP and I wrote a rule using TCP! When I changed it to UDP, it all 
started working.

Thanks

kevin
quoted from Henrik Størner


Henrik Stoerner wrote:
On Sun, Nov 12, 2006 at 10:50:01AM -0600, Dan Vande More wrote:
  
26628 in this case is the pid. ntp always has an destination port of 123 so
you can write your iptables rule with that.
    
Two other things to remember:

1) ntp uses UDP, not tcp. So your iptables rule should be something like
    iptables -A INPUT -p udp --destination-port 123 -s ip.of.hobbit.server -j ACCEPT

2) The ntp.conf on the host you want to check must be setup to allow
   queries by the Hobbit server.


Regards,
Henrik

list Kevin · Sun, 12 Nov 2006 14:49:34 -0500 ·
Henrik,
  How did you get the VMIO test to work? I added it to the clientlaunch 
just like all the others but all I get is a green dot on the display 
with no data. gat any ideas?


Regards
quoted from Kevin

Kevin


Henrik Stoerner wrote:
On Sun, Nov 12, 2006 at 10:50:01AM -0600, Dan Vande More wrote:
  
26628 in this case is the pid. ntp always has an destination port of 123 so
you can write your iptables rule with that.
    
Two other things to remember:

1) ntp uses UDP, not tcp. So your iptables rule should be something like
    iptables -A INPUT -p udp --destination-port 123 -s ip.of.hobbit.server -j ACCEPT

2) The ntp.conf on the host you want to check must be setup to allow
   queries by the Hobbit server.


Regards,
Henrik