Network traffic is an important indicator for network administrators. Observe the traffic to learn the newest symptoms of the network. Here is the Mrtg tutorial for installing the network traffic statistical analysis tool MRTG.
Mrtg tutorial By SeeLinux
Installing network traffic statistical analysis tool MRTG in FreeBSD-4.7
Original URL: http://www.webrj.com/read.php? Id = 323
MRTG (MultiRouter Traffic Grapher, router), available from http://people.ee.ethz.ch /~ Oetiker/webtools/mrtg/pub/mrtg-2.9.25.tar.gz (get ).
Practice Notes organized by seelinux in, Email: seelinux@webrj.com URL: www.webrj.com
System Environment: FreeBSD-4.7 mini, hostname is (. com)
Install the software required by the network traffic statistical analysis tool MRTG under the FreeBSD-4.7:
Mrtg-2.9.25.tar.gz http://people.ee.ethz.ch /~ Oetiker/webtools/mrtg/pub/mrtg-2.9.25.tar.gz zlib-1.1.4.tar.gz http://www.gzip.org/zlib/zlib-1.1.4.tar.gz libpng-1.2.5.tar.gz http://www.gzip.org/zlib/zlib-1.1.4.tar.gz gd-1.8.3.tar.gz
Create a new/usr/local/src directory and put the relevant files in some directories. Of course, you can place them in their locations to see your hobbies ^. ^
# Mkdir-p/usr/local/src
# Cd/usr/local/src
1. Set zlib in Mrtg tutorial
# Tar zxvf zlib-1.1.4.tar.gz
# Mv zlib-1.1.4 zlib
# Cd zlib
#./Configure
# Make
# Cd ..
2. Set zlib in Mrtg tutorial
# Tar zxvf libpng-1.2.5.tar.gz
# Music libpng-1.2.5 libpng
# Cd libpng
# Make-f scripts/makefile. std CC = gcc ZLIBLIB = ../zlib ZLIBINC = ../zlib
# Cd ..
3. Set gd in Mrtg tutorial
# Tar zxvf gd-1.8.3.tar.gz
# Mv gd-1.8.3 gd
# Cd gd
# Make INCLUDEDIRS = "-I.-I ../zlib-I ../libpng"
LIBDIRS = "-L ../zlib-L.-L ../libpng"
LIBS = "-lgd-lpng-lz-lm"
# Cd ..
4. Install Mrtg in the mrtg tutorial
# Tar zxvf mrtg-2.9.25.tar.gz
# Cd mrtg-2.9.25
#./Configure -- prefix =/usr/local/mrtg-2
-- With-gd =/usr/local/src/gd
-- With-z =/usr/local/src/zlib
-- With-png =/usr/local/src/libpng
# Make
# Make install
The MRTG-related installation is complete. For details about APACHE and MRTG () usage, refer to their articles or www.linuxaid.com, www.linuxcn.org, www.webrj.com, www.linuxforum.net ..
This article from: huajun sky Software Park (www.m888888.com) Detailed reference: http://www.m888888.com/dirss/html/179977.html