From c96fb63d0270e9a41a73defc84cdcb03e87ba265 Mon Sep 17 00:00:00 2001 From: Matt Rude Date: Sat, 25 Jun 2011 23:28:08 -0500 Subject: more readme updates. --- scripts/README.md | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) (limited to 'scripts') diff --git a/scripts/README.md b/scripts/README.md index e3e0e07..9e9f6b4 100644 --- a/scripts/README.md +++ b/scripts/README.md @@ -6,9 +6,21 @@ http://www.wraith.sf.ca.us/ntp/index.html#monitoring ## Installing ## -This site uses cron scripts to gather statistics from the diffrent servers and to build the graphs. Add the following to your crontab: +The install proccess for this project at this time is a bit cumbersome. Currently it assumes all files are stored in `/var/www/time.mattrude.com`. This will change in the future, but for now, it will be just easiest to create that director on your system. + +To install, first you need to add a cron entry for the RRD graphs. + + */5 * * * * /scripts/do-xntp > /dev/null 2&>1 + +After adding the cron job, you may add your NTP Servers. To add your NTP servers, start by going into the **scripts/** directory. Once in the scripts directory, run the `do-newntpstat` followed by the name of the computer, similar to below. + + ./do-newntpstat time.example.com + +Lastly, if you wish to also count the current number of clients per server, run the below to lines. + + echo "/usr/bin/perl -w /scripts/ntpclientsd -dump /var/log/ntpstats/ntp_stats.dump >> /var/log/ntpstats/ntp_stats.log 2>&1 &" >> /etc/rc.local + /usr/bin/perl -w /scripts/ntpclientsd -dump /var/log/ntpstats/ntp_stats.dump >> /var/log/ntpstats/ntp_stats.log 2>&1 & - */5 * * * * /scripts/do-xntp > /dev/null 2&>1 ## Adding a new server ## -- cgit v1.2.3-59-ga6da