Dear Luca,
      I started ntop with the following paramters:
sudo ntop -w 80 -W 443
and this is what I got as output at the terminal
Mon Aug 25 21:33:32 2008  NOTE: Interface merge enabled by default
Mon Aug 25 21:33:32 2008  Initializing gdbm databases
Mon Aug 25 21:33:32 2008  ntop will be started as user nobody
Mon Aug 25 21:33:32 2008  ntop v.3.3.7
Mon Aug 25 21:33:32 2008  Configured on Aug 22 2008 22:56:52, built on
Aug 22 2008 22:59:21.
Mon Aug 25 21:33:32 2008  Copyright 1998-2007 by Luca Deri <[EMAIL PROTECTED]>
Mon Aug 25 21:33:32 2008  Get the freshest ntop from http://www.ntop.org/
Mon Aug 25 21:33:32 2008  NOTE: ntop is running from 'ntop'
Mon Aug 25 21:33:32 2008  NOTE: (but see warning on man page for the
--instance parameter)
Mon Aug 25 21:33:32 2008  NOTE: ntop libraries are in '/usr/local/lib'
Mon Aug 25 21:33:32 2008  Initializing ntop
Mon Aug 25 21:33:33 2008  Checking eth1 for additional devices
Mon Aug 25 21:33:33 2008  Resetting traffic statistics for device eth1
Mon Aug 25 21:33:33 2008  Initializing device eth1 (0)
Mon Aug 25 21:33:33 2008  DLT: Device 0 [eth1] is 1, mtu 1514, header 14
Mon Aug 25 21:33:33 2008  Initializing gdbm databases
Mon Aug 25 21:33:33 2008  VENDOR: Loading MAC address table.
Mon Aug 25 21:33:33 2008  VENDOR: Checking for MAC address table file
Mon Aug 25 21:33:33 2008  VENDOR: File
'/usr/local/etc/ntop/specialMAC.txt.gz' does not need to be reloaded
Mon Aug 25 21:33:33 2008  VENDOR: ntop continues ok
Mon Aug 25 21:33:33 2008  VENDOR: Checking for MAC address table file
Mon Aug 25 21:33:33 2008  VENDOR: File '/usr/local/etc/ntop/oui.txt.gz'
does not need to be reloaded
Mon Aug 25 21:33:33 2008  VENDOR: ntop continues ok
Mon Aug 25 21:33:33 2008  Fingerprint: Loading signature file
Mon Aug 25 21:33:33 2008  Fingerprint: Checking for Fingerprint file... file
Mon Aug 25 21:33:33 2008  Fingerprint: Loading file
'/usr/local/etc/ntop/etter.finger.os.gz'
Mon Aug 25 21:33:33 2008  Fingerprint: ...loaded 0 records
Mon Aug 25 21:33:33 2008  ASN: Checking for Autonomous System Number
table file
Mon Aug 25 21:33:33 2008  **WARNING** ASN: Unable to open file 'AS-list.txt'
Mon Aug 25 21:33:33 2008  IP2CC: Checking for IP address <-> Country
Code mapping file
Mon Aug 25 21:33:33 2008  IP2CC: Loading file
'/usr/local/etc/ntop/p2c.opt.table.gz'
Mon Aug 25 21:33:33 2008  IP2CC: ...found 52395 lines
Mon Aug 25 21:33:33 2008  Database support not compiled into ntop
Mon Aug 25 21:33:33 2008  Initializing external applications
Mon Aug 25 21:33:33 2008  THREADMGMT[t3058682768]: SFP: Fingerprint scan
thread starting [p5513]
Mon Aug 25 21:33:33 2008  THREADMGMT[t3058682768]: SFP: Started thread
for fingerprinting
Mon Aug 25 21:33:33 2008  THREADMGMT[t3048192912]: SIH: Idle host scan
thread starting [p5513]
Mon Aug 25 21:33:33 2008  THREADMGMT[t3048192912]: SIH: Started thread
for idle hosts detection
Mon Aug 25 21:33:33 2008  THREADMGMT[t3037703056]: DNSAR(1): Address
resolution thread running
Mon Aug 25 21:33:33 2008  THREADMGMT[t3037703056]: DNSAR(1): Started
thread for DNS address resolution
Mon Aug 25 21:33:33 2008  THREADMGMT[t3027213200]: DNSAR(2): Address
resolution thread running
Mon Aug 25 21:33:33 2008  THREADMGMT[t3027213200]: DNSAR(2): Started
thread for DNS address resolution
Mon Aug 25 21:33:33 2008  THREADMGMT[t3016723344]: DNSAR(3): Address
resolution thread running
Mon Aug 25 21:33:33 2008  THREADMGMT[t3016723344]: DNSAR(3): Started
thread for DNS address resolution
Mon Aug 25 21:33:33 2008  Calling plugin start functions (if any)
Mon Aug 25 21:33:33 2008  SSL: Initializing...
Mon Aug 25 21:33:33 2008  SSL_PRNG: Automatically initialized!
Mon Aug 25 21:33:33 2008  SSL initialized successfully
Mon Aug 25 21:33:33 2008  INITWEB: Initializing web server
Mon Aug 25 21:33:33 2008  INITWEB: Initializing TCP/IP socket
connections for web server
Mon Aug 25 21:33:33 2008  INITWEB: Initialized socket, port 80, address
(any)
Mon Aug 25 21:33:33 2008  INITWEB: Waiting for HTTP connections on port 80
Mon Aug 25 21:33:33 2008  INITWEB: Initialized ssl socket, port 443,
address (any)
Mon Aug 25 21:33:33 2008  INITWEB: Waiting for HTTPS (SSL) connections
on port 443
Mon Aug 25 21:33:33 2008  INITWEB: Starting web server
Mon Aug 25 21:33:33 2008  THREADMGMT[t3006233488]: WEB: Server
connection thread starting [p5513]
Mon Aug 25 21:33:33 2008  Note: SIGPIPE handler set (ignore)
Mon Aug 25 21:33:33 2008  THREADMGMT[t3006233488]: WEB: Server
connection thread running [p5513]
Mon Aug 25 21:33:33 2008  WEB: ntop's web server is now processing requests
Mon Aug 25 21:33:33 2008  THREADMGMT[t3006233488]: INITWEB: Started
thread for web server
Mon Aug 25 21:33:33 2008  Listening on [eth1]
Mon Aug 25 21:33:33 2008  Loading Plugins
Mon Aug 25 21:33:33 2008  Searching for plugins in
/usr/local/lib/ntop/plugins
Mon Aug 25 21:33:33 2008  CPACKET: Welcome to cPacket.(C) 2008 by Luca Deri
Mon Aug 25 21:33:33 2008  RRD: Welcome to Round-Robin Databases. (C)
2002-07 by Luca Deri.
Mon Aug 25 21:33:33 2008  Remote: Welcome to Remote. (C) 2006-07 by L.Deri
Mon Aug 25 21:33:33 2008  SFLOW: Welcome to sFlow.(C) 2002-04 by Luca Deri
Mon Aug 25 21:33:33 2008  PDA: Welcome to PDA. (C) 2001-2005 by L.Deri
and W.Brock
Mon Aug 25 21:33:33 2008  NETFLOW: Welcome to NetFlow.(C) 2002-08 by
Luca Deri
Mon Aug 25 21:33:33 2008  LASTSEEN: Welcome to Host Last Seen. (C) 1999
by Andrea Marangoni
Mon Aug 25 21:33:34 2008  ICMP: Welcome to ICMP Watch. (C) 1999-2005 by
Luca Deri
Mon Aug 25 21:33:34 2008  Calling plugin start functions (if any)
Mon Aug 25 21:33:34 2008  RRD: Welcome to the RRD plugin
Mon Aug 25 21:33:34 2008  RRD: Mask for new directories is 0700
Mon Aug 25 21:33:34 2008  RRD: Mask for new files is 0066
Mon Aug 25 21:33:34 2008  RRD_DEBUG: Parameters:
Mon Aug 25 21:33:34 2008  RRD_DEBUG:     dumpInterval 300 seconds
Mon Aug 25 21:33:34 2008  RRD_DEBUG:     dumpShortInterval 10 seconds
Mon Aug 25 21:33:34 2008  RRD_DEBUG:     dumpHours 72 hours by 300 seconds
Mon Aug 25 21:33:34 2008  RRD_DEBUG:     dumpDays 90 days by hour
Mon Aug 25 21:33:34 2008  RRD_DEBUG:     dumpMonths 36 months by day
Mon Aug 25 21:33:34 2008  RRD_DEBUG:     dumpDomains no
Mon Aug 25 21:33:34 2008  RRD_DEBUG:     dumpFlows no
Mon Aug 25 21:33:34 2008  RRD_DEBUG:     dumpSubnets no
Mon Aug 25 21:33:34 2008  RRD_DEBUG:     dumpHosts no
Mon Aug 25 21:33:34 2008  RRD_DEBUG:     dumpInterfaces yes
Mon Aug 25 21:33:34 2008  RRD_DEBUG:     dumpASs no
Mon Aug 25 21:33:34 2008  RRD_DEBUG:     dumpMatrix no
Mon Aug 25 21:33:34 2008  RRD_DEBUG:     dumpDetail medium
Mon Aug 25 21:33:34 2008  RRD_DEBUG:     hostsFilter
Mon Aug 25 21:33:34 2008  RRD_DEBUG:     rrdPath /usr/local/var/ntop/rrd
[normal]
Mon Aug 25 21:33:34 2008  RRD_DEBUG:     rrdPath /usr/local/var/ntop/rrd
[dynamic/volatile]
Mon Aug 25 21:33:34 2008  RRD_DEBUG:     umask 0066
Mon Aug 25 21:33:34 2008  RRD_DEBUG:     DirPerms 0700
Mon Aug 25 21:33:34 2008  THREADMGMT[t2995743632]: RRD: Data collection
thread starting [p5513]
Mon Aug 25 21:33:34 2008  THREADMGMT: RRD: Started thread (t2995743632)
for data collection
Mon Aug 25 21:33:34 2008  INIT: Created pid file (/var/run/ntop.pid)
Mon Aug 25 21:33:34 2008  THREADMGMT[t3087378224]: ntop RUNSTATE:
INITNONROOT(3)
Mon Aug 25 21:33:34 2008  Now running as requested user 'nobody' (99:99)
Mon Aug 25 21:33:34 2008  Note: Reporting device initally set to 0
[eth1] (merged)
Mon Aug 25 21:33:34 2008  THREADMGMT[t3087378224]: ntop RUNSTATE: RUN(4)
Mon Aug 25 21:33:34 2008  THREADMGMT[t2985253776]: NPS(eth1):
pcapDispatch thread starting [p5513]
Mon Aug 25 21:33:34 2008  THREADMGMT[t2985253776]: NPS(eth1):
pcapDispatch thread running [p5513]
Mon Aug 25 21:33:34 2008  THREADMGMT[t3048192912]: SIH: Idle host scan
thread running [p5513]
Mon Aug 25 21:33:34 2008  THREADMGMT[t3058682768]: SFP: Fingerprint scan
thread running [p5513]
Mon Aug 25 21:33:34 2008  THREADMGMT[t2985253776]: NPS(1): Started
thread for network packet sniffing [eth1]
Mon Aug 25 21:33:44 2008  **ERROR** RRD: Disabled - unable to create
base directory (err 13, /usr/local/var/ntop/rrd)
Mon Aug 25 21:34:01 2008  NOTE: -L | --use-syslog=facility not
specified, child processes will log to the default (24).
Segmentation fault

