Репозитории ALT
S: | 0.103.8-alt1 |
5.1: | 0.98.1-alt0.M51.1 |
4.1: | 0.97.8-alt0.M41.1 |
+updates: | 0.94.1-alt0.M41.1 |
4.0: | 0.97.8-alt0.M40.1 |
+updates: | 0.91.2-alt1 |
3.0: | 0.86.2-alt1 |
+updates: | 0.91.1-alt0.M30.1 |
+backports: | 0.93.3-alt0.M30.1 |
Другие репозитории
Upstream: | 0.93rc1 |
Группа :: Работа с файлами
Пакет: clamav
Главная Изменения Спек Патчи Исходники Загрузить Gear Bugs and FR Repocop
#!/bin/sh
#
# Copyright (C) 2004 Sergey Y. Afonin <asy@kraft-s.ru>
# License: none
# You can use, redistribute and modify it without any limitations
#
# This script is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY.
#
# clamav-milter specific (based on sendmail's log)
# cron string:
# 00 5 * * * root /usr/local/bin/virusstat-perIP
#
# v 0.1 2004-10-02
# initial release
#
PATH="/root/bin:/sbin:/usr/sbin:/usr/local/sbin:/bin:/usr/bin:/usr/local/bin"
export PATH
CAT='bzcat'
LOG='/var/log/mail/all.1.bz2'
SERVER='AV Server'
VIRADMINS='root@localhost,postmaster@localhost'
(echo Statistic by viruses per IP which was blocked yesterday: && echo &&\
$CAT $LOG |grep 'Intercepted virus from'|grep '\[.*\..*\]'|\
sed -e 's/^.*clamfi_eom:.*: \(.*\) .*\[\(.*\)\] .*/\1 \2/'|\
sort|uniq -c|sort -r &&\
echo && echo "Scanned by ClamAV Antivirus (http://www.clamav.net/)")|\
mail -s "Virus Statistic per IP on $SERVER" $VIRADMINS