Pejman Moghadam / FreeBSD

FreeBSD 6.3 - MRTG

Public domain


Installation

cd /usr/ports/net-mgmt/mrtg
make install clean && rehash

Configuration

# mkdir /usr/local/www/data/mrtg
# cfgmaker notpublic@127.0.0.1 > /usr/local/etc/mrtg/mrtg.cfg
# vi /usr/local/etc/mrtg/mrtg.cfg
    WorkDir: /usr/local/www/data/mrtg
    Options[_]: bits
# indexmaker /usr/local/etc/mrtg/mrtg.cfg > /usr/local/www/data/mrtg/index.html

Startup

# vi /etc/crontab
    */5     *       *       *       *       root    /usr/local/bin/mrtg /usr/local/etc/mrtg/mrtg.cfg  > /dev/null 2>&1

BY: Pejman Moghadam
TAG: _
_DATE: 2008-06-07 15:27:19


Pejman Moghadam / FreeBSD [ TXT ]