142536a 发表于 2019-1-26 12:29:17

ntopng

  ntopng是原ntop下一代版本,网络流量实时监控显示。ntop是基于Libpcap和它被写在一个可移植的方式来运行在UNIX平台上,MacOSX和Win32一样
  ntopng用户可以使用一个网页浏览器浏览的NTOP(即作为一个Web服务器)交通信息和得到网络状态转储。在后一种情况下,ntop可以看出具有一个嵌入式网络接口作为一个简单的的类远程监控剂。使用:
  一个网络接口
  有限的通过Web界面的配置和管理。
  降低CPU和内存使用率(根据网络规模和流量而有所不同)
  实验环境
  centos6.8_x64
  实验软件
  epel-release-6-8.noarch.rpm
  ntopng-1.1_6932.tgz
  
  软件安装
  rpm -ivh epel-release-6-8.noarch.rpm
  yum install -y gcc gcc-c++ libpcap-devel*libxml2-devel* glib2-devel* redis*
  tar zxvf ntopng-1.1_6932.tgz
  cd ntopng-1.1_6932
  ./configure
  gmake
  make install
  mkdir /etc/ntopng
  touch /etc/ntopng/ntopng.conf
  vim /etc/ntopng/ntopng.conf
  -G=/var/tmp/ntopng.gid         制定pid文件目录
  --local-networks=服务器IP/24   监控网段 192.168.100.0/24,192.168.200.0/24多网段写法
  --interface=eth0             监听本地网卡
  --user=nobody
  --http-port=3000             默认端口可以修改
  service redis restart

  /usr/local/bin/ntopng /etc/ntopng/ntopng.conf &
  chkconfig--level 35 redis on
  netstat -tuplna | grep ntopng
  tcp      0      0 0.0.0.0:3000                0.0.0.0:*                   LISTEN      15797/ntopng      
  tcp      0      0 127.0.0.1:49994             127.0.0.1:6379            ESTABLISHED 15797/ntopng
  netstat -tuplna | grep redis
  tcp      0      0 127.0.0.1:6379            0.0.0.0:*                   LISTEN      15762/redis-server
  

  
  ps -aux | grep redis
  Warning: bad syntax, perhaps a bogus '-'? See /usr/share/doc/procps-3.2.8/FAQ
  redis    157620.00.0399406992 ?      Ssl10:57   0:00 /usr/sbin/redis-server /etc/redis.conf
  root   157830.00.0 103256   896 pts/0    S+   10:58   0:00 grep redis
  

  
  ps -aux | ntopng
  Warning: bad syntax, perhaps a bogus '-'? See /usr/share/doc/procps-3.2.8/FAQ
  21/Apr/2017 11:00:59 Setting local networks to 192.168.1.0/24,0.0.0.0/32,224.0.0.0/8,239.0.0.0/8,255.255.255.255/32,127.0.0.0/8
  21/Apr/2017 11:00:59 WARNING: No capture interface specified
  21/Apr/2017 11:00:59 Available interfaces (-i ):
  21/Apr/2017 11:00:59 1.(eth0)
  21/Apr/2017 11:00:59 2. Linux netfilter log (NFLOG) interface (nflog)
  21/Apr/2017 11:00:59 3. Linux netfilter queue (NFQUEUE) interface (nfqueue)
  21/Apr/2017 11:00:59 4. USB bus number 1 (usbmon1)
  21/Apr/2017 11:00:59 5. Pseudo-device that captures on all interfaces (any)
  21/Apr/2017 11:00:59 6.(lo)
  21/Apr/2017 11:00:59 Reading packets from interface eth0...
  21/Apr/2017 11:00:59 Registered interface eth0
  21/Apr/2017 11:00:59 User changed to nobody
  21/Apr/2017 11:00:59 PID stored in file /var/tmp/ntopng.pid
  

  http://serverip:3000
http://s3.运维网.com/wyfs02/M01/23/F9/wKiom1NIvk2QAo_6AAEcNPWDpFE486.jpg
  用户名admin
  密码   admin
https://s5.运维网.com/wyfs02/M00/91/EB/wKiom1j5drGwoEz1AAEWM5zZdGk986.png-wh_500x0-wm_3-wmp_4-s_264815114.png



页: [1]
查看完整版本: ntopng