#!/bin/bash # # virus-stats -- print counts of clean and virus infested messages # from ClamAntivirus and Amavis-ng. echo -e "virus:" `grep -c "Quarantining" /var/log/amavis-ng/amavis-ng.log` echo -e "clean:" `grep -c "AMAVIS::MTA::Qmail: Accepting message" /var/log/amavis-ng/amavis-ng.log` echo -e "processed:" `grep -c "Starting AMaViS" /var/log/amavis-ng/amavis-ng.log`