Sisyphus repositório
Última atualização: 1 outubro 2023 | SRPMs: 18631 | Visitas: 37748189
en ru br
ALT Linux repositórios
S:0.103.8-alt1
5.0: 0.95.2-alt0.M50.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

Outros repositórios
Upstream:0.93rc1

Group :: Ferramentas de Arquivo
RPM: clamav

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs e 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
 
projeto & código: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
mantenedor atual: Michael Shigorin
mantenedor da tradução: Fernando Martini aka fmartini © 2009