Sisyphus repositório
Última atualização: 1 outubro 2023 | SRPMs: 18631 | Visitas: 37841823
en ru br
ALT Linux repositórios
S:1.8.0-alt1
5.0: 1.2.30-alt1
4.1: 1.2.27-alt1
4.0: 1.2.23-alt1
3.0: 1.0.49-alt1

Group :: Desenvolvimento/Banco de Dados
RPM: rrd

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs e FR  Repocop 

* 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.


 
projeto & código: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
mantenedor atual: Michael Shigorin
mantenedor da tradução: Fernando Martini aka fmartini © 2009