root / plugins / mail / clamav @ e5ce7492
Historique | Voir | Annoter | Télécharger (543 octets)
| 1 | 23b3410b | Lapo Luchini | #!/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 |
