Traffic monitoring, install ntopng

Traffic monitoring, install ntopng

Install
cd /etc/yum.repos.d/ on CentOS Linux release 7.6.1810 (Core) and
move the original repo file to another place for backup.
mv /etc/yum.repos.d/CentOS-Base.repo{,.bak}
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos -7.repo

wget https://packages.ntop.org/centos-stable/ntop.repo -Ontop.repo
yum install epel-release
yum update (note that this software is to upgrade the software and system, please operate with caution)

If you encounter kernel conflicts or file conflicts during the upgrade process, you can use the following commands according to the situation:

yum update --exclude=kernel* --exclude=centos-release* --exclude=initscripts*

If the relevant debugging of the installation package cannot be found during the installation process, you need to check whether the repo.repo file is related again. If the installation still fails, check the relevant content of this file.

If there is a package conflict during the installation process, for example, the following error occurs:

Error: Package: 1:mariadb-5.5.68-1.el7.x86_64 (base)
           Requires: mariadb-libs(x86-64) = 1:5.5.68-1.el7
           Installed: 3:mariadb-libs-10.1.17-1.el7.x86_64 (@repo)
               mariadb-libs(x86-64) = 3:10.1.17-1.el7
           Available: 1:mariadb-libs-5.5.68-1.el7.x86_64 (base)
               mariadb-libs(x86-64) = 1:5.5.68-1.el7
 You could try using --skip-broken to work around the problem

You can use the following methods to solve:

[root@computer1 ~]# rpm -qa|grep -i mariadb
mariadb-config-10.1.17-1.el7.x86_64
mariadb-libs-10.1.17-1.el7.x86_64
mariadb-common-10.1.17-1.el7.x86_64

Then use yum remove mariadb-libs-10.1.17-1.el7.x86_64

Just uninstall the relevant package.

After the upgrade, the operating system becomes CentOS Linux release 7.9.2009 (Core)
yum install -y ntopng ntopng-data
yum install -y redis php-pecl-redis The
configuration file
can be modified in /etc/ntopng/ntopng.conf . Parameter
-m=10.0.208.0/23,10.0.41.0/26
-i=eth2
. Start the ntopng and redis server and also enable the service to start at startup:

systemctl start redis
systemctl enable redis
systemctl restart ntopng
systemctl enable ntopng

http://ip:3000
enter the default user name and password admin admin, the first time you log in, you need to change the password

The article, after testing, has been installed successfully.

Note: When the Huawei switch is doing port mirroring, the traffic entering and exiting the network card can only see the incoming traffic on the monitoring port, but not the outgoing traffic. Therefore, the traffic entering the monitoring port is the sum of the traffic on the inboud and outboud ports.

 

 

Guess you like

Origin blog.csdn.net/wzlsunice88/article/details/112919686