Summary
MRTG (MULTIROUTER Traffic Grapher, MRTG) is a typical network traffic statistical analysis tool based on SNMP. Its consumption has a small system, this is a configuration article of MRTG (2003-05-05 10:20:52)
By Seeelinux
FreeBSD-4.7 Installing Network Traffic Statistical Analysis Tools MRTG Original URL: http://www.webrj.com/read.php?i = 323 MRTG (Multirouter Traffic Grapher, MRTG) is a typical network traffic statistical analysis tool based on SNMP. It consumes a small system resource, now the latest version is 2.9.25 (MRTG-2.9.25.tar.gz), available from http://people.ee.thz.ch/mrtg/pub /mrtg-2.9.25.tar.gz got. Practice notes consolidated by Seelinux in 2002-02-19, email: seeelinux@webrj.com URL: www.Webrj.com System Environment: FreeBSD-4.7 Mini, Hostname is (. COM) FreeBSD-4.7 Installing Network Traffic Statistical Analysis Tools MRTG Required Software:
MRTG-2.9.25.tar.gzhttp: //people.ee.ethz.ch/~Oetiker/webtools/mrtg/pub/mrtg-2.9.25.tar.gzzlib 1.4.tar.gzhttp: // www .gzip.org / zlib / zlib-1.1.4.tar.gzlibpng-1.2.5.tar.gzhttp: //www.gzip.org/zlib/zlib 1.4.tar.gzgd-1.8.3.tar .gzhttp: //www.boutell.com/gd/http/gd-1.8.3.tar.gz Create a new / usr / local / src directory, put the relevant files in some directories, of course you can place it Location, look at personal hobbies ^. ^ # Mkdir -p / usr / local / src # CD / USR / local / src 1, Set Zlib # TAR ZXVF ZLIB-1.1.4.Tar.gz # mv Zlib-1.1.4 Zlib # cd zlib #. / configure # make # cd .. 2, set zlib # tar zxvf libpng-1.2.tar.gz #mv libpng-1.2.5 libpng # cd lobpng # make -f scripts / makefile.std CC = gcc zliblib = .. / zlib zlibinc = .. / zlib # CD .. 3, set GD # tar zxvf GD-1.8.3.Tar.gz # mv GD-1.8.3 GD # cd GD # make includeirs = "-I. -I ../ zlib -i ../ libpng" libdirs = "- l ../ zlib -l. -L ../ libpng" libs = "- lgd -lpng -lz -lm" #CD . 4, install MRTG # 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 to this related MRTG related installation, Apache and MRTG phase Available method can refer to other articles, or get to www.linuxAid.com, www.linuxcn.org, www.webrj.com, www.linuxforum.net.