へえ..........こうなってたのかぁ
MRTGに関する記事は、UNiX MAGAZINE 1997年12月号に載ってます
cd /usr/ports/net/mrtg
make install
mrtgの作業用 ディレクトリを決める
router がSNMPを許可している計算機を確認する
作業用 ディレクトリで、cfgmaker
blackcube:root {230} # cfgmaker public@gw.smb.net >>mrtg.cfg
blackcube:root {231} # ll
total 28
-rw-r--r--  1 root  wheel  28286 Aug 20 07:45 mrtg.cfg
blackcube:root {232} # cat mrtg.cfg
 

######################################################################
# Description: RT100i Rev.3.00.18 (Fri Jun 26 10:14:20 1998)
#     Contact:
# System Name: gw-smb.net
#    Location:
#.....................................................................

Target[gw.smb.net.1]: 1:public@gw.smb.net
MaxBytes[gw.smb.net.1]: 1250000
Title[gw.smb.net.1]: gw-smb.net (gw.smb.net): LAN1
PageTop[gw.smb.net.1]: <H1>Traffic Analysis for LAN1
 </H1>
 <TABLE>

vi mrtg.cfg
#    Location:
#.....................................................................
WorkDir: /home/jake/public_html/MRTG/
IconDir: ~/jake/MRTG/mrtg
############
Target[gw.smb.net.1]: 1:public@gw.smb.net
MaxBytes[gw.smb.net.1]: 1250000

blackcube:root {247} # mrtg mrtg.cfg
Rateup WARNING: /usr/local/bin//rateup could not read the primary log file for gw.smb.net.1
Rateup WARNING: /usr/local/bin//rateup The backup log file for gw.smb.net.1 was invalid as well
Rateup WARNING: /usr/local/bin//rateup Can't remove gw.smb.net.1.old updating log file
Rateup WARNING: /usr/local/bin//rateup Can't rename gw.smb.net.1.log to gw.smb.net.1.old updating log file
Rateup WARNING: /usr/local/bin//rateup could not read the primary log file for gw.smb.net.32
Rateup WARNING: /usr/local/bin//rateup The backup log file for gw.smb.net.32 was invalid as well
Rateup WARNING: /usr/local/bin//rateup Can't remove gw.smb.net.32.old updating log file
Rateup WARNING: /usr/local/bin//rateup Can't rename gw.smb.net.32.log to gw.smb.net.32.old updating log file

blackcube:root {272} # mrtg mrtg.cfg
blackcube:root {273} # mrtg mrtg.cfg
 

crontab -e
0,5,10,15,20,25,30,35,40,45,50,55 * * * * /usr/local/bin/mrtg /usr/home/jake/public_html/MRTG/mrtg.cfg
 


MRTG for PPLeased
MRTG for LAN1


Last modified