En hurtig gennemgang at installation af MRTG på en debian maskine.

Først hent source fra http://oss.oetiker.ch/mrtg/pub/?M=D
wget http://oss.oetiker.ch/mrtg/pub/mrtg.tar.gz

 Udpak denne:
tar -zxvf mrtg.tar.gz

Installer andre Preregs: så som GD
apt-get install libgd2-noxpm-dev libgd2-noxpm libio-socket-inet6-perl libsnmp-session-perl libsocket6-perl

 CD ind ind i den udpakket source file mappen, her er det version 2.16.2
cd mrtg-2.16.2/

Start installatione af mrtg med at konfiguere pakken
./configure

Compile filerne:
make

 Installer:
make install

Her efter kan man prøve at køre:
/usr/local/mrtg-2/bin/mrtg

hvilket bør give dette output.

-----------------------------------------------------------------------
ERROR: Mrtg will most likely not work properly when the environment
       variable LANG is set to UTF-8. Please run mrtg in an environment
       where this is not the case. Try the following command to start:

       env LANG=C local/mrtg-2/bin/mrtg
-----------------------------------------------------------------------