LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-21-2004, 03:39 AM   #1
ziggie216
Member
 
Registered: Oct 2003
Posts: 176

Rep: Reputation: 30
awstats w/ qmail?


has anyone tried to use awstats for qmail w/ vpopmail before? if so can you show me your example of the conf file. qmail got three log folder in /var/log/qmail which are qmail-pop3d qmail-send qmail-smtpd and i'm not sure how to get it configure right with awstats
 
Old 06-27-2004, 01:37 PM   #2
mcleodnine
Senior Member
 
Registered: May 2001
Location: Left Coast - Canada
Distribution: s l a c k w a r e
Posts: 2,731

Rep: Reputation: 45
There's a listing for this in the awstats FAQ, but it doesn't work with the exaples provided when using the timestamp method that is installed with most qmail HowTo's.

Make the changes as listed in the FAQ, but replace the Logfile= section with a line like this
Code:
LogFile="cat /var/log/qmail/current | tai64nlocal | /usr/local/awstats/tools/maillogconvert.pl vadmin |"
This works for the most part, but I'm still wrestling with getting the virtual users' information parsed properly.
 
Old 07-11-2004, 03:45 AM   #3
ziggie216
Member
 
Registered: Oct 2003
Posts: 176

Original Poster
Rep: Reputation: 30
only problem I'm having is that the log are in three seperate folder
/var/log/qmail/qmail-pop3d
/var/log/qmail/qmail-send
/var/log/qmail/qmail-smtp

any suggestion on what I should do?
 
Old 07-11-2004, 03:36 PM   #4
mcleodnine
Senior Member
 
Registered: May 2001
Location: Left Coast - Canada
Distribution: s l a c k w a r e
Posts: 2,731

Rep: Reputation: 45
You are probably going to want to see the data in /var/log/qmail/current
 
Old 07-13-2004, 01:03 PM   #5
thelighteternal
LQ Newbie
 
Registered: Jul 2004
Posts: 3

Rep: Reputation: 0
I also have a similar problem -- and I do not have a /var/log/qmail/current file -- I do have:

/var/log/qmail/qmail-send/current
/var/log/qmail/qmail-smtpd/current
/var/log/qmail/qmail-pop3d/current

But they are not a combined log file...

Any suggestions?
 
Old 07-13-2004, 03:07 PM   #6
thelighteternal
LQ Newbie
 
Registered: Jul 2004
Posts: 3

Rep: Reputation: 0
Quote:
Originally posted by mcleodnine
There's a listing for this in the awstats FAQ, but it doesn't work with the exaples provided when using the timestamp method that is installed with most qmail HowTo's.

Make the changes as listed in the FAQ, but replace the Logfile= section with a line like this
Code:
LogFile="cat /var/log/qmail/current | tai64nlocal | /usr/local/awstats/tools/maillogconvert.pl vadmin |"
This works for the most part, but I'm still wrestling with getting the virtual users' information parsed properly.

After some working around with it, the code segment provided above does work for me, but ONLY on the qmail-send/current log -- I'm not entirely certain I'm getting all the information I want out of it, but that's what I've got for now.

so in summary:

Code:
LogFile="cat /var/log/qmail/qmail-send/current | tai64nlocal | /usr/local/awstats/tools/maillogconvert.pl vadmin |"
works.

If anyone can get any of the other log files working, or has information that points to the fact that I wouldn't need the other logs (I'm not a qmail pro :]) then that information would be greatly appreciated.
 
Old 07-15-2004, 03:00 PM   #7
ziggie216
Member
 
Registered: Oct 2003
Posts: 176

Original Poster
Rep: Reputation: 30
ok I got it! well kinda.. but someone need to improve my method...

you'll need to run something like this before the log rotates for qmail logs

//remove previous current log
rm -f /var/log/qmail/current

//combine logs
more /var/log/qmail/qmail-pop3d >> /var/log/qmail/current
more /var/log/qmail/qmail-send >> /var/log/qmail/current
more /var/log/qmail/qmail-smtpd >> /var/log/qmail/current

then you can run the awstats. it seems like it works on my system, but I have to figure out when to run this at the end of the day right before qmail clear out the current log.

actually I have no idea what controls the log rotation
 
Old 07-15-2004, 03:11 PM   #8
thelighteternal
LQ Newbie
 
Registered: Jul 2004
Posts: 3

Rep: Reputation: 0
I gave up and used Isoqlog and qmail mrtg following the advice of this page: http://sylvestre.ledru.info/howto/ho...l_vpopmail.php
 
Old 07-15-2004, 03:39 PM   #9
ziggie216
Member
 
Registered: Oct 2003
Posts: 176

Original Poster
Rep: Reputation: 30
I'll pm you if I figure this out. hopefully
 
Old 07-16-2004, 03:52 AM   #10
ziggie216
Member
 
Registered: Oct 2003
Posts: 176

Original Poster
Rep: Reputation: 30
ok this is what I put in my /etc/cron.hourly/awstats

rm -f /var/log/qmail/current
cat /var/log/qmail/qmail-pop3d/current >> /var/log/qmail/current
cat /var/log/qmail/qmail-send/current >> /var/log/qmail/current
cat /var/log/qmail/qmail-smtpd/current >> /var/log/qmail/current
/home/www/cgi-bin/awstats/awstats.pl -config=mail.domain.com -update


I'm not sure how correct the information will be but it seems like it's working so far.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem with awstats Tamara Linux - General 2 11-04-2005 11:41 AM
awstats comprookie2000 Linux - Security 2 05-01-2005 05:55 PM
Awstats with sendmail help gquiring Linux - Software 1 03-01-2005 03:18 PM
qmail +qmail-qfilter + qmail-scanner-queue+qmail-user-masq.pl problem countcobolt Linux - Networking 0 07-08-2004 11:29 AM
AWstats WiWa Linux - Software 11 08-17-2003 11:06 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:34 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration