Feature #1126

Bandwidth Monitor (NTOP)

Added by Alessio Fattorini about 9 years ago. Updated almost 8 years ago.

Status:CLOSEDStart date:
Priority:NormalDue date:
Assignee:-% Done:

100%

Category:nethserver-ntopng
Target version:v6.4-beta2
Resolution: NEEDINFO:No

Description

Add tool for bandwith usage monitor.
Candidates: http://www.ubuntugeek.com/bandwidth-monitoring-tools-for-linux.html

Best option is Ntop.

yum install ntop
service ntop start

Add ntop configuration to /etc/ntop.conf:

# disable protocol decoders
-b
# don't resolve names
-n
# disable sessione tracking
-z
# disable promisc mode
-s
# track local hosts
-g

# local network configuration
-i eth0
-m 192.168.5.0/24

# try to fix *** glibc detected *** /usr/sbin/ntop: double free or corruption (fasttop):
# with sticky hosts
-c

If someone prefers bandwidthd:

yum install bandwidthd
service bandwidthd restart

The web interface is accessible at http://server//bandwidthd.


Subtasks

Feature #2090: Redis serverCLOSED

Associated revisions

Revision a9f74318
Added by Giacomo Sanchietti about 8 years ago

First import. Refs #1126

Revision 58652eee
Added by Giacomo Sanchietti about 8 years ago

translation: fix typo. Refs #1126

Revision 2485049e
Added by Davide Principi almost 8 years ago

Updated translation for nethserver-bandwidth-monitor group. Refs #1126

Revision 14b69bf4
Added by Davide Principi almost 8 years ago

Add italian description for nethserver-bandwidth-monitor group. Refs #1126

History

#1 Updated by Davide Principi almost 9 years ago

  • Target version set to ~FUTURE

#2 Updated by Davide Principi over 8 years ago

  • Project changed from NethServer 6 to 92

#3 Updated by Davide Principi over 8 years ago

  • Project changed from 92 to NethServer 6

#4 Updated by Filippo Carletti over 8 years ago

  • Assignee set to Filippo Carletti

#5 Updated by Giacomo Sanchietti about 8 years ago

  • Description updated (diff)

#6 Updated by Filippo Carletti about 8 years ago

  • Target version changed from ~FUTURE to v6.4-beta2

#7 Updated by Giacomo Sanchietti about 8 years ago

  • Status changed from NEW to TRIAGED
  • Assignee deleted (Filippo Carletti)
  • % Done changed from 0 to 20

We go with the brand new ntopng.

Repositories with rpm build:

This new release requires Redis as backend.

We should create a proxypass to ntop http port using a random hash url.

#8 Updated by Giacomo Sanchietti about 8 years ago

  • Subject changed from Bandwidth Monitor to Bandwidth Monitor (NTOP)
  • Status changed from TRIAGED to ON_DEV
  • Assignee set to Giacomo Sanchietti
  • % Done changed from 20 to 30

#10 Updated by Giacomo Sanchietti about 8 years ago

Dependencies:
  • GeoIP
  • nethserver-redis

#11 Updated by Giacomo Sanchietti about 8 years ago

  • Status changed from ON_DEV to MODIFIED
  • % Done changed from 30 to 60
Problems encountered:
  • init script doesn't implement status actions, so we can't use standard action adjust-service; a custom action has been created to start and stop ntopng daemon
  • despite official documentation, proxy pass with Apache doesn't correctly work

After installation, ntopng is disabled by default. The user must access the web UI, choose an admin password and enable the service. Ntopng web interface is then accessible from the port specified in the web UI (default is 3000 with public access).

#12 Updated by Giacomo Sanchietti about 8 years ago

  • Status changed from MODIFIED to ON_DEV
  • Assignee deleted (Giacomo Sanchietti)
  • % Done changed from 60 to 30
New package in nethserver-testing:
  • nethserver-ntopng

Test case

  • After package installation, enter the web UI under "Bandwidth monitor" section
  • Enable the service and choose a password for the admin user
  • Check ntopng is running on port 3000 gathering network statistics

During starting process, ntopng will log these lines:

Error Opening file /usr/local/share/ntopng/httpdocs/geoip/GeoIPASNum.dat
Error Opening file /usr/local/share/ntopng/httpdocs/geoip/GeoIPASNumv6.dat
Error Opening file /usr/local/share/ntopng/httpdocs/geoip/GeoLiteCity.dat
Error Opening file /usr/local/share/ntopng/httpdocs/geoip/GeoLiteCityv6.dat

To avoid the errors, just execute /etc/cron.monthly/ntop-update-geodb.
This script will download required databases and restart ntopng daemon.

#13 Updated by Giacomo Sanchietti about 8 years ago

  • Status changed from ON_DEV to MODIFIED
  • % Done changed from 30 to 60

#14 Updated by Giacomo Sanchietti about 8 years ago

  • Status changed from MODIFIED to ON_QA
  • % Done changed from 60 to 70
New package in nethserver-testing:
  • nethserver-ntopng-1.0.1-1

Changes:
- Fix typo in translations
- Also added new yum group nethserver-bandwidth-monitor

#15 Updated by Davide Principi almost 8 years ago

  • Assignee set to Davide Principi

#16 Updated by Davide Principi almost 8 years ago

  • Status changed from ON_QA to VERIFIED
  • Assignee deleted (Davide Principi)
  • % Done changed from 70 to 90

VERIFIED

# rpm -qa | grep -F .ns6
nethserver-php-1.1.0-1.ns6.noarch
nethserver-smartd-1.0.0-1.ns6.noarch
nethserver-yum-1.1.1-1.ns6.noarch
postfix-2.9.6-2.ns6.x86_64
nethserver-base-1.4.0-12.0git855f8d09.ns6.noarch
nethserver-redis-1.0.0-1.ns6.noarch
nethserver-httpd-admin-1.0.4-1.ns6.noarch
nethserver-grub-1.0.1-1.ns6.noarch
nethserver-openssh-1.0.2-1.ns6.noarch
nethserver-lib-1.3.1-1.ns6.noarch
nethserver-ntp-1.0.4-1.ns6.noarch
nethserver-nethgui-1.2.2-1.ns6.noarch
nethserver-ntopng-1.0.1-1.ns6.noarch

#17 Updated by Davide Principi almost 8 years ago

  • Status changed from VERIFIED to CLOSED
  • % Done changed from 90 to 100

In nethserver-updates:
redis-2.4.10-1.el6.x86_64.rpm
nethserver-redis-1.0.0-1.ns6.noarch.rpm
nethserver-ntopng-1.0.1-1.ns6.noarch.rpm

Also available in: Atom PDF