CentOS 6.6 架設ntopng網路流量監控伺服器

來源:互聯網
上載者:User

標籤:ntop ntopng jper iperf 網路 流量 監控



教程目的:架設ntopng網路流量監控伺服器
日    期:2015年08月20日
聯絡郵箱:[email protected]
Q Q  群:1851 15701
51CTO部落格首頁:http://990487026.blog.51cto.com
開源社區,有你更精彩!


簡介
因ntop網路流量監控工具,不能夠直觀的看到是什麼裝置在哪個子網使用什麼協議與連接埠從哪兒來要到哪兒去,採用開源軟體ntopng可以解決這個問題。


硬體準備:
1,ntop伺服器需要兩塊網卡
2,如果公司存在多個網段,那麼請把交換器所有連接埠的流量映射到eth0的這個網卡端
3,eth1網卡用來訪問ntop的web頁面
       
       DEVICE=eth0
       HWADDR=90:2B:34:DD:**:**
       TYPE=Ethernet
       UUID=9728a861-a7e5-44a2-8e5a-************
       ONBOOT=yes
       NM_CONTROLLED=yes
       BOOTPROTO=static
       IPADDR=192.168.**.**
       NETMASK=255.255.**.**
       #GATEWAY=192.168.**.**
       DNS1=192.168.**.**
       
       
       
       DEVICE=eth1
       HWADDR=00:E0:4C:B8:**:**
       TYPE=Ethernet
       ONBOOT=yes
       NM_CONTROLLED=yes
       BOOTPROTO=static
       IPADDR=192.168.**.**
       NETMASK=255.255.**.**
       GATEWAY=192.168.**.**
       DNS1=192.168.**.**



系統內容:
  CentOS 6.6 X64 Dektopa案頭安裝,安裝 Development tools

軟體準備:

-rw-r--r--. 1 root root  35M 8月   6 10:30 ntopng-2.0.tar.gz

所需檔案大家可以在以下網站直接搜尋得到,或者直接去官網
http://www.wangpansou.cn/推薦
https://github.com/
http://sourceforge.net
http://search.cpan.org/
http://www.filewatcher.com/


==============================================================

1.下載安裝 EPEL 安裝源
wget http://download.fedoraproject.org/pub/epel/5/x86_64/epel-release-5-4.noarch.rpm
rpm -ivh epel-release-5-4.noarch.rpm


2.把這些包全部安裝,不然會報錯。
yum install libpcap-devel glib2-devel GeoIP-devel libxml2-devel
libxml2-devel redis autoconf automake sqlite-devel
最後 3 個非常重要 autoconf automake sqlite-devel


3.下載 ntopng2.0 tar.gz
 cd ntopng2.0
  ./autogen.sh
  執行./configure 後會提示執行
You are now ready to compile typing /usr/bin/gmake
Please do not forget to download GeoIP databases doing: /usr/bin/gmake geoip
這是連網下載 ip 資料庫


執行 /usr/bin/gmake geoip
然後就是 make&make install 編譯過程比較長。


5.設定檔的修改
需要添加設定檔,
mkdir /etc/ntopng/
vim /etc/ntopng/ntopng.conf
-G=/var/tmp/ntopng.gid
--local-networks=192.168.0.0/24,192.168.5.0/24,192.168.6.0/24,192.168.200.0/24,192.168.1.0/24,192.168.9.0/24,192.168.60.0/24,192.168.10.0/24,192.168.12.0/24,192.168.2.0/24
--interface=eth0
--dns-mode=1
-w=3000
-D=all
-E=all
-S=all
--user=root
-F=db
========設定檔結束===============================

--local-networks 是子網


6.啟動 ntopng之前先啟動 redis
/etc/init.d/redis start

啟動ntopng      & 後台運行
/usr/local/bin/ntopng /etc/ntopng/ntopng.conf &

7.登陸
http://IP:3000
Username: admin
Password : admin




CentOS 6.6 架設ntopng網路流量監控伺服器

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.