@epixoip: thanks thats cleaner :-)
Don't forget to setup a cronjob to run MRTG every 5 minutes so your graphs get updated.
I use as WorkDir /var/www/mrtg so a simple apt-get install apache2 will work out of the box by setting the right permissions to the mrtg folder.
Then run "indexmaker" (from MRTG package) to generate the right index.html
Don't forget to setup a cronjob to run MRTG every 5 minutes so your graphs get updated.
Code:
*/5 * * * * env LANG=C /usr/bin/mrtg /path/to/mrtg.cfg &> /dev/null
I use as WorkDir /var/www/mrtg so a simple apt-get install apache2 will work out of the box by setting the right permissions to the mrtg folder.
Then run "indexmaker" (from MRTG package) to generate the right index.html
Code:
indexmaker -output=/var/www/mrtg/index.html /path/to/mrtg.cfg