[ntp:questions] Programmatically monitoring / controlling NTP service

Robert Hegner robert.hegner at gmail.com
Tue Jan 31 07:07:46 UTC 2012


I'm developing a distributed system where time synchronization is done using NTP. I'd like to give the user the possibility to do some basic monitoring / controlling of all the NTP clients in the system from the main control program. So for example I'd like to show the status of all remote NTP clients like Meinberg's NTP Time Server Monitor does.

Is there some library I can link against to gain access to the local (or even better: a remote) instance of the NTP service?

I took a look into the sources of NTP and noticed that there is a static library called libntp. But I didn't find any documentation of what that library exactly does.

Can I use that library in my own software for the purpose described above? I would also be happy to get some links (to documentation) and hints to get started.

Btw, I'm aware of the ntpq and ntpdc command line tools. But I'd prefer direct access via (dynamic) library.

Robert.



More information about the questions mailing list