pkg_add -r mrtg
echo 'mrtg_daemon_enable="YES"' >> /etc/rc.conf
/usr/local/etc/rc.d/snmpd start
/usr/local/bin/cfgmaker zenno@192.168.0.160 > /usr/local/etc/mrtg/mrtg.cfg
vi /usr/local/etc/mrtg/mrtg.cfg
----------------------------------------------------------------
WorkDir: /usr/local/www/mrtg
Options[_]: growright, bits
XSize[_]: 600
YSize[_]: 200
Refresh: 3600
#RunAsDaemon:Yes
#Interval:5
----------------------------------------------------------------
mkdir /usr/local/www/mrtg
/usr/local/bin/mrtg /usr/local/etc/mrtg/mrtg.cfg
/usr/local/bin/mrtg /usr/local/etc/mrtg/mrtg.cfg
chown -R mrtg:mrtg /usr/local/www/mrtg
chown -R mrtg:mrtg /usr/local/etc/mrtg
vi /usr/local/etc/apache22/Includes/mrtg.conf
--------------------
Alias /mrtg "/usr/local/www/mrtg/"
<Directory "/usr/local/www/mrtg/">
Options Indexes
AllowOverride Limit
Order Deny,Allow
Deny from all
Allow from 192.168.
</Directory>
--------------------
FreeBSD