Darkstat是一个优秀的、小巧的网络通信记录程序,它主要是用于在路由器上运行,可以收集网络通信数据,并可将数据导出为HTML网页,并可在其自身的小型HTTP服务器上提供网页,
Darkstat网络通信记录程序 监视你的网络
。经常有人将它与Ntop相比,但Darkstat的作者宣称,它更快,效率更高,因此运行良好,即使在低功率的路由器上工作也不会使其停顿。Darkstat可谓大型的网络监视工具(如MRTG, Munin, Nagios等)的之外的一个选择。它可以快速地对网络活动形成快照图象。不过,你首先需要对Darkstat配置文件/etc/darkstat/init.cfg进行一些修改:
# Turn this to yes when you have configured the options below.
START_DARKSTAT=yes
# Dont forget to read the man page.
# You must set this option, else darkstat may not listen to
# the interface you want
INTERFACE="-i eth0"
PORT="-p 666"
BINDIP="-b 127.0.0.1"
LOCAL="-l 192.168.1.0/24"
FIP="-f 127.0.0.1"
DNS="-n"
#SPY="--spy eth0"
然后,运行:
# /etc/init.d/darkstat start
Starting darkstat network daemon: darkstat.
这时候,你需要给Darkstat几分钟时间来收集统计数据,然后把一个本地浏览器指向http://localhost:666,
电脑资料
《Darkstat网络通信记录程序 监视你的网络》(https://www.unjs.com)。Darkstat就会生成你的网络活动的图形和有关表格。Spy选项可以捕捉HTTP请求,并可以将其记录到darkstat.spylog.YYMMDD(以月日年顺序显示捕捉时间)中。笔者感到,这项功能非常实用。你不妨试试。