Projet

Général

Profil

Révision 23b3410b

ID23b3410b200d7e3d5719febd7b3a6bdb5a921d59
Parent ff6cea90
Enfant c3e4adb1

Ajouté par Lapo Luchini il y a presque 14 ans

Initial version

Voir les différences:

plugins/other/clamav
1
#!/bin/sh
2
#%# family=manual
3
#%# capabilities=autoconf
4
log=/var/log/clamav/clamd.log
5

  
6
if [ "$1" = "autoconf" ]; then
7
        if [ -r $log ]; then 
8
	        echo "yes"
9
        else
10
        	echo "no (cannot read $log)"
11
        fi
12
        exit 0
13
fi
14

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

  
17
	cat <<EOT
18
graph_title ClamAV stats
19
graph_args --base 1000 -l 0 
20
graph_vlabel virus/day
21
graph_category Mail
22
virus.label virus
23
virus.type DERIVE
24
virus.min 0
25
virus.draw AREA
26
virus.cdef virus,86400,*
27
EOT
28
        exit 0
29
fi
30

  
31
echo -n "virus.value " && fgrep -c FOUND $log

Formats disponibles : Unified diff