1
0
Fork 0
mirror of https://github.com/munin-monitoring/contrib.git synced 2025-07-24 09:57:09 +00:00
Munin-Contrib/plugins/clamav/clamav
Lars Kruse 17f784270a Whitespace cleanup
* remove trailing whitespace
* remove empty lines at the end of files
2018-08-02 02:33:25 +02:00

31 lines
546 B
Bash
Executable file

#!/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 antivirus
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