Sunday, May 25, 2008

Mailgraph install on CentOS 5

Been with a lot of work this week, most of the time busy and pressured with our mail server migration, so, I took a bit of a time off from the box yesterday.

Mailgraph is a very cool utility to graph (duh !) the behavior of your mail server's ability to send, reject & bounce emails.

Installing it is pretty simple, it is a Perl script after all, simply untar the package and copy the Perl script and the init script, edit the some values of the init script, and you are done.
The thing is, the Perl script has some dependencies, most of them dealing with the RRD package.

Personally, I prefer not to touch the repos that the default yum install use on the servers, so here is a round down of the necessary steps to make the installation work, using all the packages from DAG.

[web10 rpms]# sudo rpm --test -ivh rrdtool-1.2.23-1.el5.rf.i386.rpm
warning: rrdtool-1.2.23-1.el5.rf.i386.rpm: Header V3 DSA signature: NOKEY, key ID 6b8d79e6
error: Failed dependencies:
libart_lgpl_2.so.2 is needed by rrdtool-1.2.23-1.el5.rf.i386
perl(RRDp) is needed by rrdtool-1.2.23-1.el5.rf.i386
perl(RRDs) is needed by rrdtool-1.2.23-1.el5.rf.i386


According to Egopoly, you need this packages first hand:

[web10 rpms]# sudo yum install libpng-devel \
freetype freetype-devel libart_lgpl-devel


After that, you'll still have problems (Egopoly seems to be compiling from source):

[web10 rpms]# sudo rpm --test -ivh rrdtool-1.2.23-1.el5.rf.i386.rpm
warning: rrdtool-1.2.23-1.el5.rf.i386.rpm: Header V3 DSA signature: NOKEY, key ID 6b8d79e6
error: Failed dependencies:
perl(RRDp) is needed by rrdtool-1.2.23-1.el5.rf.i386
perl(RRDs) is needed by rrdtool-1.2.23-1.el5.rf.i386


So, get Perl-RRDTool first:

[web10 rpms]# sudo rpm --test -ivh perl-rrdtool-1.2.23-1.el5.rf.i386.rpm
warning: perl-rrdtool-1.2.23-1.el5.rf.i386.rpm: Header V3 DSA signature: NOKEY, key ID 6b8d79e6
error: Failed dependencies:
librrd.so.2 is needed by perl-rrdtool-1.2.23-1.el5.rf.i386
rrdtool = 1.2.23 is needed by perl-rrdtool-1.2.23-1.el5.rf.i386


There is still a dependency problem, so, you'll have to install both packages at the same time:

rpm --test -ivh perl-rrdtool-1.2.23-1.el5.rf.i386.rpm \
rrdtool-1.2.23-1.el5.rf.i386.rpm rrdtool-devel-1.2.23-1.el5.rf.i386.rpm


You'll still need to install the last rpm package to get Mailgraph up & running:

[web10 rpms]# sudo rpm -ivh perl-File-Tail-0.99.3-1.2.el5.rf.noarch.rpm
warning: perl-File-Tail-0.99.3-1.2.el5.rf.noarch.rpm: Header V3 DSA signature: NOKEY, key ID 6b8d79e6
Preparing... ########################################### [100%]
1:perl-File-Tail ########################################### [100%]

Labels: , , , ,

4 Comments:

Anonymous Anonymous said...

Awesome :-) Thanks a lot for this buddy! Just to mention... I know you are trying to avoid the use of third-party repos but if you add the rpmforge repo you can easily install rrdtool, perl-rrdtool and perl-File-Tail and all dependencies very easily

4:26 PM  
Blogger hictio said...

I'm glad it helped.
And thanks for the tip on the repos, but, yes, I prefer to keep production systems as lean as I can.

12:49 AM  
Anonymous Anonymous said...

Muchas Gracious!!

1:59 PM  
Blogger hictio said...

Muchas denadas.

8:09 PM  

Post a Comment

<< Home