抓不到TX的流量 - PCZONE 討論區

返回   PCZONE 討論區 > ▲ -- 電 腦 軟 體 討 論 區 > -- FreeBSD & Linux 討 論 版


PCZONE 討論區



通知

-- FreeBSD & Linux 討 論 版 因為本站採用 FreeBSD 作業系統,所以自己本身也多學了一些技巧,希望各位在這裡互相討論 Unix 作業系統及程式等相關問題。

會員
抓不到TX的流量
在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/

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

回覆
會員
回覆: 抓不到TX的流量
是跑 1GBps 速度嗎? 是的話有可能是網路線的問題,
可以嘗試做近距離的兩台電腦網卡對接測試,或縮短距離的hub測試.

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

對了!有在其他的OS上測試過了嗎??
回覆
會員
回覆: 抓不到TX的流量
iftop -i eth0 (如果有裝iftop的話)
至少會到到eth0有各個點的連線流量

如果真的畫不出圖,有可能是SNMP沒啟動或噴掉...
可以改用cacti去畫圖及抓資料試試
回覆
會員
回覆: 抓不到TX的流量
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 的
回覆
會員
回覆: 抓不到TX的流量
MRTG的第一步是cfgmaker
有eth0的相關資料顯示吧?
回覆
會員
回覆: 抓不到TX的流量
### 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~

看不出甚麼問題
回覆
會員
回覆: 抓不到TX的流量
現在看你的MRTG圖似乎又很正常?

改用cacti試試吧,MRTG以前用過,後來用了cacti後就不再用了
反正Fedora就yum install cacti 就好了 XD
當然記得要把資料庫丟進去,Crontable記得要開啟..
回覆
會員
回覆: 抓不到TX的流量
引用:
作者: tvirus 觀看文章
現在看你的MRTG圖似乎又很正常?

改用cacti試試吧,MRTG以前用過,後來用了cacti後就不再用了
反正Fedora就yum install cacti 就好了 XD
當然記得要把資料庫丟進去,Crontable記得要開啟..
沒有正常阿
Out 0.0 B/s (0.0%) 0.0 B/s (0.0%) 0.0 B/s (0.0%)
Out 全部是0
cacti 晚一點試試~ 在上來跟大家報告



============
剛剛裝好了

eth0 還是抓不到OUT的流量




但是lo抓的到

上傳的圖檔
檔案類型: jpg eth0.jpg (16.6 KB, 49 次觀看)
檔案類型: jpg lo.jpg (15.8 KB, 48 次觀看)

此篇文章於 2009-02-07 04:07 PM 被 lionel_lo 編輯。.
回覆
會員
回覆: 抓不到TX的流量
你的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
回覆
會員
回覆: 抓不到TX的流量
引用:
作者: tvirus 觀看文章
你的snmpd.conf內容是?
詳見附件

我只加了
view systemview included .1.3.6.1.2.1.2

上傳的附加檔案
檔案類型: txt snmpd.conf.txt (18.2 KB, 7 次觀看)
回覆







 XML   RSS 2.0   RSS 
本站使用 vBulletin 合法版權程式
站務信箱 : [email protected]

本論壇所有文章僅代表留言者個人意見,並不代表本站之立場,討論區以「即時留言」方式運作,故無法完全監察所有即時留言,若您發現文章可能有異議,請 email :[email protected] 處理。