I'm trying to get the following plugin (see code) for Munin to work with SpamaAssassin.
Munin is showing the graph, but it's always at 0. (even when SpamAssasin is marking emails with ***SPAM*** )
I think the problem is the grep "spamd" /var/log/syslog >> /tmp/$$
I'm using this plugin on a Debian Sarge 3.1 server (the perfect setup) with ISPconfig on it.
Anyone here who might have a fix for this?
# Plugin to count the SpamAssassin troughput
# Contributed by David Obando - 16.11.2005
# Magic markers - optional - used by installation scripts and
if [ "$1" = "autoconf" ]; then
if [ "$1" = "config" ]; then
echo 'graph_title SpamAssassin amount'
echo 'graph_args --base 1000 -l 0 '
echo 'graph_vlabel SpamAssassin amount'
echo 'graph_order spam ham'
echo 'graph_category Mail'
echo 'ham.label ham'
echo 'ham.type DERIVE'
echo 'ham.min 0'
echo 'ham.draw LINE2'
echo 'spam.label spam'
echo 'spam.type DERIVE'
echo 'spam.min 0'
echo 'spam.draw AREA'
grep "spamd" /var/log/syslog >> /tmp/$$
echo -n "spam.value " && grep "identified spam" /tmp/$$ | wc -l
echo -n "ham.value " && grep "clean message" /tmp/$$ | wc -l