Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 322341
Collapse All | Expand All

(-)../../../munin-1.4.3.orig/plugins/node.d/amavis.in (-3 / +3 lines)
Lines 105-111 Link Here
105
105
106
if [ "$1" = "config" ]; then
106
if [ "$1" = "config" ]; then
107
	echo 'graph_title Amavis filter statistics'
107
	echo 'graph_title Amavis filter statistics'
108
	echo 'graph_vlabel #'
108
	echo 'graph_vlabel \#'
109
	echo 'graph_category antivirus'
109
	echo 'graph_category antivirus'
110
	echo 'virus.label virus'
110
	echo 'virus.label virus'
111
	echo 'virus.info Number of viruses caught in email'
111
	echo 'virus.info Number of viruses caught in email'
Lines 132-139 Link Here
132
	else
132
	else
133
	    $LOGTAIL ${AMAVIS_LOG} ${STATEFILE} | grep 'amavis\[.*\]:' > ${TEMP_FILE}
133
	    $LOGTAIL ${AMAVIS_LOG} ${STATEFILE} | grep 'amavis\[.*\]:' > ${TEMP_FILE}
134
	fi
134
	fi
135
	total=$(cat ${TEMP_FILE} | wc -l)
135
	total=$(grep 'Passed' ${TEMP_FILE} | wc -l)
136
	virus=$(grep INFECTED ${TEMP_FILE} | wc -l)
136
	virus=$(grep 'INFECTED' ${TEMP_FILE} | wc -l)
137
	spamm=$(grep 'Passed.*Hits: 1[0-9][.]' ${TEMP_FILE} | wc -l)
137
	spamm=$(grep 'Passed.*Hits: 1[0-9][.]' ${TEMP_FILE} | wc -l)
138
	spams=$(grep 'Passed.*Hits: [2-9][0-9][0-9]*[.]' ${TEMP_FILE} | wc -l)
138
	spams=$(grep 'Passed.*Hits: [2-9][0-9][0-9]*[.]' ${TEMP_FILE} | wc -l)
139
139

Return to bug 322341