aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorMatt Rude <[email protected]>2011-06-25 23:28:08 -0500
committerMatt Rude <[email protected]>2011-06-25 23:28:08 -0500
commitc96fb63d0270e9a41a73defc84cdcb03e87ba265 (patch)
treed61d23c5b824ff0a6a9209a7376e6159432bbbf3 /scripts
parentc5f219f1c8295d7858cee88881b68f10968b90c9 (diff)
downloadtime.mattrude.com-c96fb63d0270e9a41a73defc84cdcb03e87ba265.tar.gz
time.mattrude.com-c96fb63d0270e9a41a73defc84cdcb03e87ba265.tar.bz2
time.mattrude.com-c96fb63d0270e9a41a73defc84cdcb03e87ba265.zip
more readme updates.
Diffstat (limited to 'scripts')
-rw-r--r--scripts/README.md16
1 files changed, 14 insertions, 2 deletions
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 * * * * <path-to-source>/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 <path-to-source>/scripts/ntpclientsd -dump /var/log/ntpstats/ntp_stats.dump >> /var/log/ntpstats/ntp_stats.log 2>&1 &" >> /etc/rc.local
+ /usr/bin/perl -w <path-to-source>/scripts/ntpclientsd -dump /var/log/ntpstats/ntp_stats.dump >> /var/log/ntpstats/ntp_stats.log 2>&1 &
- */5 * * * * <path_to_source>/scripts/do-xntp > /dev/null 2&>1
## Adding a new server ##