Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37814900
en ru br
Репозитории ALT
S:1.8.0-alt1
5.1: 1.2.30-alt1
4.1: 1.2.27-alt1
4.0: 1.2.23-alt1
3.0: 1.0.49-alt1
www.altlinux.org/Changes

Группа :: Разработка/Базы Данных
Пакет: rrd

 Главная   Изменения   Спек   Патчи   Исходники   Загрузить   Gear   Bugs and 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.


 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin