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個幾次..應該就可以了.. |
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?? |
[QUOTE][i]最初由 williamsydu [/i] [B]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?? [/B][/QUOTE] 請問你的my ip那台機器有支援snmp或是有啟動snmp服務嗎?...如果都沒有.. 一定會有error...也就沒有辦法正確的傳回值... snmp = Simple Network Management Protocol ... 比較有名的是ucd-snmp [url]http://ucd-snmp.ucdavis.edu/[/url] |
機型是Sisco 676 不知道有沒有支援呢?? [QUOTE][i]最初由 repsol [/i] [B] 請問你的my ip那台機器有支援snmp或是有啟動snmp服務嗎?...如果都沒有.. 一定會有error...也就沒有辦法正確的傳回值... snmp = Simple Network Management Protocol ... 比較有名的是ucd-snmp [url]http://ucd-snmp.ucdavis.edu/[/url] [/B][/QUOTE] |
[QUOTE][i]最初由 williamsydu [/i] [B]機型是Sisco 676 不知道有沒有支援呢?? [/B][/QUOTE] 有支援...但是要看他這個功能有沒有打開... 你應該是指cisco 676...Hinet早期ADSL 小烏龜.... 你的adsl應該是固定制????哪哪的小烏龜應該會夾帶一個gateway ip.. 試試snmpwalk是否正常...正常的話..會跑出粉多的東西...不正常的話.. 就是time out... good luck !!! |
[QUOTE][i]最初由 williamsydu [/i] [B]機型是Sisco 676 不知道有沒有支援呢?? [/B][/QUOTE] default值是沒開啟snmp,看能不能打電話請中華電信幫你開啟 |
[QUOTE][i]最初由 cflin [/i] [B] default值是沒開啟snmp,看能不能打電話請中華電信幫你開啟 [/B][/QUOTE] 請問一下那如果被換成Speed Touch 340 那可以用嗎?? |
[QUOTE][i]最初由 williamsydu [/i] [B] 請問一下那如果被換成Speed Touch 340 那可以用嗎?? [/B][/QUOTE] Speed Touch 340這台我不知道有沒有,不過我知道zyxel 642那台有, 而且預設值是已開啟snmp |
[QUOTE][i]最初由 cflin [/i] [B] Speed Touch 340這台我不知道有沒有,不過我知道zyxel 642那台有, 而且預設值是已開啟snmp [/B][/QUOTE] 哪請較一下 zyxel 642R第五批的community是啥麼... |
ZyXEL的全系列SNMP Community都是public 如果您不知道您系統的SNMP Community.. 都可以用public來試試.. 因為那是Default值. |
所有時間均為 +8。現在的時間是 11:59 PM。 |
XML | RSS 2.0 | RSS |
本論壇所有文章僅代表留言者個人意見,並不代表本站之立場,討論區以「即時留言」方式運作,故無法完全監察所有即時留言,若您發現文章可能有異議,請 email :[email protected] 處理。