[email protected] said:
> I'm trying to find some good monitoring tool/suite (for logging and
> graphing) of these Linux ntpd stats:
> - Number of requests and/or bandwidth used
> - Number of active servers I'm in sync with
> - Number of clients (peers)
> - Resources NTP service is using (cpu,...)
> - Offset, jitter,...
> - ...and anything interesting about NTP 

There are two parts to that question:
  collecting the data, and
  graphing it.

For making graphs, I've been happy with gnuplot.
It will probably take a few scripts to pre-process some of the data,
for example, splitting peerstats/rawstats into a file per IP Address.

In general, ntpd doesn't take a lot of  CPU.  I don't know of any monitoring 
tools, but it should be reasonable to write a script that will use the write 
options on ps to track how much CPU it's using.

For collecting data...
  see monopt.html in the documentation for your version of NTP.
I suggest turning on all of the logging options in the daily files mode.  
Then poke around and see what you can find.

There is a lot of information in there and some of it probably won't be as 
clear as you would like.  I suggest skimming the first time to get a sense of 
the big picture and then reading again more carefully.

Be sure to get the documentation corresponding to the version of ntpd that 
you are running.  There have been a lot of changes in this area over the 
years.

Harlan is getting ready to release the next version of the ntpd package.   If 
you are interested in this area, I suggest using the latest ntp-dev version.
  http://support.ntp.org/bin/view/Main/SoftwareDownloads
If you find bugs or omissions, they might even get fixed before the next 
release.

----------

> - Number of clients (peers)
This one is tricky.  NTP doesn't really need to keep track of clients.  Dave 
Hart did a great cleanup on this area a short while ago.  In the ntp-dev code,
  ntpq -c mrulist
will give you a list of "clients".  There is a way to set the memory size 
used for that, but I don't remember the name and didn't find it with a quick 
scan.  Ahh it's in miscopt.html  Scan down to the mru command.


Again, a lot of this stuff has changed since the last official release so 
please try the latest ntp-dev version.









-- 
These are my opinions.  I hate spam.



_______________________________________________
pool mailing list
[email protected]
http://lists.ntp.org/listinfo/pool

Reply via email to