抓不到TX的流量



贊助商連結


頁 : [1] 2

lionel_lo
2009-02-06, 05:10 PM
在SERVER試過各種軟體

都抓不到eth0 TX的流量

本身也只有一張網卡

OS:Fedora 9
內建的網卡 者基本是GIGA的965P-DS3

bwm-ng v0.6 (probing every 0.500s), press 'h' for help
input: /proc/net/dev type: rate
/ iface Rx Tx Total
==============================================================================
lo: 0.00 KB/s 0.00 KB/s 0.00 KB/s
eth0: 60.07 KB/s 0.00 KB/s 60.07 KB/s
------------------------------------------------------------------------------
total: 60.07 KB/s 0.00 KB/s 60.07 KB/s

MRTG可以看這
http://hepo.mine.nu:65500/mrtg/

有那位大大知道怎麼回事嗎?

贊助商連結


blueno
2009-02-06, 06:04 PM
是跑 1GBps 速度嗎? 是的話有可能是網路線的問題,
可以嘗試做近距離的兩台電腦網卡對接測試,或縮短距離的hub測試.

測試時使用3公尺內且符合 cat.5e or cat.6 的網路線與接頭.

對了!有在其他的OS上測試過了嗎??

tvirus
2009-02-06, 06:07 PM
iftop -i eth0 (如果有裝iftop的話)
至少會到到eth0有各個點的連線流量

如果真的畫不出圖,有可能是SNMP沒啟動或噴掉...
可以改用cacti去畫圖及抓資料試試

lionel_lo
2009-02-06, 08:53 PM
TX: cumm: 21.7MB peak: 2.19Mb rates: 2.13Mb 2.11Mb 1.79Mb
RX: 4.82MB 438Kb 376Kb 411Kb 391Kb
TOTAL: 26.6MB 2.61Mb 2.49Mb 2.51Mb 2.17Mb


=================

iftop抓的到
bwm抓不到
mrtg抓不到~

所以是snmp的問題?

網路應該是1G的沒錯
網路線是1.5公尺 cat.5e 的

tvirus
2009-02-06, 08:54 PM
MRTG的第一步是cfgmaker
有eth0的相關資料顯示吧?

lionel_lo
2009-02-07, 01:50 PM
### Interface 2 >> Descr: 'eth0' | Name: '' | Ip: '' | Eth: '00-1f-c6-c1-2b-5b' ###

Target[127.0.0.1_2]: 2:[email protected]:
SetEnv[127.0.0.1_2]: MRTG_INT_IP="" MRTG_INT_DESCR="eth0"
MaxBytes[127.0.0.1_2]: 12500000
Title[127.0.0.1_2]: Traffic Analysis for 2 -- cs.hepo.mine.nu
PageTop[127.0.0.1_2]: <h1>Traffic Analysis for 2 -- cs.hepo.mine.nu</h1>
<div id="sysdetails">
<table>
<tr>
<td>System:</td>
<td>cs.hepo.mine.nu in Unknown (edit /etc/snmp/snmpd.conf)</td>
</tr>
<tr>
<td>Maintainer:</td>
<td>Root &lt;root@localhost&gt; (configure /etc/snmp/snmp.local.conf)</td>
</tr>
<tr>
<td>Description:</td>
<td>eth0 </td>
</tr>
<tr>
<td>ifType:</td>
<td>ethernetCsmacd (6)</td>
</tr>
<tr>
<td>ifName:</td>
<td></td>
</tr>
<tr>
<td>Max Speed:</td>
<td>12.5 MBytes/s</td>
</tr>
</table>
</div>


以上是eth0的CFG~

看不出甚麼問題:eye:

tvirus
2009-02-07, 02:03 PM
現在看你的MRTG圖似乎又很正常?

改用cacti試試吧,MRTG以前用過,後來用了cacti後就不再用了
反正Fedora就yum install cacti 就好了 XD
當然記得要把資料庫丟進去,Crontable記得要開啟..

lionel_lo
2009-02-07, 02:28 PM
現在看你的MRTG圖似乎又很正常?

改用cacti試試吧,MRTG以前用過,後來用了cacti後就不再用了
反正Fedora就yum install cacti 就好了 XD
當然記得要把資料庫丟進去,Crontable記得要開啟..

沒有正常阿:eye:
Out 0.0 B/s (0.0%) 0.0 B/s (0.0%) 0.0 B/s (0.0%)
Out 全部是0
cacti 晚一點試試~ 在上來跟大家報告



============
剛剛裝好了
http://www.pczone.com.tw/attachment.php?attachmentid=17278&stc=1&d=1233993964
eth0 還是抓不到OUT的流量



http://www.pczone.com.tw/attachment.php?attachmentid=17279&stc=1&d=1233993964
但是lo抓的到

tvirus
2009-02-07, 07:37 PM
你的snmpd.conf內容是?
像我的內容只有
syslocation Taiwan
syscontact "[email protected]"
rocommunity public
view systemview included .1.3.6.1.2.1.1
view systemview included .1.3.6.1.2.1.2
view systemview included .1.3.6.1.2.1.25.1.1

lionel_lo
2009-02-08, 09:28 PM
你的snmpd.conf內容是?


詳見附件

我只加了
view systemview included .1.3.6.1.2.1.2