LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
楼主: cnyzj

谁有debian的网络流量监控软件

[复制链接]
发表于 2006-3-30 14:50:06 | 显示全部楼层
运行:
/etc/init.d/ntop start
停止:
/etc/init.d/ntop stop

查看:
http://IP:3000
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-4-3 08:44:44 | 显示全部楼层
谢谢,还有什么高招。好象很占内存!
回复 支持 反对

使用道具 举报

发表于 2006-4-3 09:26:49 | 显示全部楼层
在root下运行
ifconfig -a
可以看到每个网卡发送和接收的字节数
回复 支持 反对

使用道具 举报

发表于 2006-4-3 09:41:23 | 显示全部楼层
在启动参数中设置 -m 你需要监测的子网,然后加上-g 的参数,目的是只记录子网内的主机。
如果你的主机很多的话,还是会占用很多内存的。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-4-4 10:53:34 | 显示全部楼层
Post by springwind426
运行:
/etc/init.d/ntop start
停止:
/etc/init.d/ntop stop

查看:
http://IP:3000

cnyzj-debian:~# ntop --set-admin-password
NOTE: --set-admin-password requested, no password.  Did you forget the =?
Tue Apr  4 10:50:51 2006  Initializing gdbm databases
Tue Apr  4 10:50:51 2006  Now running as requested user '(null)' (0:0)

Please enter the password for the admin user:
Please enter the password again:
Tue Apr  4 10:50:59 2006  Admin user password has been set
cnyzj-debian:~# /etc/init.d/ntop start
Starting network top daemon: ntop not started. Read /usr/share/doc/ntop/README.Debian.
cnyzj-debian:~# /etc/init.d/ntop restart
Stopping network top daemon: start-stop-daemon: user `admin' not found

ntop
Starting network top daemon: ntop not started. Read /usr/share/doc/ntop/README.Debian.
请问是什么原因!谢谢
回复 支持 反对

使用道具 举报

发表于 2006-4-4 11:07:48 | 显示全部楼层
以root用户的身份:
cd /var/lib/ntop
chown ntop *
ntop -A
两次输入admin的密码
/etc/init.d/ntop start
http://localhost:3000就可以访问并控制了。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-4-4 15:24:09 | 显示全部楼层
谢谢,问题解决,总结如下:
apt-get install ntop  #安装
ntop --set-admin-password  #设置用户admin的密码
/etc/init.d/ntop start #启动
现在有问题如下:
浏览历史数据用IP:3000端口。此端口怎么修改,在哪个配置文件中,还是可以通过dpkg修改。
回复 支持 反对

使用道具 举报

发表于 2006-4-4 16:28:08 | 显示全部楼层
启动参数 -w 端口号
或者在web界面->admin->config->"startup options"中修改
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-4-4 16:49:28 | 显示全部楼层
Post by springwind426
启动参数 -w 端口号
或者在web界面->admin->config->"startup options"中修改

有疑问:
cnyzj-debian:~# /etc/init.d/ntop start -w 8888
Starting network top daemon: ntop
cnyzj-debian:~#
启动正常
但端口还是3000用8888无法连接
admin->为
   Admin:  Plugins  |   Switch NIC  |   Dump Data  |   Log  |   ChangeFilter secured URL  |   Reset Stats secured URL  |   Users secured URL  |   URLs secured URL  |   Shutdown secured URL
我ntop版本为
Generated by ntop v.3.0 SourceForge .tgz MT (SSL) [i686-pc-linux-gnu]
Build: Jan 30 2005 22:53:23. Listening on [eth1] without a kernel (libpcap) filtering expression
是否版本太低!谢谢
回复 支持 反对

使用道具 举报

发表于 2006-4-4 17:05:36 | 显示全部楼层
修改/etc/default/ntop
# This file will normally include the debconf template but you can disable
# that and use this file only.

. /var/lib/ntop/init.cfg
GETOPT="-w 8888"
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表