Wednesday, April 25, 2007

How to use qmailmrtg7



REQUIREMENT :-

mrtg.xxx should be installed.


1) Install mrtg

2) Make qmailmrtg7 as root. It needs to be able to read
your /var/qmail/queue directories

# make

3) Install it
# make install
all this does is copy qmailmrg7 to /usr/local/bin

4) Create an mrtg working directory under your web servers
document root.

On default apache installations I do:
mkdir /var/www/html/qmailmrtg

5) setup qmail.mrtg.cfg and index.html

copy qmail.mrtg.cfg and index.html to the
directory you made in step 4.

edit qmail.mrtg.cfg and index.html

Change: FQDN to your hostname
FQDN = fully qualified domain name
Change: WorkDir to point to your http mrtg directory

Change the log file locations to where you store your qmail logs.
I put my qmail-send logs in /var/log/qmail
my pop3 longs in /var/log/pop3 and my smtp logs in /var/log/smtp

If you are not logging pop or smtp comment out the pop3 and smtp
sections with a # character at the beging of each line.

You can update the pop3 and smtp lines and set the
MaxBytes variable to match your -cX line in tcpserver.

You can also update the concurrency to match your
concurrencyremote or concurrencylocal values. The default
qmail values are 20 if those files do not exist in your
/var/qmail/control directory

NOTE:-
Now copy qmail.mrtg.cfg in /etc/mrtg/
which will create png images and also will be linked with mrtg.



6) Add a crontab line
On my machine I do the following:
crontab -e

*/5 * * * * /usr/local/bin/mrtg /etc/mrtg/qmail.mrtg.cfg 2>&1 > /dev/null


exit the crontab editor

7) run mrtg 3 times to get it setup. You will get warning messages
the first 3 times you run it. After that, you should not get more warnings
/usr/local/bin/mrtg /etc/mrtg/qmail.mrtg.cfg

8) wait 15 minutes for the logs to start showing things

9) Check out the graphs
http://your host name/qmailmrtg/

10) Read the FAQ file

3 comments:

Anonymous said...

Can anyone recommend the top IT automation system for a small IT service company like mine? Does anyone use Kaseya.com or GFI.com? How do they compare to these guys I found recently: N-able N-central managed services software
? What is your best take in cost vs performance among those three? I need a good advice please... Thanks in advance!

Anonymous said...

selene gomez and demi lovato nude http://trusted.md/user/demi_lovato_nude demi lovato naked photos

Anonymous said...

taylor swift fee nudes taylor swift nude pic