Knowledgebase

Installing ntopng on CWP

How to Install

yum install -y subversion autoconf automake make gcc tcpdump libpcap-devel libxml2-devel sqlite-devel libtool glib2-devel gcc-c++ libmaxminddb-devel
yum --enablerepo=epel install redis -y
useradd -d /var/lib/ntopng ntopng
mkdir -p /etc/ntopng

 

Install Supported dependency

cd /usr/local/src
git clone https://github.com/ntop/nDPI.git
cd nDPI
./autogen.sh
make

 

Install Ntopng

cd /usr/local/src
git clone https://github.com/ntop/ntopng.git
cd ntopng
./autogen.sh
./configure
make
make install
/usr/bin/gmake geoip

 

Setup Additional requirements

cp /usr/local/src/ntopng/httpdocs/misc/ntopng-utils-manage-config /usr/bin/ntopng-utils-manage-config

 

Copy and paste all lines not one by one.

cat > /etc/ntopng/ntopng.conf << "EOF"
-G=/var/run/ntopng.pid
-d=/var/lib/ntopng
-w=3000
-i=any
-1=/usr/local/src/ntopng/httpdocs
-2=/usr/local/src/ntopng/scripts
EOF

 

Setup Startup Service

centos 6

cp /usr/local/src/ntopng/packages/etc/init.d/ntopng /etc/init.d/ntopng
touch /etc/ntopng/ntopng.start
ln -s /usr/local/bin/ntopng /usr/bin/ntopng

centos 7

cp /usr/local/src/ntopng/packages/etc/systemd/system/ntopng.service /usr/lib/systemd/system/ntopng.service

 

Start Services

service redis start
service ntopng start

  • 0 Users Found This Useful
Was this answer helpful?