LinuxForum.Fans
Тема

NTP-server в локальной сети

Автор: dim_s 26 сообщений 12181 просмотров
#113852
dim_s написал:
localhost: timed out, nothing received
***Request timed out

по вашем логам следует, что у вас успешно запустился ntpd. Но эта цитата говорит о том, что он не запущен. Очевидно, что он упал через некоторое время после старта. Смотрите логи, как и почему.

#113875

Вот запускаю, лог с рута:

root@dim:/home/dim# /etc/init.d/ntp start
* Starting NTP server ntpd [ OK ]
root@dim:/home/dim#

Вот syslog после запуска:

Jan 5 16:13:54 dim ntpd[13189]: ntpd 4.2.4p8@1.1612-o Fri Apr 9 00:28:40 UTC 2010 (1)
Jan 5 16:13:54 dim ntpd[13190]: precision = 1.000 usec
Jan 5 16:13:54 dim ntpd[13190]: ntp_io: estimated max descriptors: 1024, initial socket boundary: 16
Jan 5 16:13:54 dim ntpd[13190]: Listening on interface #0 wildcard, 0.0.0.0#123 Disabled
Jan 5 16:13:54 dim ntpd[13190]: Listening on interface #1 wildcard, ::#123 Disabled
Jan 5 16:13:54 dim ntpd[13190]: Listening on interface #2 eth0, fec0::b:221:91ff:fe06:5e27#123 Enabled
Jan 5 16:13:54 dim ntpd[13190]: Listening on interface #3 eth0, 2002:2e38:b377:b:221:91ff:fe06:5e27#123 Enabled
Jan 5 16:13:54 dim ntpd[13190]: Listening on interface #4 eth0, fe80::221:91ff:fe06:5e27#123 Enabled
Jan 5 16:13:54 dim ntpd[13190]: Listening on interface #5 lo, ::1#123 Enabled
Jan 5 16:13:54 dim ntpd[13190]: Listening on interface #6 eth1, fe80::221:91ff:fef4:3388#123 Enabled
Jan 5 16:13:54 dim ntpd[13190]: Listening on interface #7 lo, 127.0.0.1#123 Enabled
Jan 5 16:13:54 dim ntpd[13190]: Listening on interface #8 eth0, 192.168.132.2#123 Enabled
Jan 5 16:13:54 dim ntpd[13190]: Listening on interface #9 eth1, 192.168.130.2#123 Enabled
Jan 5 16:13:54 dim ntpd[13190]: Listening on interface #10 ppp0, 10.20.44.232#123 Enabled
Jan 5 16:13:54 dim ntpd[13190]: kernel time sync status 2040
Jan 5 16:13:54 dim ntpd[13190]: frequency initialized 0.000 PPM from /var/lib/ntp/ntp.drift
Jan 5 16:14:33 dim pptp[13141]: nm-pptp-service-13128 log[logecho:pptp_ctrl.c:677]: Echo Reply received.

Как бы всё гуд) но с винды та же ошибка)

#113882
dim_s написал:
Как бы всё гуд)

т.е. он в процессах висит но не отвечает? причём с локального компьютера?

#113887

В процессах его нету)
Вот top



685 root 20 0 46196 12m 7552 S 11.4 3.5 173:09.27 Xorg
1576 dim 20 0 1577m 14m 1972 S 9.4 3.9 525:48.61 CommFort_server
1558 dim 20 0 5700 2804 452 S 6.2 0.7 286:22.73 wineserver
1486 dim 20 0 39944 8936 3900 S 5.9 2.4 8:52.44 vino-server
1661 root 20 0 47188 9260 6188 S 1.6 2.4 16:17.42 gnome-terminal
13237 root 20 0 2540 1184 892 R 1.3 0.3 0:00.12 top
1528 dim 20 0 86508 16m 8096 S 0.7 4.4 18:40.80 clock-applet
1482 dim 20 0 92864 16m 9852 S 0.3 4.5 7:23.76 nautilus
1 root 20 0 2796 1068 704 S 0.0 0.3 0:01.12 init
2 root 20 0 0 0 0 S 0.0 0.0 0:00.00 kthreadd
3 root RT 0 0 0 0 S 0.0 0.0 0:00.00 migration/0
4 root 20 0 0 0 0 S 0.0 0.0 0:05.19 ksoftirqd/0
5 root RT 0 0 0 0 S 0.0 0.0 0:00.00 watchdog/0
6 root 20 0 0 0 0 S 0.0 0.0 0:00.17 events/0
7 root 20 0 0 0 0 S 0.0 0.0 0:00.00 cpuset
8 root 20 0 0 0 0 S 0.0 0.0 0:00.00 khelper
9 root 20 0 0 0 0 S 0.0 0.0 0:00.00 netns
10 root 20 0 0 0 0 S 0.0 0.0 0:00.00 async/mgr
11 root 20 0 0 0 0 S 0.0 0.0 0:00.00 pm
12 root 20 0 0 0 0 S 0.0 0.0 0:00.00 sync_supers
13 root 20 0 0 0 0 S 0.0 0.0 0:00.00 bdi-default
14 root 20 0 0 0 0 S 0.0 0.0 0:00.00 kintegrityd/0

[12]+ Остановлено top
#113935
dim_s написал:
В процессах его нету)
Вот top

и в
[console]ps uax | grep "ntp"[/console]
тоже нет?
ну значит, как я и говорил, после старта, ВНЕЗАПНО, случилось что-то страшное. Посмотрите в логах.

#113948

Вот ответ :

root@dim:/home/dim# ps uax|grep "ntp"
root 9998 0.0 0.3 3860 1352 pts/0 T Jan04 0:00 ntpdc
root 12982 0.0 0.3 3860 1420 pts/0 T 13:46 0:00 ntpdc
ntp 13190 0.0 0.3 4420 1360 ? Ss 16:13 0:00 /usr/sbin/ntpd -p /var/run/ntpd.pid -g -u 120:126
root 13367 0.0 0.2 3336 796 pts/0 S+ 19:17 0:00 grep --color=auto ntp
root@dim:/home/dim#

а в логах ничего, всё в норме , нет сигналов упадка

Войдите или зарегистрируйтесь, чтобы ответить.