Create MRTG Configuration

mkdir -p /var/www/html/mrtg/[[Device Name]] /usr/local/mrtg-2/bin/cfgmaker \ --global 'WorkDir: /var/www/html/mrtg/[[Device Name]]' \ --ifref=name \ --ifdesc=descr \ --global 'Options[_]: bits,growright' \ --output /usr/local/mrtg-2/etc/[[Device Name]].cfg \ [[SNMP Community]]@[[Device IP]]

Create MRTG Index File

/usr/local/mrtg-2/bin/indexmaker \ --output=/var/www/html/mrtg/[[Device Name]]/index.html \ /usr/local/mrtg-2/etc/[[Device Name]].cfg

Run MRTG

env LANG=C /usr/local/mrtg-2/bin/mrtg /usr/local/mrtg-2/etc/[[Device Name]].cfg



Device Name:
Device IP:
SNMP Community:


Use this code to post the full script to your own page:



Use this code to post only the variables to your own page: