MRTG

From openSUSE

Contents

What is MRTG

MRTG(The Multi Router Traffic Grapher) will monitor SNMP network devices and draw pretty pictures showing how much traffic has passed through each interface.

Installing packages

 zypper in mrtg net-snmp
 zypper in apache2

Enabling SNMP

 insserv snmpd && rcsnmpd start

Configuring MRTG

 mkdir -p /srv/www/htdocs/mrtg
 cfgmaker --global 'WorkDir: /srv/www/htdocs/mrtg' --global 'Options[_]: bits,growright' --output /etc/mrtg.cfg public@localhost

Note: Do not change "public" to anything else, if you do add that name to /etc/snmp/snmpd.conf

Running MRTG

Add the following in /etc/crontab

 */5 * * * * root mrtg /etc/mrtg.cfg

To run manually once:

 mrtg /etc/mrtg.cfg

Create Index page

 indexmaker /etc/mrtg.cfg > /srv/www/htdocs/mrtg/index.html

Looking at the pretty pictures

 rcapache2 start

Point your browser at http://localhost/mrtg

Retrieved from "http://en.opensuse.org/MRTG"