17th September 2009 Cat: LINUX with 5 Comments

MRTG is the most popular Network Monitoring Tools for Linux. Simple Traffic Graph to monitoring Network throughput, CPU used,memory used, etc.

Before you configure MRTG graph, you have to prepare these kind of tools :
GCC
The GNU C compiler
Perl
Most of MRTG scripts using Perl language. Check your Linux by type perl-v.
gd
It’s a basic graph drawing library, it can create .PNG image
libpng
To produce PNG file you need to install this tool.
zlib
It’s needed to compress your PNG files.
MRTG
Of course you must install MRTG on Centos.MRTG last version is MRTG 2.16.2 version

I try this step using Centos Linux. Assume all above tools are installed on your linux.Example i want to make on Jakarta site, ip address is 192.168.4.2

Step 1
Make new directory
mkdir -p /var/www/html/jakarta/

Step 2
Creating .cfg file contain mrtg configuration. I use public snmp community
cfgmaker –global ‘workDir: /var/www/html/jakarta’ –global “Options[_]: growright ,bits” –ifref=descr –output /etc/mrtg/jakarta.cfg public@192.168.4.2

Step 3
Make indexmaker which display the status of an array mrtg interface status pages.
indexmaker –output=/var/www/html/jakarta/index.html /etc/mrtg/jakarta.cfg

Step 4
Copy your PNG files
cp -av /var/www/mrtg/*.png /var/www/html/jakarta/

Step 5
Run your MRTG
env LANG=C /usr/bin/mrtg /etc/mrtg/jakarta.cfg

Step 6
Make crontab.
You can edit your cronjob using crontab -e, and add this one.
*/5 * * * * /usr/bin/mrtg /etc/mrtg/jakarta.cfg – logging /var/log/mrtg.log

FINISH !

you can watch you graphic now.

MRTG

See Also : 

Make Your Linux Like Windows

http://www.bungerik.com/wp-content/plugins/sociofluid/images/digg_16.png http://www.bungerik.com/wp-content/plugins/sociofluid/images/dzone_16.png http://www.bungerik.com/wp-content/plugins/sociofluid/images/stumbleupon_16.png http://www.bungerik.com/wp-content/plugins/sociofluid/images/delicious_16.png http://www.bungerik.com/wp-content/plugins/sociofluid/images/blinklist_16.png http://www.bungerik.com/wp-content/plugins/sociofluid/images/blogmarks_16.png http://www.bungerik.com/wp-content/plugins/sociofluid/images/furl_16.png http://www.bungerik.com/wp-content/plugins/sociofluid/images/newsvine_16.png http://www.bungerik.com/wp-content/plugins/sociofluid/images/technorati_16.png http://www.bungerik.com/wp-content/plugins/sociofluid/images/google_16.png http://www.bungerik.com/wp-content/plugins/sociofluid/images/myspace_16.png http://www.bungerik.com/wp-content/plugins/sociofluid/images/facebook_16.png http://www.bungerik.com/wp-content/plugins/sociofluid/images/yahoobuzz_16.png http://www.bungerik.com/wp-content/plugins/sociofluid/images/mixx_16.png http://www.bungerik.com/wp-content/plugins/sociofluid/images/twitter_16.png http://www.bungerik.com/wp-content/plugins/sociofluid/images/meneame_16.png

Related Post :
Comments for 6 Steps How to Configure MRTG on Centos Linux
  1. Elcharis 17th June 2009 at 7:54 pm

    Duh, minta yang dasarnya aja dunk he3x…

  2. Reo 18th June 2009 at 12:37 am

    terima kasih kunjungan'a

  3. Erik Hanindita P 18th June 2009 at 5:29 am

    yang dasar gimana ris ?
    btw, masih di honda ?

  4. Heppy 3rd July 2009 at 11:16 am

    wahh mantabb nehh, semangat trus ya, Lanjutkann… (berkarya nulis blog nya maksudnya :) )

  5. Zashkaser 6th August 2009 at 1:22 am

    Thanks for post. Nice to see such good ideas.

Leave a Comment for 6 Steps How to Configure MRTG on Centos Linux