mirror of
https://github.com/zeek/zeek.git
synced 2025-10-11 19:18:19 +00:00
Initial import of svn+ssh:://svn.icir.org/bro/trunk/bro as of r7088
This commit is contained in:
commit
61757ac78b
1383 changed files with 380824 additions and 0 deletions
29
scripts/frontend-mail-reports.sh
Normal file
29
scripts/frontend-mail-reports.sh
Normal file
|
@ -0,0 +1,29 @@
|
|||
#!/bin/sh
|
||||
#
|
||||
# script to check if rsync of logs has finished, and runs site-report.pl
|
||||
#
|
||||
# usage: frontend-mail-report.sh BroConfigFile
|
||||
#
|
||||
|
||||
# where are we located
|
||||
base=`dirname $0`
|
||||
#set up the environment
|
||||
if [ $1 ] ; then
|
||||
. $1
|
||||
else
|
||||
. $base/../etc/bro.cfg
|
||||
fi
|
||||
|
||||
echo " "
|
||||
echo "`date`: checking if reports are ready to mail:" $BROHOME/logs/MailReports.$BRO_HOSTNAME
|
||||
|
||||
# only run if file $BROHOME/logs/MailReports.$BRO_HOSTNAME
|
||||
if [ -e $BROHOME/logs/MailReports.$BRO_HOSTNAME ] ; then
|
||||
echo "Reports ready: Running mail reports script"
|
||||
$BROHOME/scripts/mail_reports.sh $1
|
||||
rm $BROHOME/logs/MailReports.$BRO_HOSTNAME
|
||||
else
|
||||
echo "Reports not ready"
|
||||
fi
|
||||
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue