MRTG for M$



贊助商連結


頁 : [1] 2 3 4 5 6 7 8 9

repsol
2001-06-17, 11:35 PM
1.安裝好 NT or Windows 2000 的機器一台(也請裝上IIS或 apcahe 等)
2.perl for Win 的套件,請上http://www.activestate.com/ 如果你是nt或是win95/98請多下載一個InstMsi.exe
3.MRTG for M$ 的soft 請上http://ee-staff.ethz.ch/~oetiker/webtools/mrtg/mrtg.html企抓...
4.安裝perl :
5.安裝mrtg for M$ :Hmm...請記住一下所解壓縮的目錄..
6.mrtg所有的執行檔都在bin的目錄下...
7.perl cfgmaker [email protected] --global "WorkDir:
c:\InetPub\wwwroot\MRTG" --output mrtg.cfg
稍微解釋一下...
其中xxxxxxxx為你的snmp community
aaa.aaa.aaa.aaa為你所要監測流量機器的ip
c:\InetPub\wwwroot\MRTG...請把他換成你web的document root
mrtg.cfg---->請依自己好記的方式來命名

8.編輯mrtg.cfg
Hmm....可以對照參考一下MRTG官方網站上說明...很詳細...不難懂.....需注意的是要記的設一下Interval這個參數 :)
mrtg就是依照這個cfg檔的設定來產生易懂的html檔的流量圖....
9.indexmaker這個就是產生index.html的執行檔..
perl indexmaker 加上參數...
Options:
--output=filename set output filename (default: stdout)

--filter title=~regexp select targets by matching regexp against titles
--filter pagetop=~regexp select targets by matching regexp against pagetop
--filter name=~regexp select targets by matchin regexp against name

--title=text set title of generated index file
--bodyopt=text set body tag options
--pagetop=text insert this text between <BODY> and <H1>...</H1>

--columns=number show graphs in a table with x columns (default: 2)

--sort=title sort graphs by title
--sort=name sort graphs by their name
--sort=descr sort graphs by their description
--sort=original leave as is (default)

--enumerate add a sequence number to the title of each graph

--width=number set width of graphs (default: not set)
--height=number

--show=day pick which graph to show in the index (default)
--show=week
--show=month
--show=year
--show=none

--section=h1 h1 tag from pagetop as section heading (default)
--section=title title as section headings for graphs
--section=name graph name as section heading
--section=descr graph description as section heading
.....blah blah
舉個例子
perl indexmaker -t "MY Traffic show" mrtg.cfg > c:\InetPub\wwwroot\MRTG\index.html
這樣執行下來 ...就會有index.html出來了

10. 用瀏覽器瀏覽一下自己的http://aaa.aaa.aaa.aaa/MRTG/index.html...
如果不行...check一下..多try個幾次..應該就可以了..

贊助商連結


williamsydu
2001-07-15, 01:39 AM
C:\Inetpub\wwwroot\mrtg\bin>c:\inetpub\wwwroot\perl\bin\perl cfgmaker william@my ip --global "WorkDir:c:\InetPub\wwwroot\mrtg" --output mrtg.cfg

SNMPv1_Session (remote host: "my ip" [my ip].161)
community: "william"
request ID: 477639764
PDU bufsize: 8000 bytes
timeout: 2s
retries: 5
backoff: 1)
SNMPWALK Problem for 1.3.6.1.2.1.2.2.1.1 on william@my ip
--base: Walking ifType
SNMP Error:
no response received


請問一下上面是出了什麼問題呢??? 為什麼會出現沒有回應可以接收呢??

對嚕 請問一下什麼是SNMP??

repsol
2001-07-15, 02:36 AM
最初由 williamsydu
C:\Inetpub\wwwroot\mrtg\bin>c:\inetpub\wwwroot\perl\bin\perl cfgmaker william@my ip --global "WorkDir:c:\InetPub\wwwroot\mrtg" --output mrtg.cfg

SNMPv1_Session (remote host: "my ip" [my ip].161)
community: "william"
request ID: 477639764
PDU bufsize: 8000 bytes
timeout: 2s
retries: 5
backoff: 1)
SNMPWALK Problem for 1.3.6.1.2.1.2.2.1.1 on william@my ip
--base: Walking ifType
SNMP Error:
no response received


請問一下上面是出了什麼問題呢??? 為什麼會出現沒有回應可以接收呢??

對嚕 請問一下什麼是SNMP??

請問你的my ip那台機器有支援snmp或是有啟動snmp服務嗎?...如果都沒有..
一定會有error...也就沒有辦法正確的傳回值...

snmp = Simple Network Management Protocol ...
比較有名的是ucd-snmp
http://ucd-snmp.ucdavis.edu/

williamsydu
2001-07-15, 08:33 AM
機型是Sisco 676 不知道有沒有支援呢??


最初由 repsol


請問你的my ip那台機器有支援snmp或是有啟動snmp服務嗎?...如果都沒有..
一定會有error...也就沒有辦法正確的傳回值...

snmp = Simple Network Management Protocol ...
比較有名的是ucd-snmp
http://ucd-snmp.ucdavis.edu/

repsol
2001-07-15, 04:27 PM
最初由 williamsydu
機型是Sisco 676 不知道有沒有支援呢??




有支援...但是要看他這個功能有沒有打開...
你應該是指cisco 676...Hinet早期ADSL 小烏龜....
你的adsl應該是固定制????哪哪的小烏龜應該會夾帶一個gateway ip..
試試snmpwalk是否正常...正常的話..會跑出粉多的東西...不正常的話..
就是time out...

good luck !!!

cflin
2001-07-17, 04:59 PM
最初由 williamsydu
機型是Sisco 676 不知道有沒有支援呢??



default值是沒開啟snmp,看能不能打電話請中華電信幫你開啟

williamsydu
2001-08-02, 05:26 PM
最初由 cflin


default值是沒開啟snmp,看能不能打電話請中華電信幫你開啟

請問一下那如果被換成Speed Touch 340 那可以用嗎??

cflin
2001-08-02, 05:30 PM
最初由 williamsydu


請問一下那如果被換成Speed Touch 340 那可以用嗎??

Speed Touch 340這台我不知道有沒有,不過我知道zyxel 642那台有,
而且預設值是已開啟snmp

repsol
2001-08-02, 05:52 PM
最初由 cflin


Speed Touch 340這台我不知道有沒有,不過我知道zyxel 642那台有,
而且預設值是已開啟snmp

哪請較一下

zyxel 642R第五批的community是啥麼...

Lettuce
2001-08-02, 11:39 PM
ZyXEL的全系列SNMP Community都是public
如果您不知道您系統的SNMP Community..
都可以用public來試試..
因為那是Default值.