#!/bin/csh
#
# script to analyze the days gated.log and put it in a readable
# format.  Then mail to appropriate parties.
#
set LOGDIR=/mu/fedor/work/monitor
set GATEDLOGS=/mu/fedor/gatelog
set BINDIR=/mu/fedor/bin
set notify=fedor
#
# Rotate the gated.log file
#
$BINDIR/rotatelogs
#
# Run awk scripts on the log file for the day.
# Remember, after rotation the day's log file is in gated.log.0
#
$BINDIR/gw-mon $GATEDLOGS/gated.log.0
#
# Mail the appropriate parties the information
#
/usr/ucb/Mail -s "Gated Log Routing Summary" $notify < $LOGDIR/gw-mon.log

unset LOGDIR
unset GATEDLOGS
unset BINDIR
unset notify

