sipp-bb 385 Bytes
Newer Older
Olav Kvittem's avatar
Olav Kvittem committed
1 2 3 4
#!/bin/bash
# make qstream statistics from sipp-test logs
# - listen to updates on the task.log file

5 6 7 8 9 10
if test .$1 = .-cf ; then
  source  $2
  shift; shift
else
  source /etc/sipshaman/sipshaman.cf
fi
Olav Kvittem's avatar
Olav Kvittem committed
11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26

y=`date +%Y`
m=`date +%m`
d=`date +%d`
h=`date +%H`

ydir=$DATA/$y
mdir=$ydir/$m
ddir=$mdir/$d
hdir=$ddir/$h

cd $hdir

 $BIN/qstream-sipp-check $* -bb $BB_HOST -f -die 59 task.log