mrtg script for monitoring temperature
#5
@epixoip: thanks thats cleaner :-)

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


Messages In This Thread
RE: mrtg script for monitoring temperature - by gpufreak - 07-15-2013, 09:12 AM