(源自網絡)监控Email(Qmail) Software qsstats 的安裝

install rrdtool
1)tar -zxvf rrdtool-1.0.49.tar.gz
2)cd rrdtool-1.0.49
3)./configure
4)make
5)make install
cp three files to /usr/lib/perl5/5.8.3
three files: (RRDs.so,RRDs.pm,RRDs.bs)
6)cp -rp /usr/local/rrdtool-1.0.49/lib/perl/auto/RRDs/RRDs.so /usr/lib/perl5/5.8.3
7)cp -rp /usr/local/rrdtool-1.0.49/lib/perl/RRDs.pm /usr/lib/perl5/5.8.3
8)cp -rp /usr/local/rrdtool-1.0.49/lib/perl/auto/RRDs/RRDs.bs /usr/lib/perl5/5.8.3
9)cd ..

install qsstats
1)tar -zxvf qsstat-0.1.3_RC1.tar.gz
2)cd qsstat-0.1.3_RC1
3)./install.sh
4)cd ..
5)vi /var/qsstats/qsstat.conf
change logfile=/var/log/mail.log to logfile=/var/log/maillog
change message_string=processing_message to message_string=checking_message
6)/var/qsstats/qsstat
7)vi /etc/rc.d/rc.local
/var/qsstats/qsstat

apache setting
1)vi /etc/httpd/conf/httpd.conf
add a line
Alias /qsstats/ "/var/www/qsstats/"
2)/etc/init.d/httpd restart

http://your ipaddress/qsstats/