Ticket #58 (closed task: fixed)

Opened 6 years ago

Last modified 7 months ago

Plugin to show the Types of Virii. Works with qmailscan and clamav

Reported by: david@cryptix.de Assigned to: nobody
Priority: high Milestone: Munin 1.4
Component: node Version: 1.2.2
Severity: trivial Keywords: None
Cc: nobody

Description

#!/bin/sh
#
#
# Plugin to show the Types of Virii. Works with qmailscan and clamav
#
#
# Contributed by David Obando (david@cryptix.de) - 03.12.2005
#
#


# define the logfiles. when you rotate them at any other time than 00:00 you have to define two logfiles:
LOG0=/var/spool/qmailscan/quarantine.log
LOG1=/var/spool/qmailscan/quarantine.log.1


if [ "$1" = "autoconf" ]; then
        echo yes
        exit 0
fi

if [ "$1" = "config" ]; then

        echo 'graph_title Virus types'
        echo 'graph_args --base 1000 -l 0 '
        echo 'graph_vlabel Daily Virus Types'
        echo 'graph_category Mail'
        grep "`date +%d\ %b\ %Y`" $LOG0 $LOG1 > /tmp/q$$
        egrep -v 'Disallowed  characters found in MIME headers|Disallowed breakage found in header name - potential virus|Disallowed MIME comment found in header name - potential virus' /tmp/q$$ > /tmp/q2$$
        sed 's/clamdscan.*$//' /tmp/q2$$ | sed 's/[ \t]*$//' > /tmp/q$$
        cut -f 5 /tmp/q$$ | sort | uniq -c | sort -r | sed 's/\.\|-/_/g' | while read i; do
                name=`echo $i | awk '{print $2}'`;
                echo "$name.label $name" ;
                echo "'$name.draw LINE2";
        done
        rm /tmp/q$$ /tmp/q2$$

        exit 0
fi

grep "`date +%d\ %b\ %Y`" $LOG0 $LOG1 > /tmp/q$$
egrep -v 'Disallowed  characters found in MIME headers|Disallowed breakage found in header name - potential virus|Disallowed MIME comment found in header name - potential virus' /tmp/q$$ > /tmp/q2$$
sed 's/clamdscan.*$//' /tmp/q2$$ | sed 's/[ \t]*$//' > /tmp/q$$

#awk '{ print $NF }' /tmp/q$$ | sort | uniq -c | sed 's/\./_/g' | while read i; do
cut -f 5 /tmp/q$$ | sort | uniq -c | sort -r | sed 's/\.\|-/_/g' | while read i; do
        name=`echo $i | awk '{print $2}'`;
        echo -n "$name.value " ;
        echo $i | awk '{print $1}'
done

rm /tmp/q$$ /tmp/q2$$

Change History

08/30/06 01:36:25 changed by janl

  • status changed from new to closed.
  • resolution set to fixed.

Comitted. in r1057

10/27/11 11:51:06 changed by ekrodojux1984

Anybody who loves movies is likely to love movie downloads, too. The actual fact is that this trend is changing into a big one and it is nice for individuals who need to create giant collections with out having to dole out prime dollar or premium home house to do so. How to download from vimeo are actually obtainable legally from all kinds of big film studios and even tv networks, as well. A video collection created digitally has a number of benefits over common disk purchases, too. The most important perks of video downloads contain the storage points and pricing. But, why? Video downloads are generally just a few dollars or extra lower than a daily DVD buy as a result of there is no such thing as a packaging issues to contend with. Plus, there's the straightforward truth delivery isn't a problem either. Since the firms that sell downloads save on shipping and the movie studios save on packaging, they will pass on a few of these savings directly to buyers. In regard to storage, it is a easy reality of space. It is a complete lot simpler to retailer motion pictures on a pc drive or a backup drive than it's to carry one hundred movies in a room. There is no need for shelf after shelf or tons of DVD towers when a group is created via video download. Administration of flicks and television downloads is usually a entire lot simpler, too. It is pretty easy to create folders on the computer to retailer films by style and it is a complete lot faster, too. Video downloads have gotten the favorites of many for a motive past storage or pricing. This purpose is variety. The actual fact is the sorts of downloads out there might be actually thoughts boggling. Let's take a look at what sorts of video downloads might be found legally: Hit motion pictures Nearly each new movie that hits the theaters will end up in a legal download format shortly after release. This implies there is no must run to the video retailer, or worse, pay prime dollar at a theater to see a new release. Television programs Vimeo tube downloads Because the film studios bounce on the bandwagon, so too are the television studios. Hit exhibits from all many years can be found by the season or by the episode via video download.Classics As the film obtain enterprise turns into more fashionable, many studios are video by their catalogues and offering downloads of their older movies. From the classics of the Twenties to holiday favorites of the Nineteen Eighties, they'll all be found through video download. And, if a title can't be found proper now, it is doubtless it will likely be added soon as every main film studio falls into place offering downloads through a number of completely different sites. Video downloads present their users with an on demand facet, value savings and storage concern discount that regular DVD buys cannot. As this new format turns into an increasing number of accepted, it is becoming the method of choice for purchasing and watching movies. Original works There are tons of places to get video downloads from beginner or little recognized creators. These videos might not have the financial backing of a number of the major movies in history, but that doesn't imply there is not some good leisure out there. Indie works are getting an entire new audience thanks to video downloads and the Internet.