Difference between revisions of "Ntop"

From ArchWiki
Jump to: navigation, search
(Troubleshooting)
Line 1: Line 1:
 
[[Category:Networking (English)]]
 
[[Category:Networking (English)]]
 
{{i18n|Ntop}}
 
{{i18n|Ntop}}
 +
 
==Introduction==
 
==Introduction==
 +
 
Ntop is a network traffic probe based on [http://www.tcpdump.org/ libcap], that offers RMON-like network traffic statistics accessible via a web browser.  See [http://www.ntop.org/products/ntop/ ntop.org] for an overview.
 
Ntop is a network traffic probe based on [http://www.tcpdump.org/ libcap], that offers RMON-like network traffic statistics accessible via a web browser.  See [http://www.ntop.org/products/ntop/ ntop.org] for an overview.
  
 
==Installation & Configuration==
 
==Installation & Configuration==
 +
 
*Ntop is available in the Extra repository:
 
*Ntop is available in the Extra repository:
 
  # pacman -S ntop
 
  # pacman -S ntop
 +
 +
==Configuration==
 +
 
*During the first run of ntop, you must set the admin password:
 
*During the first run of ntop, you must set the admin password:
 
  # ntop
 
  # ntop
Line 16: Line 22:
  
 
==Tips & Tricks==
 
==Tips & Tricks==
===Access ntop web interface===
+
 
*To access ntop's web interface, enter http://127.0.0.1:3000/ into your web browser. To make changes to the server, you will need to enter your username (default = ''admin'') and password.
+
===ntop's web interface===
 +
 
 +
To access ntop's web interface, enter http://127.0.0.1:3000/ into your web browser. To make changes to the server, you will need to enter your username (default = ''admin'') and password.
 +
 
 +
If ntop is not just used locally on your machine, but network wide by multiple users, you'd be better off by allowing SSL connections (http'''s''') '''only'''.
 +
 
 +
# [...] = other parameters given
 +
# ntop -w 4223 [...]
 +
 
 +
You can also provide ntop with your own SSL certificate. Simply put it in ntop's config directory and name it '''ntop-cert.pem'''
 +
 
 +
# cd /etc/ntop/
 +
# openssl req -x509 -nodes -days 365
 +
  \-subj '/C=US/L=Portland/CN=swim'
 +
  \-newkey rsa:1024 -keyout ntop-cert.pem -out ntop-cert.pem
 +
 
 
==Troubleshooting==
 
==Troubleshooting==
 +
 
===**ERROR** RRD: Disabled - unable to create base directory (err 13, /var/lib/ntop/rrd)===
 
===**ERROR** RRD: Disabled - unable to create base directory (err 13, /var/lib/ntop/rrd)===
 +
 
Directory may not exist.  Create it and make sure it belongs to user nobody
 
Directory may not exist.  Create it and make sure it belongs to user nobody
  
 
===Please enable make sure that the ntop html/ directory is properly installed===
 
===Please enable make sure that the ntop html/ directory is properly installed===
 +
 
If you receive this warning while trying to access the web interface, edit /etc/conf.d/ntop to include your IP and restart the daemon. For example:
 
If you receive this warning while trying to access the web interface, edit /etc/conf.d/ntop to include your IP and restart the daemon. For example:
  

Revision as of 21:57, 12 April 2012

This template has only maintenance purposes. For linking to local translations please use interlanguage links, see Help:i18n#Interlanguage links.


Local languages: Català – Dansk – English – Español – Esperanto – Hrvatski – Indonesia – Italiano – Lietuviškai – Magyar – Nederlands – Norsk Bokmål – Polski – Português – Slovenský – Česky – Ελληνικά – Български – Русский – Српски – Українська – עברית – العربية – ไทย – 日本語 – 正體中文 – 简体中文 – 한국어


External languages (all articles in these languages should be moved to the external wiki): Deutsch – Français – Română – Suomi – Svenska – Tiếng Việt – Türkçe – فارسی

Introduction

Ntop is a network traffic probe based on libcap, that offers RMON-like network traffic statistics accessible via a web browser. See ntop.org for an overview.

Installation & Configuration

  • Ntop is available in the Extra repository:
# pacman -S ntop

Configuration

  • During the first run of ntop, you must set the admin password:
# ntop
  • Next, look at /etc/conf.d/ntop for configure the network interface, what you want to use.
  • Next, start the ntop service:
# /etc/rc.d/ntop start
  • Also, if preferred, add ntop to DAEMONS list in /etc/rc.conf to start process automatically at boot.
  • The configuration file is located at /etc/conf.d/ntop

Tips & Tricks

ntop's web interface

To access ntop's web interface, enter http://127.0.0.1:3000/ into your web browser. To make changes to the server, you will need to enter your username (default = admin) and password.

If ntop is not just used locally on your machine, but network wide by multiple users, you'd be better off by allowing SSL connections (https) only.

# [...] = other parameters given
# ntop -w 4223 [...]

You can also provide ntop with your own SSL certificate. Simply put it in ntop's config directory and name it ntop-cert.pem

# cd /etc/ntop/
# openssl req -x509 -nodes -days 365 
  \-subj '/C=US/L=Portland/CN=swim' 
  \-newkey rsa:1024 -keyout ntop-cert.pem -out ntop-cert.pem

Troubleshooting

**ERROR** RRD: Disabled - unable to create base directory (err 13, /var/lib/ntop/rrd)

Directory may not exist. Create it and make sure it belongs to user nobody

Please enable make sure that the ntop html/ directory is properly installed

If you receive this warning while trying to access the web interface, edit /etc/conf.d/ntop to include your IP and restart the daemon. For example:

NTOP_ARGS="-i eth0 -w 127.0.0.1:3000"

This is the IP you will use to access the web interface.