2
0
mirror of https://github.com/munin-monitoring/contrib.git synced 2018-11-08 00:59:34 +01:00

Initial version

This commit is contained in:
Lapo Luchini 2007-12-15 12:23:07 +01:00 committed by Steve Schnepp
parent ff6cea900d
commit 23b3410b20

31
plugins/other/clamav Executable file
View File

@ -0,0 +1,31 @@
#!/bin/sh
#%# family=manual
#%# capabilities=autoconf
log=/var/log/clamav/clamd.log
if [ "$1" = "autoconf" ]; then
if [ -r $log ]; then
echo "yes"
else
echo "no (cannot read $log)"
fi
exit 0
fi
if [ "$1" = "config" ]; then
cat <<EOT
graph_title ClamAV stats
graph_args --base 1000 -l 0
graph_vlabel virus/day
graph_category Mail
virus.label virus
virus.type DERIVE
virus.min 0
virus.draw AREA
virus.cdef virus,86400,*
EOT
exit 0
fi
echo -n "virus.value " && fgrep -c FOUND $log