aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/do-newntpstat
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/do-newntpstat')
-rwxr-xr-xscripts/do-newntpstat5
1 files changed, 5 insertions, 0 deletions
diff --git a/scripts/do-newntpstat b/scripts/do-newntpstat
index 8f4e1d7..bae8b37 100755
--- a/scripts/do-newntpstat
+++ b/scripts/do-newntpstat
@@ -1,5 +1,6 @@
#! /bin/sh
+mkdir -p ../rrd/
case "$1" in
"") echo "Missing system name."; exit 1
esac
@@ -19,3 +20,7 @@ ${RRD_BIN}/rrdtool create $1.rrd \
RRA:LAST:0.5:12:2304
#end
+
+mv $1.rrd ../rrd/
+echo $1 >> ../rrd/list-of-systems
+./do-build-index