Re: qmailanalog for dummies
Hello, I run this script from cron one time per day. I've copied from qmail list time ago and it's slighty modified from the original one made by Jay Soffian. BTW thanks Jay. #!/bin/sh PATH="/usr/local/bin/qmailanalog:/usr/local/bin:$PATH" export PATH umask 077 TMP_FILE="/var/log/qmail/qmailanalog.tmp" EXT_FILE="/var/log/qmail/qmailanalog.ext" OUT_FILE="/var/log/qmail/qmailanalog.out" LOG_FILE="/var/log/qmail/*" rm -f $TMP_FILE $OUT_FILE cat MAIL_HEADER $OUT_FILE From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: `hostname` qmail statistics MAIL_HEADER touch $EXT_FILE cat $EXT_FILE $LOG_FILE | matchup $TMP_FILE 5$EXT_FILE.new mv $EXT_FILE.new $EXT_FILE zoverall $TMP_FILE $OUT_FILE echo "--" $OUT_FILE zfailures$TMP_FILE $OUT_FILE echo "--" $OUT_FILE zdeferrals$TMP_FILE $OUT_FILE /var/qmail/bin/qmail-inject $OUT_FILE rm -f $TMP_FILE $OUT_FILE Paco Gracia Director Técnico Amira Sistemas
Re: qmailanalog for dummies
"Tony Campisi" [EMAIL PROTECTED] wrote: Our qmail server has been up for 2 days and everything is working fine. I would like to use qmailanalog to analyze activity. I have read through the archive but need more answers. I installed qmailanalog-0.70 qmailanalog requires timestamps in a particular format that's no longer supported by cyclog, and has never been supported by syslog. If you're using cyclog, you'll need to find a utility on www.qmail.org to convert them to the old format for qmailanalog. -Dave
qmailanalog for dummies
Our qmail server has been up for 2 days and everything is working fine. I would like to use qmailanalog to analyze activity. I have read through the archive but need more answers. I installed qmailanalog-0.70 :From an archived message: awk '{$1="";$2="";$3="";$4="";$5="";print}' /var/log/maillog \ | matchup \ processed_log My 'processed_log' is an empty file I created - /var/log/qmail/analog I want to analyze my /var/log/qmail/current file. awk '{$1="";$2="";$3="";$4="";$5="";print}' /var/log/qmail/current | /usr/local/qmailanalog/bin/matchup /var/log/qmail/analog The above is all on one line After running the above, my 'analog' file has data in it like, ? 3317 from qmail-return-51885-tony.campisi=cardinalservices.com@list ? 256010 to local [EMAIL PROTECTED] ? ? 1908 from qmail-return-51884-tony.campisi=cardinalservices.com@list ? 256010 to local [EMAIL PROTECTED] ? 0/40 ? ? 0/40 When I try /usr/local/qmailanalog/bin/zoverall /var/log/qmail/analog I get One line per recipient. Information on each line: * sbytes is the number of bytes successfully delivered to this recipient. * mess is the number of messages sent to this recipient (success plus failu re). * tries is the number of delivery attempts (success, failure, deferral). * xdelay is the total xdelay incurred by this recipient. sbytes mess tries xdelay recipient There is no information under these headers. Can someone please tell me what I'm doing wrong. TIA, Tony Campisi