Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
NTP: non riesco a vedere i log
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian)
View previous topic :: View next topic  
Author Message
fbcyborg
Advocate
Advocate


Joined: 16 Oct 2005
Posts: 3056
Location: ROMA

PostPosted: Wed Apr 30, 2008 3:14 pm    Post subject: NTP: non riesco a vedere i log Reply with quote

Ho installato NTP e tutto funziona bene tranne il fatto che non vedo i log prodotti da NTP stesso.
Ad esempio mi aspetterei che se io facessi un dmesg| grep ntp uscisse qualcosa. Invece niente.
Ok, nel file ntp.conf ho impostato come log file /var/log/ntpd.log, ma di quel file non vi è traccia.

Ho impostato cron in modo che aggiorni l'ora una volta al giorno, quindi dovrei vedere nei log qualcosa del tipo "synchronized ecc..."

Perché non funziona?
_________________
[HOWTO] Come criptare la /home usando cryptsetup e luks
[HOWTO] Abilitare il supporto al dom0 XEN su kernel 3.X
Help answer the unanswered
Back to top
View user's profile Send private message
Kernel78
Moderator
Moderator


Joined: 24 Jun 2005
Posts: 3654

PostPosted: Wed Apr 30, 2008 3:37 pm    Post subject: Reply with quote

se non hai necessità particolari ti consiglio openntpd ha una configurazione snellissima (con una riga te la cavi sul client e il server in genere è sistemato con 2) e nei log trovi i suoi messaggi :wink:
_________________
Le tre grandi virtù di un programmatore: pigrizia, impazienza e arroganza. (Larry Wall).
Prima di postare un file togli i commenti con
Code:
grep -vE '(^[[:space:]]*($|(#|!|;|//)))'
Back to top
View user's profile Send private message
fbcyborg
Advocate
Advocate


Joined: 16 Oct 2005
Posts: 3056
Location: ROMA

PostPosted: Wed Apr 30, 2008 3:44 pm    Post subject: Reply with quote

Grazie!
Al momento però non ho la necessità di installare un server del tempo.
Ho installato solo il pacchetto net-misc/ntp. A me interessa che il mio PC si connetta e sincronizzi l'orologio con i server ntp che ho impostato e che nel log mi scriva quando ha effettuato l'aggiornamento. E' giusto una conferma in più per vedere che l'aggiornamento giornaliero impostato su vixie-cron funziona.
_________________
[HOWTO] Come criptare la /home usando cryptsetup e luks
[HOWTO] Abilitare il supporto al dom0 XEN su kernel 3.X
Help answer the unanswered
Back to top
View user's profile Send private message
Kernel78
Moderator
Moderator


Joined: 24 Jun 2005
Posts: 3654

PostPosted: Wed Apr 30, 2008 8:10 pm    Post subject: Reply with quote

PEr fare quello che vuoi con openntpd ti basta un /etc/ntpd.comf con solo una riga
Quote:
servers europe.pool.ntp.org
e mettere il servizio nel runlevel default, senza dover usare cron o altro e
Code:
grep ntpd /var/log/syslog
Apr 30 17:12:53 odino ntpd[6292]: adjusting local clock by 0.130118s
Apr 30 18:32:36 odino ntpd[6292]: adjusting local clock by 0.136457s
Apr 30 20:53:32 odino ntpd[6292]: adjusting local clock by 0.133205s
(per quanto ne so nemmeno ntp dovrebbe essere lanciato da cron però :? )
_________________
Le tre grandi virtù di un programmatore: pigrizia, impazienza e arroganza. (Larry Wall).
Prima di postare un file togli i commenti con
Code:
grep -vE '(^[[:space:]]*($|(#|!|;|//)))'
Back to top
View user's profile Send private message
fbcyborg
Advocate
Advocate


Joined: 16 Oct 2005
Posts: 3056
Location: ROMA

PostPosted: Wed Apr 30, 2008 11:04 pm    Post subject: Reply with quote

Kernel78 wrote:
PEr fare quello che vuoi con openntpd ti basta un /etc/ntpd.comf con solo una riga
Quote:
servers europe.pool.ntp.org
e mettere il servizio nel runlevel default, senza dover usare cron o altro e
Code:
grep ntpd /var/log/syslog
Apr 30 17:12:53 odino ntpd[6292]: adjusting local clock by 0.130118s
Apr 30 18:32:36 odino ntpd[6292]: adjusting local clock by 0.136457s
Apr 30 20:53:32 odino ntpd[6292]: adjusting local clock by 0.133205s
(per quanto ne so nemmeno ntp dovrebbe essere lanciato da cron però :? )

Ah, ok.. comunque in realtà ntp parte ad ogni avvio del sistema. L'ho messo nel runlevel di default.
Il fatto è che se installo ntp su un server (che sta sempre acceso) - vabbè a questo punto installo openntp - se voglio fargli sincronizzare l'orologio una volta al giorno devo usare cron + ntpdate!
_________________
[HOWTO] Come criptare la /home usando cryptsetup e luks
[HOWTO] Abilitare il supporto al dom0 XEN su kernel 3.X
Help answer the unanswered
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum