Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

64-bit CentOS 6.4.How to install and configure the traffic monitoring tool ntopng

2025-02-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article will explain in detail how to install and configure the traffic monitoring tool ntopng for 64-bit CentOS 6.4. the content of the article is of high quality, so the editor shares it for you as a reference. I hope you will have a certain understanding of the relevant knowledge after reading this article.

Ntopng is a real-time monitoring and display tool for network traffic, which can automatically identify useful information from the network. Many people have a lot of problems during installation.

64-bit CentOS 6.4 install Network Monitoring ntopng

1. Configure the default yum source

The experiment uses Ali's mirror image.

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. Then run yum makecache to generate the cache

2. Install the epel source and give it to the domestic image

1. Download and install

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

Chmod upright 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)

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

3. Install dependent libraries

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

Download and install libzmq3 at 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 upright x libzmq3-3.2.2-5.1.x86_64.rpm

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

Resolve the following errors:

[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 uplix 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 that the ntopng.conf.sample file is a sample configuration file, and ntopng.start is the configuration file needed when ntopng starts (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 to run.

The modified content is as follows:

[root@net1 ntopng] # cat ntopng.conf

-G=/var/tmp/ntopng.pid

-- local-networks "10.1.1.0 Compact 24"

-- interface eth2

-- user nobody

-- http-port 8888

Note:-- local-network "specifies the local subnet segment";-- interface eth2 specifies to monitor the traffic on the eth2 Nic;-- user z specifies that the account under which ntopng runs is nobody;-- http-port specifies that the web service port is 8888. If it is not specified, it defaults to 3000.

6. Start ntopng

Note: before running ntopng, make sure that the redis service is started, and redis provides key-value storage for ntopng. Let's restart the redis service here.

Service redis start

Service ntopng start

7. Test and visit

Http://IP:8888

The default user name and password is admin.

On 64-bit CentOS 6.4 how to install and configure traffic monitoring tool ntopng to share here, I hope the above content can be of some help to you, you can learn more knowledge. If you think the article is good, you can share it for more people to see.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report