RedHat 5.4+ Postfix +extmail implement a virtual user based mail system (v)

Source: Internet
Author: User
Tags mail rrdtool thread mail time linux

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 ' & '

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.