Jul 19 orbs block stats noose.gt.owl.de
Florian Lohoff
flo at rfc822.org
Tue Jul 20 14:50:32 CEST 1999
On Tue, Jul 20, 1999 at 10:46:09AM +0200, Jan-Benedict Glaw wrote:
> On Tue, Jul 20, 1999 at 10:42:16AM +0200, Florian Lohoff wrote:
> >
> > Soviel zu ORBS auf belgarath ...
>
> ...und das innerhalb einer guten halben Stunde... Übrigens läuft jetzt
> Postfix, der hat den anschließenden Check (-> Ich hab' belgarath nochmal
> testen lassen) gut bestanden;) Btw, womit erstellst Du die Liste da unten?
> Ich bin daran interessiert...
Shell script - Haengt hinten dran ...
Gleich auch an die liste fuer andere interessierte ...
Flo
--
Florian Lohoff flo at rfc822.org +49-5241-470566
Good, Fast, Cheap: Pick any two (you can't have all three). (RFC 1925)
-------------- next part --------------
#!/bin/sh
EMAILADR=flo at rfc822.org
TMP=/tmp/orbs.$$
EMAIL=/tmp/orbsmail.$$
DATE=`date --date="1 day ago" +"%b %-2d"`
rm -f $TMP $EMAIL
egrep "^$DATE" /var/log/mail.log | \
grep orbs.org >$TMP
NO=`wc -l $TMP | awk '{ print $1 }'`
echo "Number total mails rejected: $NO" >>$EMAIL
echo >>$EMAIL
echo " No Host" >>$EMAIL
echo "---------------------------------------------" >>$EMAIL
cat $TMP | \
awk '{ print $9 }' | \
sed -e 's/://' | \
sort | \
uniq -c | \
sort -rn >>$EMAIL
echo >>$EMAIL
echo "Single incidents:" >>$EMAIL
echo "---------------------------------------------" >>$EMAIL
cat $TMP | \
awk '{ print $1 " " $2 " " $3 "\t" $9 "\n\t" $17 "\n\t" $18 "\n"}' >>$EMAIL
cat $EMAIL |\
mailx -s "$DATE orbs block stats" $EMAILADR
rm -f $TMP $EMAIL
More information about the Linux
mailing list