【求助】MRTG + RRDTOOL



贊助商連結


lionel_lo
2002-07-11, 02:34 PM
MRTG已經正常work了
rrdtools也裝上了
可是現在不知怎ㄇ使mrtg產生rrd的log檔 *.rrd
官方說明文件


When using mrtg with RRDtool you are replacing rateup with the RRDtool perl module RRDs.pm. To enable RRDtool support in mrtg you have to add the line
LogFormat: rrdtool
MRTG needs access to both the RRDtool perl module RRDs.pm and to the rrdtool executable.
If these two items are not installed in locations where perl can find them on its own, then you can use the following two parameters to supply the appropriate directories.
For the location of the rrdtool executable you put
PathAdd: /usr/local/rrdtool/bin/
or
PathAdd: c:\rrdtool\bin
For the location of the perl module it would be:
LibAdd: /usr/local/rrdtool/lib/perl/
or
LibAdd: c:\rrdtool\bin\lib\perl

LogFormat: rrdtool就看不懂...
請高手幫忙....謝謝...
os:REDHAT 7.3
http://lolai.mine.nu/mrtg/

贊助商連結


wheel
2002-07-11, 04:14 PM
最初由 lionel_lo 發表
MRTG已經正常work了
rrdtools也裝上了
可是現在不知怎ㄇ使mrtg產生rrd的log檔 *.rrd
官方說明文件

LogFormat: rrdtool就看不懂...
請高手幫忙....謝謝...
os:REDHAT 7.3
http://lolai.mine.nu/mrtg/

理論上都有裝好的話... 下那行 LogFormat: rrdtool 就可以啦..
不曉得你的問題是出在哪裡 ?

lionel_lo
2002-07-11, 05:22 PM
最初由 wheel 發表


理論上都有裝好的話... 下那行 LogFormat: rrdtool 就可以啦..
不曉得你的問題是出在哪裡 ?
就是不曉得下在哪...
是mrtg.cfg 嗎
我試過...
不行...

repsol
2002-07-12, 01:13 AM
請問有任何的錯誤訊息嗎?

方便的話...可以po上來看看嗎??

lionel_lo
2002-07-12, 01:55 AM
我弄好了
原來
PathAdd:
LibAdd:
要一起放
只有LOGFORMAT沒用
RRD一直不知道怎ㄇ產生圖檔
因為我用RPM裝的
有其他工具可以讀RRD的LOG
我就裝上了
http://lolai.mine.nu/cgi-bin/routers2.cgi

請問各位高手...怎樣讓RRD產生網頁....
謝謝...

repsol
2002-07-12, 02:45 PM
???
你這樣已經算是成功了的吧...
routers2.cgi會讀進rrdtool所產生出來的log file
然後會畫成圖...順便print出html code 搭配
rrdtool的流量圖...


下面這個URL了流量圖...我也是用rrdtool做出來的
雖然流量圖跟妳的不太一樣
不過方法大致上是一樣的
http://home.kimo.com.tw/chmodkimo/traffic.htm