You can see that after a few while there is a segmentation fault and
ntop crashes. Actually I have no idea about gdb. So could you please
help me to know how to debug ntop using gbd?
Thanks in advance.

Regards,
Abhishek Singh

Luca Deri wrote:
> Abhishek
> I can;t really help you unless you do some initial debugging. Please  
> fire up gdb and see what's happening
>
> Luca
>
> ----
> Luca Deri <[EMAIL PROTECTED]>
>
> You must be the change you want to see in the world
> Mahatma Gandhi
>
>
>
> On Aug 25, 2008, at 7:04 AM, Abhishek Singh wrote:
>
>   
>> I installed libpcap-devel and was able to install ntop. But while  
>> starting ntop, it starts for a while and after that it crashes  
>> giving me a "Segmentation Fault" error. I don't know how to solve it.
>> _________________________________________________________
>>
>> Regards,
>> Abhishek Singh
>>
>> /********************************************
>> * Fedora 9 (Sulphur) has released *
>> * http://fedoraproject.org *
>> ********************************************/
>>
>>
>> On Fri, Aug 22, 2008 at 4:38 AM, Craig Orsinger  
>> <[EMAIL PROTECTED]> wrote:
>> That package is not on the Fedora 9 DVD. You'll have to use yum, the  
>> GUI software installer, or download the package from the Fedora site  
>> or one of its mirrors.
>>
>> I was able to build this on Fedora 9, so it's possible. I'm having  
>> unexplained problems with that build so far, but if I resolve them  
>> I'll be happy to pass along the RPM spec file I used.
>>
>>
>>
>> --- On Thu, 8/21/08, Mukom TAMON <[EMAIL PROTECTED]> wrote:
>>
>>     
>>> From: Mukom TAMON <[EMAIL PROTECTED]>
>>> Subject: Re: [Ntop] Regarding Installing ntop
>>> To: [email protected]
>>> Date: Thursday, August 21, 2008, 8:29 AM
>>> Search for and install libpcap-dev package
>>>
>>> On Thu, Aug 21, 2008 at 3:48 AM, Abhishek Singh
>>> <[EMAIL PROTECTED]>wrote:
>>>
>>>       
>>>>  Dear All,
>>>>        I downloaded the recent release of ntop (3.3.7)
>>>>         
>>> from the sourceforge
>>>       
>>>> website. I followed the instruction provided in the
>>>>         
>>> docs folder
>>>       
>>>> (BUILD-NTOP.txt). I did on terminal:
>>>> *./autogen.sh*
>>>> but it printed out an error message at the last saying
>>>>         
>>> that libpcap is not
>>>       
>>>> installed. I also try to run it as root user, and even
>>>>         
>>> tried the *
>>>       
>>>> ./configure* independently, but all attempt returned
>>>>         
>>> the same error
>>>       
>>>>         
>>> ********************************************************************
>>>       
>>>> *
>>>> * Checking for unique options for i686-pc-linux-gnu,
>>>>         
>>> gcc...
>>>       
>>>> *
>>>> * This appears to be LINUX fedora 9
>>>> *
>>>> *   Testing for extra configuration options for LINUX
>>>>         
>>> fedora 9
>>>       
>>>> *
>>>>
>>>>         
>>> *******************************************************************
>>>       
>>>> Test the compiler and setup CFLAGS...
>>>>
>>>> checking if compiler accepts -W (warning flags)... yes
>>>>
>>>> Critical library/include tests...
>>>>
>>>> checking for pcap_lookupdev in -lpcap... no
>>>>              *** FATAL ERROR ***
>>>>  It looks that you don't have the libpcap
>>>>         
>>> distribution installed.
>>>       
>>>>  Download, compile and, optionally, install it.
>>>>  When finished please re-run this program.
>>>>  You can download the latest source tarball at
>>>>         
>>> http://www.tcpdump.org/
>>>       
>>>> configure: error:  The LBL Packet Capture Library,
>>>>         
>>> libpcap, was not found!
>>>       
>>>> *
>>>>
>>>> I'm using Fedora 9, and when I checked out if
>>>>         
>>> libpcap was installed using
>>>       
>>>> *rpm -qa | grep libpcap* it showed:
>>>>
>>>> *libpcap-0.9.8-2.fc9.i386
>>>>
>>>> *and when i did  *ls /usr/lib/ | grep libpcap*, it
>>>>         
>>> showed
>>>       
>>>> *libpcap.so.0.9
>>>> libpcap.so.0.9.8
>>>>
>>>> *I'm amazed to how solve this problem and Install
>>>>         
>>> Ntop. I really need it
>>>       
>>>> for monitoring. I hope someone from the list could
>>>>         
>>> help me with this
>>>       
>>>> problem.
>>>> Thank you in advance.
>>>>
>>>> Regards,
>>>> Abhishek Singh
>>>>
>>>> _______________________________________________
>>>> Ntop mailing list
>>>> [email protected]
>>>> http://listgateway.unipi.it/mailman/listinfo/ntop
>>>>
>>>>
>>>>         
>>> --
>>>  
>>>       
>> ___________________________________________________________________________________________________________________
>>     
>>> M.A. TAMON
>>> B.Eng, CCNP, CCNA
>>>
>>> "A man owns nothing, not land or money, only his
>>> character, the loyalty &
>>> courage in his heart"
>>> My BLOGs:
>>> [ICT Business Integration] - http://ibiztech.wordpress.com
>>> [Leadership Lessons from Movies] -
>>> http://thbs.wordpress.com
>>> [In Search of Excellence & Perfection] -
>>> http://perfexcellence.wordpress.com
>>> [Technical How Tos & Stuff-at-a-Glance] -
>>> http://techowto.wordpress.com
>>> _______________________________________________
>>> Ntop mailing list
>>> [email protected]
>>> http://listgateway.unipi.it/mailman/listinfo/ntop
>>>       
>>
>>
>> _______________________________________________
>> Ntop mailing list
>> [email protected]
>> http://listgateway.unipi.it/mailman/listinfo/ntop
>>
>> _______________________________________________
>> Ntop mailing list
>> [email protected]
>> http://listgateway.unipi.it/mailman/listinfo/ntop
>>     
>
> _______________________________________________
> Ntop mailing list
> [email protected]
> http://listgateway.unipi.it/mailman/listinfo/ntop
>
>   


Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
Ntop mailing list
[email protected]
http://listgateway.unipi.it/mailman/listinfo/ntop

Reply via email to