MRTG
From openSUSE
Contents |
[edit]
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.
[edit]
Installing packages
zypper in mrtg net-snmp zypper in apache2
[edit]
Enabling SNMP
insserv snmpd && rcsnmpd start
[edit]
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
[edit]
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
[edit]
Looking at the pretty pictures
rcapache2 start
Point your browser at http://localhost/mrtg

