Koozali.org: home of the SME Server

does my howto work as intended

trenskow

does my howto work as intended
« on: September 03, 2004, 12:49:22 AM »
Hi there.
I wanted to monitor my mail stats with awstats, and i couldnt find anything for is, sp i set out to find out myself, and in the process ended up making this howto.

Could someone try to follow it, to see if it works as intended.

http://www.trenskow.dk/sme/awstats_mail.html

mbachmann

does my howto work as intended
« Reply #1 on: September 03, 2004, 10:31:22 AM »
Nice, although i did not follow it. There is an email monitoring contrib called isoqlog, search saco-mitel-isoqlog-0.1-09.noarch.rpm.

Offline Knuddi

  • *
  • 540
  • +0/-0
    • http://www.scanmailx.com
does my howto work as intended
« Reply #2 on: September 03, 2004, 10:33:02 AM »
Hi Rasmus,

Seem to work fine. I have a one little correction though:

LevelForBrowsersDetection=0=0 (properly only one Zero)

I think that I will make this a part of my script sometime in the future :-)

Rgds,
Jesper Knudsen

Offline Knuddi

  • *
  • 540
  • +0/-0
    • http://www.scanmailx.com
does my howto work as intended
« Reply #3 on: September 03, 2004, 10:41:45 AM »
Another little one:

DirCgi="/awstats/cgi-bin"
DirIcons="/awstats/icon"

/jesper

trenskow

does my howto work as intended
« Reply #4 on: September 03, 2004, 11:20:30 AM »
thanks for the feeback  :-)
i will make the corrections when i come home.

i have found something myself, i get this error from Cron Deamon

/etc/cron.hourly/awstats:

Update for config "./awstats.mail.trenskow.dk.conf"
With data in log file "tai64nlocal < /var/log/qmail/current | /home/e-smith/files/ibays/awstats/cgi-bin/maillogconvert.pl standard |"...
sh: tai64nlocal: command not found

it doesnt recognize tai64nlocal from cron, but if i run the update manually, it works fine.
Someone know why that is?

Offline Knuddi

  • *
  • 540
  • +0/-0
    • http://www.scanmailx.com
does my howto work as intended
« Reply #5 on: September 03, 2004, 11:30:00 AM »
In cron you need a complete path for all items.

The .conf file needs this:

LogFile="/usr/local/bin/tai64nlocal < /var/log/qmail/current | /home/e-smith/files/ibays/awstats/cgi-bin/maillogconvert.pl standard |"

trenskow

does my howto work as intended
« Reply #6 on: September 03, 2004, 08:35:40 PM »
all the changes written here, have been made.

I will add it to the how-to tomorow if there are found no more faults

trenskow

does my howto work as intended
« Reply #7 on: September 03, 2004, 08:39:12 PM »
Quote from: "Knuddi"
Hi Rasmus,

I think that I will make this a part of my script sometime in the future :-)

Rgds,
Jesper Knudsen


You are very welcome.  8-)

trenskow

does my howto work as intended
« Reply #8 on: September 04, 2004, 11:07:40 PM »
hmm... cannot add the howto, whenever i try, i get this error here

Contribs.org Error

Error Code: 0013


ERROR: Could not query the database.
Error:

cosy

Email Web statistics
« Reply #9 on: October 05, 2004, 01:52:04 PM »
Hi,

  can you make a how to's for  email the web site statistics to each customer

trenskow

Re: Email Web statistics
« Reply #10 on: October 06, 2004, 01:21:35 AM »
Quote from: "cosy"
Hi,

  can you make a how to's for  email the web site statistics to each customer


Do you mean multiple domains?
ie www.mydomain.com, www.mydomain1.org, www.whatever.ru?

Or do you mean, that you want an email sent to the customer, with the stats of the website?

cosy

does my howto work as intended
« Reply #11 on: October 07, 2004, 06:46:23 AM »
Hi ,

 I already got 5 virtual domain so i need to email staticstics to customer. thanks.

cosy

can you help pls
« Reply #12 on: October 29, 2004, 08:41:12 AM »
Or do you mean, that you want an email sent to the customer, with the stats of the website?

Yes i need to email stats.

Offline arnoldob

  • *
  • 183
  • +0/-0
Re: does my howto work as intended
« Reply #13 on: January 28, 2005, 11:29:37 PM »
Quote from: "trenskow"
Hi there.
I wanted to monitor my mail stats with awstats, and i couldnt find anything for is, sp i set out to find out myself, and in the process ended up making this howto.

Could someone try to follow it, to see if it works as intended.

http://www.trenskow.dk/sme/awstats_mail.html


When I followed the howto I got an hourly cron job e-mail in my admin account. I fixed this by making a change to:

/etc/cron.hourly/awstats

Code: [Select]
#!/bin/bash
cd /home/e-smith/files/ibays/awstats/cgi-bin
perl awstats.pl -config=mail.yourdomain.com -update


I changed it to this:
Code: [Select]
#!/bin/bash
cd /home/e-smith/files/ibays/awstats/cgi-bin
perl awstats.pl -config=mail.yourdomain.com -update >/tmp/null


You might want to make that change to your how-to webpage. I got tired of deleting 24 cron job e-mails everyday :)
Thank you for your work!
Tampa, FL USA

Mael

does my howto work as intended
« Reply #14 on: February 10, 2005, 01:08:52 PM »
Hi All,

I've played with Awstats for mail logging on my side as well and I was not so happy with logging just from /var/log/qmail/current.

The problem I saw was that Awstats is updated every hour from current.
And multilog rotates current based on size and not time.

So each time current is rotated, you will loose all the information logged in current between the last Awstats update and the rotation from multilog.

I've solved this in /etc/cron.hourly/awstats,
I've added a line to check for any file in /var/log/qmail
whose name is starting with @ and not older than 60 minutes.
If such file(s) exists I process it(them) with maillogconvert.pl like for current and then I process current.

Hope this helps

Mael