* This is a very short document explaining how
* to convert MRTG to use rrdtool if you're using
* rrdtool and mrtg RPMs. 
*
* Mon Aug 30 1999 Henri Gomez <gomez@slib.fr>

1) Make sure you have at least mrtg-2.8.8-1 RPM
   installed. This RPM (also build by me), is the
   first version of mrtg to include the patch from
   Rainer Bawidamann <Rainer.Bawidamann@informatik.uni-ulm.de>
   which provide RRD support to mrtg.

2) You'll have to convert your log file from MRTG
   format to rrd. Alan Lichty <alichty@eli.net>, 
   give a tool, log2rrl.pl which does the job.
   Since the tool only process a file at a time,
   there is also a short script, logall2rrd,
   which will process many files and put the
   generated rrd databases on the current directory.

3) Go to where you want to put your rrd databases,
   (generally in your apache docs directory).
   Lauch logall2rrd indicating all your mrtg .log
   files.

   ie: 
		cd /home/httpd/html/mrtg
      	logall2rrd *.log

4) Modify yours mrtg configuration files, (ie mrtg.cfg)
   and add at top of file :

  		UseRRDTool: Yes

5) With this, mrtg will now use rrd databases to store
   collected data and will no more generate the 
   images in real-time. The result is that mrtg will
   run faster now (if you have many sources to poll
   you'll notice the difference).

6) Now, you must use something like a cgi to see the
   image. Here also, Rainer Bawidamann provide a nice
   cgi, 14all.cgi, which will do the job.
   For security reason, the mrtg RPM didn't install it
   and it is located /usr/doc/mrtg-2.8.8-1/contrib/14all.

   You'll only have to modify its perl script and
   set cfgfile to where you're mrtg spec file lie:

   ie:

		$cfgfile = '/home/httpd/html/mrtg/mrtg.cfg';

7) That's all have fun with it.   


