14.03.2014 Views

การติดตั้ง NTOP บน Linux Server by Mr.Jodoi

การติดตั้ง NTOP บน Linux Server by Mr.Jodoi

การติดตั้ง NTOP บน Linux Server by Mr.Jodoi

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>การติดตั้ง</strong> <strong>NTOP</strong> <strong>บน</strong> <strong>Linux</strong> <strong>Server</strong> <strong>by</strong> <strong>Mr</strong>.<strong>Jodoi</strong><br />

Traffic<br />

Internet ของ User ครับ<br />

<strong>NTOP</strong> is a network traffic probe that shows the network usage <br />

การเก็บ Traffic Internet ของ User ครับ <br />

Internet log <strong>NTOP</strong> นั้นมี<br />

file .tar.gz <br />

RHEL <strong>Linux</strong> 5.x และ CentOS <strong>Linux</strong> 5.x ผมทดลองติดตั้ง<strong>บน</strong> <strong>Linux</strong> CentOS 5.2<br />

file ntop.tar.gz <strong>Linux</strong> wget<br />

<br />

[root@jodoi-server opt]# wget<br />

http://freshmeat.net/redir/ntop/7279/url_tgz/ntop-3.3.8.tar.gz<br />

หลังจากนั้นก็ทําการแตก file<br />

[root@jodoi-server opt]# tar -zxvf ntop-3.3.8.tar.gz<br />

<strong>การติดตั้ง</strong> <strong>NTOP</strong> RRDTool และ libpcap <br />

command yum <br />

<strong>การติดตั้ง</strong> libcap<br />

[root@jodoi-server ntop-3.3.8]# yum install libpcap-devel libpcap<br />

<strong>การติดตั้ง</strong> RRDTool ทําดังนี้ครับ<br />

RRDTool yum <br />

เอง


[root@jodoi-server ntop-3.3.8]# yum install cairo-devel libxml2-devel<br />

pango-devel pango libpng-devel freetype freetype-devel libart_lgpldevel<br />

หา file rrdtool.tar.gz file ตาม<br />

<br />

[root@jodoi-server opt]# wget<br />

http://oss.oetiker.ch/rrdtool/pub/rrdtool-1.3.4.tar.gz<br />

[root@jodoi-server opt]# tar -zxvf rrdtool-1.3.4.tar.gz<br />

[root@jodoi-server rrdtool-1.3.4]# cd rrdtool-1.3.4<br />

RRDTool command make และ make install <br />

run command ./configure <br />

[root@jodoi-server rrdtool-1.3.4]# ./configure<br />

[root@jodoi-server rrdtool-1.3.4]# make<br />

[root@jodoi-server rrdtool-1.3.4]# make install<br />

<strong>NTOP</strong> หลังจากที่เรา แตก file ntop-3.3.8.tar.gz cd<br />

ntop-3.3.8 และ run command ./autogen.sh <br />

[root@jodoi-server ntop-3.3.8]# ./autogen.sh<br />

error rrdtool option with <br />

[root@jodoi-server ntop-3.3.8]# ./configure --with-rrdhome=/usr/local/rrdtool-1.3.4/


command make และ make install <br />

<br />

[root@jodoi-server ntop-3.3.8]# make<br />

[root@jodoi-server ntop-3.3.8]# make install<br />

make install-data-as และเปลี่ยน owner ntop<br />

user ntop <br />

[root@jodoi-server ntop-3.3.8]# make install-data-as<br />

[root@jodoi-server ntop-3.3.8]# useradd ntop<br />

[root@jodoi-server ntop-3.3.8]# chown ntop:ntop<br />

/usr/local/share/ntop/<br />

password ของ ntop โดย user admin<br />

[root@jodoi-server ntop-3.3.8]# ntop -A<br />

Start ntop <br />

[root@jodoi-server ntop-3.3.8]# /usr/local/bin/ntop -d -L -u ntop -P<br />

/usr/local/var/ntop --skip-version-check --use-syslog=daemon<br />

start file /etc/rc.local นะครับ<br />

start ntop port 3000 run <br />

[root@jodoi-server ~]# netstat -tanp|grep 3000<br />

tcp 0 0 ::::::::::::::::::: :3000 ::::::::::::::::::::* LISTEN 32145/ntop<br />

<strong>NTOP</strong> browser http://:3000 <br />

http://192.168.1.220:3000/


เมนูที่แนะนํานะครับ คือ Plugins RRD<br />

Graph ที่จะแสดง


หวั<br />

<br />

http://www.ntop.org/download.html<br />

http://oss.oetiker.ch/rrdtool/pub/<br />

http://www.cyberciti.biz/faq/howto-install-ntop-on-rhel-centos-fedora-linux/<br />

http://www.cyberciti.biz/faq/howto-install-rrdtool-on-rhel-linux/


300/1 20 10900<br />

0-2938-6583 ,0-2938-6239 0-2938-6239<br />

Hotline : 081-499-1807, 081-916-5773 , 089005-3124<br />

www.jodoi.com

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!