LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 03-23-2015, 06:50 AM   #1
LinuxLover
Member
 
Registered: Feb 2004
Distribution: Centos 7 x86_64 , Rocky Linux 8 (aarch64)
Posts: 196

Rep: Reputation: 32
How to get NTP client logs on NTP server


Hello folks,
We are manging a NTP server on RHEL 6.
NTP version Ver. 4.2.6p5
This is the ntp.conf file.
Code:
$ cat /etc/ntp.conf
server 213.X.X.X iburst
server 195.X.X.X iburst

driftfile /var/lib/ntp/ntp.drift
logfile /opt/ntp/ntp.log
restrict default kod nomodify notrap nopeer noquery
restrict 127.0.0.1
restrict -6 ::1

logconfig =syncevents +peerevents +sysevents +allclock
statistics clockstats cryptostats loopstats peerstats
Is there any way to captured the NTP client logs which are syncing time with our NTP server. Our log file so for containg NTP server daemon related logs only.
 
Old 03-23-2015, 08:55 AM   #2
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,969

Rep: Reputation: 7333Reputation: 7333Reputation: 7333Reputation: 7333Reputation: 7333Reputation: 7333Reputation: 7333Reputation: 7333Reputation: 7333Reputation: 7333Reputation: 7333
I'm sorry, but do not understand it. clients are running on other hosts and you can log their activity on their own hosts (or you can try remote logging if configured).
 
Old 03-23-2015, 09:18 AM   #3
LinuxLover
Member
 
Registered: Feb 2004
Distribution: Centos 7 x86_64 , Rocky Linux 8 (aarch64)
Posts: 196

Original Poster
Rep: Reputation: 32
Dear pan64,
We just want to log all ntp client request along with their time, IP , sync status etc which are reaching on our NTP server. So time client complaints that your NTP server was not available for short period of time, and for that time we were not sure whether their request was reached to server or not. We have to use tcpdump most of the time for troubleshooting.
 
Old 03-24-2015, 01:34 AM   #4
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,969

Rep: Reputation: 7333Reputation: 7333Reputation: 7333Reputation: 7333Reputation: 7333Reputation: 7333Reputation: 7333Reputation: 7333Reputation: 7333Reputation: 7333Reputation: 7333
here are the ports you need to take into account: http://www.computerports.net/ntp-port/
and here is a thread about logging: http://ubuntuforums.org/showthread.php?t=2156003
 
Old 03-24-2015, 08:15 AM   #5
LinuxLover
Member
 
Registered: Feb 2004
Distribution: Centos 7 x86_64 , Rocky Linux 8 (aarch64)
Posts: 196

Original Poster
Rep: Reputation: 32
Thanks pan64,
By using your link I am able to log client requests through iptables daemon. But I tried hard to find out any NTP server builtin mechanism to log client request , it looks like some how it does not provide such functionality. If any one knows please share.
 
Old 03-24-2015, 08:21 AM   #6
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,969

Rep: Reputation: 7333Reputation: 7333Reputation: 7333Reputation: 7333Reputation: 7333Reputation: 7333Reputation: 7333Reputation: 7333Reputation: 7333Reputation: 7333Reputation: 7333
are you thinking about ntp_mon ?
 
Old 03-26-2015, 05:44 AM   #7
LinuxLover
Member
 
Registered: Feb 2004
Distribution: Centos 7 x86_64 , Rocky Linux 8 (aarch64)
Posts: 196

Original Poster
Rep: Reputation: 32
Thanks pan64.
Let me explore this.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
ntp client is not syncing with ntp server time sagar666 Linux - Server 3 12-19-2014 04:47 AM
NTP client is not syncing to ntp server LittleMaster Linux - Newbie 6 04-05-2013 02:37 PM
[SOLVED] NTP configuration in client to synchronize with NTP server. antnish Linux - General 12 04-01-2013 01:49 PM
ntp server keeps on changing time-local ntp server Gil@LQ Linux - Newbie 3 01-23-2013 09:33 AM
ntp drift file in /etc/ntp instead of /var/lib/ntp - suggestion for a patch in Slack niels.horn Slackware 16 05-07-2009 07:35 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 02:59 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration