File: README

package info (click to toggle)
mrtg 2.8.9-1
  • links: PTS
  • area: main
  • in suites: potato
  • size: 2,716 kB
  • ctags: 912
  • sloc: perl: 15,799; ansic: 3,489; sh: 844; makefile: 153; csh: 49; exp: 16
file content (81 lines) | stat: -rw-r--r-- 2,878 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
Welcome to MRTG
===============

> In order to MRTG build on a UNIX machine the following things are
> required.

  * a C compiler, preferably gcc or egcs 
  * a recent copy of perl, Version 5.004_4 should do -> www.perl.com

    >> in RedHat 5.2 there is a BROKEN version of Perl. Make sure you
       get an update from RedHat before continuing <<

  * the GD library from Thomas Boutell -> www.boutell.com

    >> if you have gdlib version < 1.6 mrtg will be configured to produce
       png images. For compilation this may require you to install libz
       and libpng. See gdlib documentation for details.
    
    >> if you are not experienced with handling shared libraries,
       make sure you build static versions of libz, libpng and libgd
       in their respective documentation you will find how this is done.

       You should end-up with a lib*.a and a set of *.h files for each of the
       libraries.

    >> your commands for building gd and friends could look like this:

       **** if you don't have zlib installed (linux will not need this)
         wget http://www.cdrom.com/pub/infozip/zlib/zlib.tar.gz
	 gunzip -c zlib.tar.gz | tar xf -
         mv  zlib-1.1.3/ zlib
         cd zlib
	 ./configure
	 make
         cd ..
       
       **** if you don't have libpng installed (linux will not need this)
	 wget ftp://swrinde.nde.swri.edu/pub/png/src/libpng-1.0.5.tar.gz
         gunzip -c libpng-1.0.5.tar.gz |tar xf -
         mv libpng-1.0.5 libpng
	 cd libpng
	 gmake -f scripts/makefile.solaris ZLIBLIB=../zlib ZLIBINC=../zlib	 
	 rm *.so.* *.so
	 cd ..
       
       **** if you don't have libgd
         wget http://www.boutell.com/gd/http/gd-1.7.3.tar.gz
         gunzip -c gd-1.7.3.tar.gz |tar xf -
 	 cd gd-1.7.3
	 make INCLUDEDIRS="-I../zlib -I../libpng" LIBDIRS="-L../zlib -L. -L../libpng"
	 cd ..
	
  Once these are compiled cd into the mrtg directory and type:
	 
  ./configure --with-gd=../gd-1.7.3 --with-z=../zlib --with-png=../libpng


  configure will make sure your evironment is fit for building mrtg.
  If it finds a problem, it will tell you so and it will also tell
  you what todo about it. If everything is OK, you will end up with
  a custom Makefile for your system. Now type:

  make

  this builds the rateup binary and edits all the perl pathnames in
  the scripts. All the software required by MRTG is now in the run
  subdirectory.

> If you downloaded the zip archive for NT, there is a precompiled
> version of rateup in the run directory ...


The next step is to configure MRTG by writing a mrtg.cfg file. You can
either do this by hand, using the config.txt and the sample-mrtg.cfg
file in the doc subdirectory, or you can use the cfgmaker program in
the run directory.

In any case, make sure you read the mrtg documentation in the
doc subdirectory. Especially the manual.txt.

tobi oetiker <oetiker@ee.ethz.ch>