// now, if you did not recieve any error messages and everything went ok its time to get your cfg sorted and everything else setup.
// Please replace the /path/to/html/folder/ with the actual path to the html folder of the site which you wish to display the mrtg graphs at.
# cd /path/to/html/folder/mrtg/
# pico -w mrtg.sh
// paste the following code in the file:
// (Thanks to ryanz on the
plesk forums for this)
#!/bin/sh
INFO=`grep eth0 /proc/net/dev | tr -s ' ' ' ' | cut -d: -f2`
RECEIVE=`echo $INFO | cut -d" " -f1`
TRANSMIT=`echo $INFO | cut -d" " -f9`
UPTIME=`uptime | tr -s ' ' ' ' | cut -d" " -f4-`
echo $RECEIVE
echo $TRANSMIT
echo $UPTIME
echo "
yourdomain.com"
// CTRL and X to exit, press y to confirm the file save.
# chmod 755 mrtg.sh
// Now to create the CFG
# pico -w mrtg.cfg
WorkDir: /path/to/html/folder/mrtg/
Target[index]: `/path/to/html/folder/mrtg/mrtg.sh`
MaxBytes[index]: 25000000
Title[index]: Traffic and Load Analysis
PageTop[index]: <H1>Traffic and Load Analysis</H1>
Xsize[index]: 400
YSize[index]: 200
// nearly done!!
// now you can start it to see if its worked

// Check where mrtg is installed... it should be /usr/local/mrtg-2/
// if it is different replace the following paths appropiately
# /usr/local/mrtg-2/bin/mrtg /path/to/html/folder/mrtg/mrtg.cfg
// now depending what domain you used as the /path/to/html/folder go to the domain with a trailing mrtg, for example, if you used the path to the html folder of myfavdomain.com you would now go to:
http://myfavdomain.com/mrtg/index.html
you should see some pretty empty graphs
if thats the case, you can now add mrtg to cron to have it run every 5 minutes (or any other lengh you wish to use) to keep them graphs up2date.
# pico -w /etc/crontab
// after all the other lines enter this:
*/5 * * * * /usr/local/mrtg-2/bin/mrtg /path/to/html/folder/mrtg/mrtg.cfg
// Please note the above line contains the same line used to start mrtg above, you can paste the line you used to start to speed things up slighly if you wish.
Now give it a few hours to notice the graphs in any detail. After just 1 hour you should start seeing data on your daily graph
Hope you enjoy this HOWTO guide

any problems please feel free to post here.
Chris