I'm trying to get cacti to graph how much aduse my email server is getting.
I've written a simple awk script to process my mail log and generate some stats.
Code: Select all
# awk -f courier_stats.awk /var/log/mail/current
normal:5 list:15 maybespam:0 droppedspam:6 relay:0 unknownuser:1 invaliddom:0 cmderr:0
Code: Select all
01/19/2006 12:50:01 AM - CMDPHP: Poller[0] Host[3] DS[32] CMD: awk -f /var/www/intranet/root/cacti/scripts/courier_stats.awk /var/log/mail/current, output: U
01/19/2006 12:50:01 AM - CMDPHP: Poller[0] Host[3] DS[32] WARNING: Result from CMD not valid. Partial Result: