summaryrefslogtreecommitdiffstats
path: root/retiolum/scripts/adv_graphgen/all_the_graphs.sh
blob: 2811ebb7b6b472125a3fd506b725385344f78313 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/bash

(
  echo "`date` begin all graphs" >> /tmp/build_graph
  cd $(dirname $(readlink -f $0))
  PATH=$PATH:../../../util/bin/
  export LOG_FILE=/var/log/tinc-retiolum.log
  export TINC_LEGACY=true
  EXTERNAL_FOLDER=/var/www/euer.krebsco.de/graphs/retiolum
  INTERNAL_FOLDER=/var/www/euer/graphs/retiolum
  begin=`timer`
  export GRAPHITE_HOST="no-omo"
  (./anonytize.sh $EXTERNAL_FOLDER && echo "`date` anonytize done" >> /tmp/build_graph)&
  (./sanitize.sh $INTERNAL_FOLDER && echo "`date` sanitize done" >> /tmp/build_graph)&
#  wait
  graphitec "retiolum.graph.buildtime" "$(timer $begin)"   >> /tmp/build_graph
  echo "`date` end all graphs" >> /tmp/build_graph
)&