#!/bin/sh
#
# Collect daily statistics, reliability reports, etc.
# USER should be 'monitor'
NOCSTAT="/v/noc/stat"
cd $NOCSTAT
bin/daily_stat.pl | mailx -s 'monitor:daily' noc@relcom.EU.net
bin/stat_load.sh
bin/summ_to_month.pl -D `pwd` -T 31
cp /dev/null opreports/ITER/.www_browsable
find DBDATA/OLD -type f -mtime +30 -exec rm -f '{}' \;
# save 3 notify files
if [ -f notify.2 ]
then
    mv notify.2 notify.3
fi
if [ -f notify.1 ]
then
    mv notify.1 notify.2
fi
cp notify  notify.1
cp /dev/null notify
