štvrtok 13. marca 2014

SendmailAnalyzer on RHEL/CentOS/Fedora

Installation of SendmailAnalyzer on RHEL/CentOS/Fedora via RPM package.


First install tool for building RPM packages
yum install rpm-build
Next, download sorces from sourceforge.net
wget "http://downloads.sourceforge.net/project/sa-report/sa-report/8.7/sendmailanalyzer-8.7.tar.gz"
Create work directories
mkdir -p ~/rpmbuild/{SOURCES,SPECS}
Extract spec file from the tarball
tar xf sendmailanalyzer-8.7.tar.gz -C ~/rpmbuild/SPECS --strip-components=3 sendmailanalyzer-8.7/packaging/RPM/sendmailanalyzer.spec
Dive into SPECS folder
cd ~/rpmbuild/SPECS/
And buid the package
rpmbuild -bb sendmailanalyzer.spec
Finally we can install it with yum
yum localinstall ../RPMS/noarch/sendmailanalyzer-8.7-1.el6.noarch.rpm

 Some post installation work to do:

Uncomment the following line in /etc/cron.d/sendmailanalyzer
0 1 * * * root /usr/bin/sa_cache > /dev/null 2>&1

Uncomment /etc/httpd/conf.d/sendmailanalyzer.conf and add place from where you wish to acces the reports (your IP or "all")
Allow from 192.168.1.2

Reload configuration
service httpd reload
Start sendmailanalyzer
service sendmailanalyzer start
Enable autostart
chkconfig sendmailanalyzer on


If you would like to examine the graphs right away you don't need to wait for cron job. Just update the cache manually with /usr/bin/sa_cache.
I hope this helps someone, like this recipe helped me.

If something is written unclear or you need advice drop me an email.

Aas.

Žiadne komentáre:

Zverejnenie komentára