This file is indexed.

/usr/share/munin/plugins/qmailscan is in munin-plugins-extra 2.0.6-4+deb7u2.

This file is owned by root:root, with mode 0o755.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
#!/bin/sh
# -*- sh -*-

: << =cut

=head1 NAME

qmailscan - Plugin to graph output from qmailscan and clamav

=head1 CONFIGURATION

No configuration necessary.

=head1 AUTHOR

Contributed by David Obando (david@cryptix.de) - 03.12.2005

=head1 LICENSE

GPLv2

=cut

# 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 | \
		grep -v 'Disallowed  characters found in MIME headers|Disallowed breakage found in header name - potential virus|Disallowed MIME comment found in header name - potential virus' | \
	       sed 's/clamdscan.*$//' | sed 's/[ \t]*$//' | \
	       cut -f 5 | 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

        exit 0
fi

grep "`date +%d\ %b\ %Y`" $LOG0 $LOG1 | \
	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' | \
	sed 's/clamdscan.*$//' | sed 's/[ \t]*$//' | \
	cut -f 5 | sort | uniq -c | sort -r | sed 's/\.\|-/_/g' | while read i; do
		name=`echo $i | awk '{print $2}'`;
		printf "%s.value " $name;
		echo $i | awk '{print $1}'
	done