mirror of
https://github.com/munin-monitoring/contrib.git
synced 2025-07-21 18:41:03 +00:00
Category Tree: reduce number of categories
This commit is contained in:
parent
84c28707eb
commit
c4b2d9a8e3
22 changed files with 377 additions and 377 deletions
31
plugins/clamav/clamav
Executable file
31
plugins/clamav/clamav
Executable 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 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
|
Loading…
Add table
Add a link
Reference in a new issue