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


トップ   編集 凍結 差分 バックアップ 添付 複製 名前変更 リロード   新規 一覧 単語検索 最終更新   ヘルプ   最終更新のRSS
Last-modified: 2010-09-10 (金) 16:08:33 (4104d)