Step 1
[root@localhost ~]# wget http://linux.alanstudio.hk/isoqlog-2.2.1.tar.gz
Download the latest tar file from official website or my site
Official website:
http://www.enderunix.org/isoqlog/
Step 2
[root@localhost ~]# tar -zxvf isoqlog-2.2.1.tar.gz
[root@localhost ~]# tar -zxvf isoqlog-2.2.1.tar.gz
[root@localhost ~]# cd isoqlog-2.2.1
[root@localhost ~]# ./configure
[root@localhost ~]# make
[root@localhost ~]# make install
[root@localhost ~]# make clean
[root@localhost ~]# mkdir /var/www/html/isoqlog
[root@localhost ~]# cp -pr /usr/local/share/isoqlog/htmltemp/images /usr/local/share/isoqlog/htmltemp/library /var/www/html/isoqlog
[root@localhost ~]# cp -p /usr/local/etc/isoqlog.conf-dist /usr/local/etc/isoqlog.conf
[root@localhost ~]# cp -p /usr/local/etc/isoqlog.domains-dist /usr/local/etc/isoqlog.domains
Unzip the tar file, compile install it, then copy the necessary file or images.
Step 3
[root@localhost ~]# vi /usr/local/etc/isoqlog.conf
#isoqlog Configuration file
logtype = "sendmail" # log type qmai-multilog, qmail-syslog, sendmail, postfix
logstore = "/var/log/maillog" #
domainsfile = "/usr/local/etc/isoqlog.domains" #
outputdir = "/var/www/html/isoqlog" # html output directory
htmldir = "/usr/local/share/isoqlog/htmltemp"
langfile = "/usr/local/share/isoqlog/lang/english"
hostname = "xxx.com"
maxsender = 100
maxreceiver = 100
maxtotal = 100
maxbyte = 100
Edit the isoqlog config file, if your MTA is qmail, try:
logtype = "qmail-multilog"
logstore = "/var/log/qmail"
or
logstore = "/var/log/qmail/send"
PS: If you're using postfix, sendmail or qmail-syslog, it is strongly suggested you rotate
your log files to get the data healthier.
[root@localhost ~]# vi /usr/local/etc/isoqlog.domains
xxx.com
yyy.com
Name the multidomain.
Step 4
[root@localhost ~]# /usr/local/bin/isoqlog
Run the isoqlog program to generate the html in outputdir '/var/www/html/isoqlog'
View in the website to test it is work or not:
http://localhost/isoqlog
Step 5
[root@localhost ~]# crontab -e
## this will run isoqlog every hour at 58. minute
58 * * * * /usr/local/bin/isoqlog 1>/dev/null 2>/dev/null
Add cron job to run 'isoqlog' every hour at 58 minute
OR
58 23 * * * /usr/local/bin/isoqlog 1>/dev/null 2>/dev/null
You can run isoqlog more than once in a day, though you must run at least once before 00:00
(i.e. 23:58) to get current day's statistics.
P.S.
You can view more detial guide of installation from 'INSTALL' file in your tar.
Server is hosted by Alanstudio
Linux Operating System
Recommend screen resolution 1024 x 768 / IE / FireFox
Alan Studio © 2007 by Alan Cheung Hin Lun. All rights reserved.
|