In the interest of sharing courier log stuffs, here is an awk script I us in conjunction with cricket to monitor various aspects mail delivery. You should be able to use this script with MRTG or other monitoring tool pretty easy. If anyone wants the cricket config for this I would be happy to share that too. I am not an awk guru, so if there is something terribly wrong with this script please share.
#!/usr/bin/awk -f
/pop3d(-ssl)?: Connection/ {pop3d_connection++}
/pop3d(-ssl)?: LOGIN/ {pop3d_login++}
/pop3d(-ssl)?: LOGOUT/ {pop3d_logout++}/imapd(-ssl)?: Connection/ {imapd_connection++}
/imapd(-ssl)?: LOGIN/ {imapd_login++}
/imapd(-ssl)?: LOGOUT/ {imapd_logout++}/courieresmtpd: started/ {smtpd_started++}
/courieresmtpd: error/ {smtpd_error++}
/courieresmtpd: error.*: 513/ {smtpd_error_513++}
/courieresmtpd: error.*: 550/ {smtpd_error_550++}/courierd: newmsg/ {courierd_newmsg++}
/courierd: started.*module=local/ {courierd_local++}
/courierd: started.*module=esmtp/ {courierd_esmtp++}END {printf "%d\n%d\n%d\n%d\n%d\n%d\n%d\n%d\n%d\n%d\n%d\n%d\n%d\n",
courierd_newmsg, courierd_local, courierd_esmtp,
pop3d_connection, pop3d_login, pop3d_logout,
imapd_connection, imapd_login, imapd_logout,
smtpd_started, smtpd_error, smtpd_error_513, smtpd_error_550}-Jake
Mark Constable wrote:
This just got the thumbs up from our staff who need to keep an eye on mail flow. Might be useful to some others on this list.
-- Jacob S. Barrett Chief Technology Officer PogoZone LLC
email: [EMAIL PROTECTED]
web: www.pogozone.com
voice: 360-676-8772
fax: 360-733-3941
address: 114 W. Magnolia Street Suite 417
Bellingham, Washington 98225------------------------------------------------------- This SF.net email is sponsored by: The Definitive IT and Networking Event. Be There! NetWorld+Interop Las Vegas 2003 -- Register today! http://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en _______________________________________________ courier-users mailing list [EMAIL PROTECTED] Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users
