Difference between revisions of "App/Ntop"

From Amahi Wiki
Jump to: navigation, search
(New page: = Running Ntop Guide = [Category:Apps])
 
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 +
= Running Ntop Guide =
 +
 +
This is a quick guide to getting ntop (network top - http://www.ntop.org) running on your system. Ntop will check all incoming and outgoing traffic on your HDA, giving you nice graphs and metrics.
 +
 +
First you need to install ntop:
 +
 +
<pre> root@localhost# yum install ntop </pre>
 +
 +
To run it you type:
 +
 +
<pre> root@localhost# service ntop start </pre>
 +
 +
To view the statistics gathered by ntop:
 +
 +
<pre> http://hda:3000 </pre>
 +
 +
or secure:
 +
 +
<pre> https://hda:3001 </pre>
 +
 +
 +
=Below you can find a sample configuration file for ntop:=
 +
----
 +
<pre> # tells ntop the user id to run as </pre>
 +
<pre> --user ntop </pre>
 +
 +
<pre> #save messages into the system log </pre>
 +
<pre> --use-syslog=daemon </pre>
 +
 +
<pre> # sets the directory that ntop runs from </pre>
 +
<pre> --db-file-path /var/lib/ntop </pre>
 +
 +
<pre> # the amount and severity of messages that ntop will put out </pre>
 +
<pre> --trace-level 3 </pre>
 +
 +
<pre> # limit ntop to listening on a specific interface and port </pre>
 +
<pre> --http-server 3000 --https-server 3001 </pre>
  
= Running Ntop Guide =
+
<pre> # specify the interface </pre>
 +
<pre> --interface eth0 </pre>
 +
 
 +
<pre> # Under certain circumstances, the sched_yield() function causes the ntop web </pre>
 +
<pre> # server to lock up.  It shouldn't happen, but it does.  This option causes </pre>
 +
<pre> # ntop to skip those calls, at a tiny performance penalty. </pre>
 +
<pre> --disable-schedyield </pre>
 +
 
 +
<pre> # disables "phone home" behavior </pre>
 +
<pre> --skip-version-check=yes </pre>
 +
----
 +
 
 +
Troubleshooting:<br>
 +
You might need to set a password for ntop before you can access certain parts of the admin panel of ntop. You can set the initial password as described below:
  
 +
<pre> root@localhost# service ntop stop </pre>
 +
<pre> root@localhost# ntop -A </pre>
 +
<pre> <fill in a password> </pre>
 +
<pre> root@localhost# service ntop start </pre>
  
  
 +
tested on fedora9 32-bit
  
[Category:Apps]
+
[[Category:Apps]]

Latest revision as of 08:23, 30 January 2009

Running Ntop Guide

This is a quick guide to getting ntop (network top - http://www.ntop.org) running on your system. Ntop will check all incoming and outgoing traffic on your HDA, giving you nice graphs and metrics.

First you need to install ntop:

 root@localhost# yum install ntop 

To run it you type:

 root@localhost# service ntop start 

To view the statistics gathered by ntop:

 http://hda:3000 

or secure:

 https://hda:3001 


Below you can find a sample configuration file for ntop:


 # tells ntop the user id to run as 
 --user ntop 
 #save messages into the system log 
 --use-syslog=daemon 
 # sets the directory that ntop runs from 
 --db-file-path /var/lib/ntop 
 # the amount and severity of messages that ntop will put out 
 --trace-level 3 
 # limit ntop to listening on a specific interface and port 
 --http-server 3000 --https-server 3001 
 # specify the interface 
 --interface eth0 
 # Under certain circumstances, the sched_yield() function causes the ntop web 
 # server to lock up.  It shouldn't happen, but it does.  This option causes 
 # ntop to skip those calls, at a tiny performance penalty. 
 --disable-schedyield 
 # disables "phone home" behavior 
 --skip-version-check=yes 

Troubleshooting:
You might need to set a password for ntop before you can access certain parts of the admin panel of ntop. You can set the initial password as described below:

 root@localhost# service ntop stop 
 root@localhost# ntop -A 
 <fill in a password> 
 root@localhost# service ntop start 


tested on fedora9 32-bit