aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/do-newntpstat
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/do-newntpstat')
-rwxr-xr-xscripts/do-newntpstat21
1 files changed, 21 insertions, 0 deletions
diff --git a/scripts/do-newntpstat b/scripts/do-newntpstat
new file mode 100755
index 0000000..8f4e1d7
--- /dev/null
+++ b/scripts/do-newntpstat
@@ -0,0 +1,21 @@
+#! /bin/sh
+
+case "$1" in
+ "") echo "Missing system name."; exit 1
+esac
+
+RRD_BIN=/usr/local/bin
+
+# 26 hours and 8 days data bins
+
+${RRD_BIN}/rrdtool create $1.rrd \
+ DS:offset:GAUGE:1200:U:U \
+ DS:sjit:GAUGE:1200:U:U \
+ DS:cjit:GAUGE:1200:U:U \
+ DS:wander:GAUGE:1200:U:U \
+ DS:freq:GAUGE:1200:U:U \
+ DS:disp:GAUGE:1200:U:U \
+ RRA:LAST:0.5:1:312 \
+ RRA:LAST:0.5:12:2304
+
+#end