ntop配置指南

发表于:2007-05-25来源:作者:点击数: 标签:ntop是在配置关键简单
很简单,关键是在/etc/ntop.conf 加入 --http-server 3000 --domain hk.newsky.cn 即可 1.下载 ftp://ftp.freshrpms.net/pub/dag/packages/ntop/ntop-3.1-1.1.el3.rf.i386.rpm 2.安装 rpm -ivh ntop-3.1-1.1.el3.rf.i386.rpm 3.配置 #vi /etc/ntop.conf 加入
很简单,关键是在/etc/ntop.conf 加入
--http-server 3000
--domain hk.newsky.cn
即可

1.下载
ftp://ftp.freshrpms.net/pub/dag/packages/ntop/ntop-3.1-1.1.el3.rf.i386.rpm

2.安装
rpm -ivh ntop-3.1-1.1.el3.rf.i386.rpm

3.配置
#vi /etc/ntop.conf
加入
--http-server 3000
--domain hk.newsky.cn

4.设定admin密码
[root@hkweb root]# ntop -A
Tue Jul 26 15:06:54 2005  Initializing gdbm databases
 
Please enter the password for the admin user:
Please enter the password again:
Tue Jul 26 15:07:06 2005  Admin user password has been set

5.启动
[root@hkweb root]# /etc/init.d/ntop start
Starting ntop:                                             [  OK  ]
注:如果/etc/init.d/ntop start无法启动,则可以用ntop -d命令启动

6.访问
http://202.96.155.37:3000/

参考:http://www.linuxaid.com.cn/articles/7/1/712517868.shtml
     http://www.weithenn.idv.tw/cgi-bin/wiki.pl/Ntop-%e6%b5%81%e9%87%8f%e6%aa%a2%e6%b8%ac%e5%8f%8a%e5%b0%81%e5%8c%85%e8%be%a8%e8%ad%98%e7%9a%84%e7%b6%b2%e7%ae%a1%e8%bb%9f%e9%ab%94

附:我的/etc/ntop.conf文件
[root@hkweb root]# cat /etc/ntop.conf
###  You should copy this file to it's normal location, /etc/etc/ntop.conf
###  and edit it to fit your needs.
###
###       ntop is easily launched with options by referencing this file from
###       a command line like this:
###
###       ntop @/etc/ntop.conf
###
###  Remember, options may also be listed directly on the command line, both
###  before and  after the @/etc/ntop.conf.
###
###  For switches that provide values, e.g. -i, the last one matters.
###  For switches just say 'do things', e..g -M, if it's ANYWHERE in the
###  commands, it will be set.  There's no unset option.
###
###  You can use this to your advantage, for example:
###       ntop @/etc/ntop.conf -i none
###  Overrides the -i in the file.
 
### Sets the user that ntop runs as. 
###  NOTE: This should not be root unless you really understand the security risks.
--user ntop
 
### Sets the directory that ntop runs from.
--db-file-path /var/ntop
 
### Interface(s) that ntop will capture on (default: eth0)
#--interface eth0
 
### Configures ntop not to trust MAC addrs.  This is used when port mirroring or SPAN
#--no-mac
 
### Logging messages to syslog (instead of the console):
###  NOTE: To log to a specific facility, use --use-syslog=local3
###  NOTE: The = is REQUIRED and no spaces are permitted.
--use-syslog
 
### Tells ntop to track only local hosts as specified by the --local-subnets option
#--track-local-hosts
 
### Sets the port that the HTTP webserver listens on
###  NOTE: --http-server 3000 is the default
--http-server 3000
 
### Sets the port that the optional HTTPS webserver listens on
#--https-server 3001
 
### Sets the networks that ntop should consider as local. 
###  NOTE: Uses dotted decimal and CIDR notation. Example: 192.168.0.0/24
###        The addresses of the interfaces are always local and don't need to be specified.
#--local-subnets xx.xx.xx.xx/yy
 
### Sets the domain.  ntop should be able to determine this automatically.
--domain hk.newsky.cn
 
### Sets program to run as a daemon
###  NOTE: For more than casual use, you probably want this.
#--daemon

 

原文转自:http://www.ltesting.net