64-bit CentOS 6.4 install network monitoring ntopng

Source: Internet
Author: User
Tags rrdtool

64-bit CentOS 6.4 install network monitoring ntopng

64-bit CentOS 6.4 install network monitoring ntopng

1. Configure the default yum Source

Experiment uses Alibaba Images

1. Backup

Mv/etc/yum. repos. d/CentOS-Base.repo/etc/yum. repos. d/CentOS-Base.repo.def

2. download the new CentOS-Base.repo to/etc/yum. repos. d/

CentOS 5

Wget-O/etc/yum. repos. d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-5.repo

CentOS 6

Wget-O/etc/yum. repos. d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-6.repo

3. Run yum makecache to generate the cache.

2. Install the epel source and provide the domestic Image

1. Download and install

Wget http://dl.Fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm

Chmod u + x epel-release-6-8.noarch.rpm

Rpm-ivh epel-release-6-8.noarch.rpm

2. Backup (if other epel sources are configured)

Mv/etc/yum. repos. d/epel. repo/etc/yum. repos. d/epel. repo. backup

Mv/etc/yum. repos. d/epel-testing.repo/etc/yum. repos. d/epel-testing.repo.backup

3. download the new repo to/etc/yum. repos. d/

Epel (RHEL 6)

Http://mirrors.aliyun.com/repo/epel-6.repo wget-O/etc/yum. repos. d/epel. repo

3. Install dependency Libraries

Yum install libpcap-devel glib2-devel GeoIP-devel libxml2-devel libxml2-devel redis wget rrdtool

Download and install libzmq3, website: http://rpm.pbone.net/index.php3/stat/4/idpl/23532429/dir/centos_6/com/libzmq3-3.2.2-5.1.x86_64.rpm.html

Wget ftp://ftp.pbone.net/mirror/ftp5.gwdg.de/pub/openSUSE/repositories/home:/jblunck:/messaging/CentOS_CentOS-6/x86_64/libzmq3-3.2.2-5.1.x86_64.rpm

Chmod u + x libzmq3-3.2.2-5.1.x86_64.rpm

Rpm-ivh libzmq3-3.2.2-5.1.x86_64.rpm

Solve the following error:

[Root @ net1 ~] # Rpm-ivh ntopng-1.2.2-8420.x86_64.rpm

Warning: ntopng-1.2.2-8420.x86_64.rpm: Header V4 DSA/SHA1 Signature, key ID 7921df34: NOKEY

Error: Failed dependencies:

Librrd. so.4 () (64bit) is needed by ntopng-1.2.2-8420.x86_64

Libzmq. so.3 () (64bit) is needed by ntopng-1.2.2-8420.x86_64

Rrdtool> = 1.3.8 is needed by ntopng-1.2.2-8420.x86_64

4. install and configure ntopng

1. Download

Website: http://www.nmon.net/packages/rpm/x86_64/

Wget http://www.nmon.net/packages/rpm/x86_64/ntopng/ntopng-1.2.2-8420.x86_64.rpm

Wget http://www.nmon.net/packages/rpm/x86_64/ntopng-data/ntopng-data-1.2.2-8420.noarch.rpm

2. Installation

Chmod u + x ntopng-1.2.2-8420.x86_64.rpm ntopng-data-1.2.2-8420.noarch.rpm

Rpm-ivh ntopng-1.2.2-8420.x86_64.rpm

Rpm-ivh ntopng-data-1.2.2-8420.noarch.rpm

5. Configure ntopng

1. view the default configuration file

[Root @ net1 ~] # Cd/etc/ntopng/

[Root @ net1 ntopng] # ls

Ntopng. conf. sample ntopng. start

Note: The ntopng. conf. sample file is a configuration file sample, and ntopng. start is the configuration file required for ntopng startup (the ntopng version of the test is empty ).

[Root @ net1 ntopng] # cat ntopng. conf. sample

-G =/var/tmp/ntopng. gid

Note:-G specifies the process number file used for running.

The modified content is as follows:

[Root @ net1 ntopng] # cat ntopng. conf

-G =/var/tmp/ntopng. pid

-- Local-networks "10.1.1.0/24"

-- Interface eth1

-- User nobody

-- Http-port 8888

Note: -- local-network "specifies the local subnet segment"; -- interface eth1 specifies the traffic listening on the eth1 Nic; -- user z specifies that the account used for ntopng running is nobody; -- http-port indicates that the web Service port is 8888. If this parameter is not specified, the default value is 3000.

6. Start ntopng

Note: before running ntopng, make sure to start the redis service first. redis provides key-value storage for ntopng. Restart the redis service.

Service redis start

Service ntopng start

7. Test Access

Http:/// IP: 8888

The default username and password are admin.

Configure the Web-based network traffic monitoring system ntopng on Linux

Ntopng of Linux real-time network traffic monitoring tool

Network Traffic Monitoring ntopng

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

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.