20, Extmail configuration Mailgraph_ext, using Extman graphics log
Required Packages Time::hires, File::tail and RRDtool, where the first two packages you can go http://search.cpan.org path: File Name Systems Locking and operating System interfaces Search and download to obtain, after a package you can download to Http://oss.oetiker.ch/rrdtool/pub/?M=D; Note that the installation sequence cannot be changed.
1. Installation Time::hires
[Root@mail ~]# tar-zxvf time-hires-1.9725.tar.gz-c/usr/local/src/
[Root@mail ~]# cd/usr/local/src/
[Root@mail src]# CD time-hires-1.9725/
[Root@mail time-hires-1.9725]# Perl makefile.pl
[Root@mail time-hires-1.9725]# make
[Root@mail time-hires-1.9725]# make Test
[Root@mail time-hires-1.9725]# make install
2. Installation File::tail
[Root@mail ~]# tar-zxvf file-tail-0.99.3.tar.gz-c/usr/local/src/
[Root@mail ~]# cd/usr/local/src/
[Root@mail src]# CD file-tail-0.99.3/
[Root@mail file-tail-0.99.3]# Perl makefile.pl
[Root@mail file-tail-0.99.3]# make
[Root@mail file-tail-0.99.3]# make Test
[Root@mail file-tail-0.99.3]# make install
3. Installation rrdtool-1.4.7
[Root@mail ~]# tar-zxvf rrdtool-1.4.7.tar.gz-c/usr/local/src/
[Root@mail ~]# cd/usr/local/src/
[Root@mail src]# CD rrdtool-1.4.7/
[Root@mail rrdtool-1.4.7]#./configure--prefix=/usr/local/rrdtool
[Root@mail rrdtool-1.4.7]# yum-y install zlib libpng freetype LIBART_LGPL libart_lgpl-devel libxml*-pango*
[Root@mail rrdtool-1.4.7]# make
[Root@mail rrdtool-1.4.7]# make install
Create the necessary symbolic links (Extman will find the relevant library files under these paths)
[Root@mail rrdtool-1.4.7]# ln-sv/usr/local/rrdtool/lib/perl/5.8.8/i386-linux-thread-multi/auto/rrds/rrds.so/usr/ lib/perl5/5.8.8/i386-linux-thread-multi/
Create symbolic link '/usr/lib/perl5/5.8.8/i386-linux-thread-multi/rrds.so ' to '/usr/local/rrdtool/lib/perl/5.8.8/ I386-linux-thread-multi/auto/rrds/rrds.so '
[Root@mail rrdtool-1.4.7]# ln-sv/usr/local/rrdtool/lib/perl/5.8.8/rrdp.pm/usr/lib/perl5/5.8.5
Create symbolic link '/usr/lib/perl5/5.8.5 ' to '/usr/local/rrdtool/lib/perl/5.8.8/rrdp.pm '
[Root@mail rrdtool-1.4.7]# ln-sv/usr/local/rrdtool/lib/perl/5.8.8/i386-linux-thread-multi/rrds.pm/usr/lib/perl5/ 5.8.8
Create symbolic link '/usr/lib/perl5/5.8.8/rrds.pm ' to '/usr/local/rrdtool/lib/perl/5.8.8/i386-linux-thread-multi/ RRDS.PM '
Copy Mailgraph_ext to/usr/local, and start
[Root@mail rrdtool-1.4.7]# cp-r/var/www/extsuite/extman/addon/mailgraph_ext/usr/local
[Root@mail rrdtool-1.4.7]#/usr/local/mailgraph_ext/mailgraph-init start
Starting Mail Statistics Grapher:mailgraph_ext
Starting Queue Statistics Grapher:qmonitor
Start Cmdserver (display system information in the background)
[Root@mail rrdtool-1.4.7]#/var/www/extsuite/extman/daemon/cmdserver--daemon
Loaded OK
Add to auto start queue
[Root@mail ~]# echo "/usr/local/mailgraph_ext/mailgraph-init start" >> /etc/rc.d/rc.local
-bash:syntax error near unexpected token ' & '
[Root@mail ~]# echo "/var/www/extsuite/extman/daemon/cmdserver-v-D" >> /etc/rc.d/rc.local
-bash:syntax error near unexpected token ' & '