Configuring Mailgraph_ext, using Extman's graphics log

Source: Internet
Author: User

Note: This blog content is based on ( on the lamp platform based on the postfix+mysql+dovecot+sasl+courier-authlib+extmail+ Extman Build an enterprise-class mail system http://luochen2015.blog.51cto.com/9772274/1761969) This blog is tested.

1, install the dependency package

# yum Install cairo-devel libxml2-devel pango-devel libpng-devel freetype-devel libart_lgpl-devel perl-File-Tail


2, install Time::hires

# Tar XF time-hires-1.9732.tar.gz

# CD time-hires-1.9732

# Perl makefile.pl

# make

# Make Test

# make Install


3, install rrdtool-1.4.0.tar.gz (Http://oss.oetiker.ch/rrdtool/pub/?M=D)

# Tar XF rrdtool-1.4.0.tar.gz

# CD rrdtool-1.4.0

#./configure--prefix=/usr/local/rrdtool

# make

# make Install


4, create the necessary symbolic links (Extman will find the relevant library files under these paths)

# ln-sv/usr/local/rrdtool/lib/perl/5.10.1/x86_64-linux-thread-multi/auto/rrds/rrds.so/usr/lib64/perl5/5.10.0/ X86_64-linux-thread-multi

# ln-sv/usr/local/rrdtool/lib/perl/5.10.1/x86_64-linux-thread-multi/rrds.pm

/usr/lib64/perl5/5.10.0/x86_64-linux-thread-multi/

# ln-sv/usr/local/rrdtool/lib/perl/5.10.1/x86_64-linux-thread-multi/auto/rrds/rrds.so/var/www/extsuite/extman/ Libs


5, copy Mailgraph_ext to/usr/local, and start the

# Cp-r/var/www/extsuite/extman/addon/mailgraph_ext/usr/local

#/usr/local/mailgraph_ext/mailgraph-init Start


6, start Mailgraph-init error:

Starting Mail Statistics Grapher:mailgraph_ext

Can ' t locate loadable object for module Rrds in @INC (@INC contains:/usr/local/lib64/perl5/usr/local/share/perl 5/usr/lib64/perl5/vendor_perl/usr/share/perl5/vendor_perl/usr/lib64/perl5/usr/share/perl5.) at/usr/local/mailgraph_ext/mailgraph_ext.pl Line 292

Compilation failed in require at/usr/local/mailgraph_ext/mailgraph_ext.pl line 292.

BEGIN failed--compilation aborted at/usr/local/mailgraph_ext/mailgraph_ext.pl line 292.

Starting Queue Statistics Grapher:qmonitor

Can ' t locate loadable object for module Rrds in @INC (@INC contains:/usr/local/lib64/perl5/usr/local/share/perl 5/usr/lib64/perl5/vendor_perl/usr/share/perl5/vendor_perl/usr/lib64/perl5/usr/share/perl5.) at/usr/local/mailgraph_ext/qmonitor.pl Line 8

Compilation failed in require at/usr/local/mailgraph_ext/qmonitor.pl line 8.

BEGIN failed--compilation aborted at/usr/local/mailgraph_ext/qmonitor.pl line 8.

==============================================================

Workaround:

A, first detect if the Rrds module is installed

# perl-mrrds-le ' Print Q (ok!) '


b, then create the linked file

# ln-sv/usr/local/rrdtool/lib/perl/5.10.1/x86_64-linux-thread-multi/auto/rrds/rrds.so/usr/lib64/perl5/5.10.0/ X86_64-linux-thread-multi

# ln-sv/usr/local/rrdtool/lib/perl/5.10.1/x86_64-linux-thread-multi/rrds.pm

/usr/lib64/perl5/5.10.0/x86_64-linux-thread-multi/

# ln-sv/usr/local/rrdtool/lib/perl/5.10.1/x86_64-linux-thread-multi/auto/rrds/rrds.so/var/www/extsuite/extman/ Libs


C, verify again

# perl-mrrds-le ' Print Q (ok!) '

================================================================


7, start Cmdserver (System information is displayed in the background)

#/var/www/extsuite/extman/daemon/cmdserver--daemon


8, add to auto start queue

# echo "/usr/local/mailgraph_ext/mailgraph-init start" >>/etc/rc.d/rc.local

# echo "/var/www/extsuite/extman/daemon/cmdserver-v-D" >>/etc/rc.d/rc.local


9, restart httpd

# Service httpd Restart

# service Postfix Restart


10, you can view the graph log in the background of Extman

650) this.width=650; "src=" http://s1.51cto.com/wyfs02/M02/7E/DF/wKiom1cLTL2Tlv1fAAAYj0sdTfU413.png "title=" image 11. PNG "alt=" Wkiom1cltl2tlv1faaayj0sdtfu413.png "/>

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/7E/DF/wKiom1cLTMvAZka0AABnlBLQvWI313.png "title=" image 12. PNG "alt=" Wkiom1cltmvazka0aabnlblqvwi313.png "/>



This article is from "Luo Chen's blog" blog, please be sure to keep this source http://luochen2015.blog.51cto.com/9772274/1762624

Configuring Mailgraph_ext, using Extman's graphics log

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.