diff options
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/do-build-index (renamed from scripts/do-mung-newhost) | 5 | ||||
-rwxr-xr-x | scripts/do-newntpstat | 5 |
2 files changed, 10 insertions, 0 deletions
diff --git a/scripts/do-mung-newhost b/scripts/do-build-index index b0219b9..b868fe6 100755 --- a/scripts/do-mung-newhost +++ b/scripts/do-build-index @@ -11,6 +11,11 @@ do sed -e s/POOL/$X/g $TEMPLATESDIR/template >> out.template done +for X in `cat /usr/local/www/data/rrd/list-of-systems` +do + sed -e s/POOL/$X/g $TEMPLATESDIR/template2 >> out.template +done + sync cat $TEMPLATESDIR/index-head out.template $TEMPLATESDIR/index-tail > index.html rm -f out.template 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 |