Hi Burton, Stanley,

Thanks for your reply,

In -d mode, 

For the web browser version:
 i'm trying with Mozilla 1.6 and Internet Explorer 6.0 SP1
With wget 57.230.253.254:3000/textinfo.html
 it's hung waiting data

But when I do a kill of ntop I got this in the log file
Jan 29 10:46:38 onefw01 ntop[89037]:   Unable to accept HTTP(S) request
(errno=22: Unknown error: 0)
Jan 29 10:46:38 onefw01 ntop[89037]:   **WARNING** THREADMGMT: web
connections thread (141222912) terminated...

And ntop don't shutdown cleanly as it would without the -d mode

Here is the full log when it goes in daemon mode and when I kill it

Jan 29 10:40:34 onefw01 ntop[89037]:   Now running as a daemon
Jan 29 10:40:34 onefw01 ntop[89037]:   **WARNING** AS: Unable to open file
'AS-list.txt.gz'.
Jan 29 10:40:34 onefw01 ntop[89037]:   I18N: This instance of ntop does not
support multiple languages
Jan 29 10:40:34 onefw01 ntop[89037]:   IP2CC: Looking for IP address <->
Country code mapping file
Jan 29 10:40:34 onefw01 ntop[89037]:   IP2CC: reading file
'/usr/local/etc/ntop/p2c.opt.table.gz'
Jan 29 10:40:35 onefw01 ntop[89037]:   IP2CC: 49056 records read
Jan 29 10:40:35 onefw01 ntop[89037]:   Initializing external applications
Jan 29 10:40:35 onefw01 ntop[89037]:   Initializing semaphores, mutexes and
threads
Jan 29 10:40:35 onefw01 ntop[89037]:   THREADMGMT: Started thread
(134691840) for network packet analyser
Jan 29 10:40:35 onefw01 ntop[89037]:   THREADMGMT: Started thread
(137298944) for idle hosts detection
Jan 29 10:40:35 onefw01 ntop[89037]:   THREADMGMT: Started thread
(137299968) for DNS address resolution
Jan 29 10:40:35 onefw01 ntop[89037]:   Calling plugin start functions (if
any)
Jan 29 10:40:35 onefw01 ntop[89037]:   Sniffying...
Jan 29 10:40:35 onefw01 ntop[89037]:   INIT: Created pid file
(/var/db/ntop/ntop.pid)
Jan 29 10:40:35 onefw01 ntop[89037]:   Listening on [xl0]
Jan 29 10:40:35 onefw01 ntop[89037]:   Now running as requested user 'ntop'
(1003:1003)
Jan 29 10:40:35 onefw01 ntop[89037]:   Loading Plugins
Jan 29 10:40:35 onefw01 ntop[89037]:   Searching for plugins in
/usr/local/lib/ntop/plugins
Jan 29 10:40:35 onefw01 ntop[89037]:   ICMP: Welcome to icmpWatchPlugin. (C)
1999 by Luca Deri
Jan 29 10:40:35 onefw01 ntop[89037]:   LASTSEEN: Welcome to
LastSeenWatchPlugin. (C) 1999 by Andrea Marangoni
Jan 29 10:40:35 onefw01 ntop[89037]:   NETFLOW: Welcome to NetFlow.(C)
2002-04 by Luca Deri
Jan 29 10:40:35 onefw01 ntop[89037]:   NFS: Welcome to nfsWatchPlugin. (C)
1999-2004 by Luca Deri
Jan 29 10:40:35 onefw01 ntop[89037]:   PDA: Welcome to PDAPlugin. (C)
2001-2002 by L.Deri and W.Brock
Jan 29 10:40:35 onefw01 ntop[89037]:   SFLOW: Welcome to sFlowPlugin. (C)
2002-04 by Luca Deri
Jan 29 10:40:35 onefw01 ntop[89037]:   RRD: Welcome to rrdPlugin. (C)
2002-04 by Luca Deri.
Jan 29 10:40:35 onefw01 ntop[89037]:   XML: Welcome to xmldump plugin. (C)
2003-2004 by Burton Strauss
Jan 29 10:40:35 onefw01 ntop[89037]:   Calling plugin start functions (if
any)
Jan 29 10:40:35 onefw01 ntop[89037]:   RRD: Welcome to the RRD plugin
Jan 29 10:40:35 onefw01 ntop[89037]:   RRD: Mask for new directories is 0700
Jan 29 10:40:35 onefw01 ntop[89037]:   RRD: Mask for new files is 0066
Jan 29 10:40:35 onefw01 ntop[89037]:   RRD: Started thread (141221888) for
data collection.
Jan 29 10:40:35 onefw01 ntop[89037]:   SSL is present but https is disabled:
use -W <https port> for enabling it
Jan 29 10:40:35 onefw01 ntop[89037]:   Note: Reporting device initally set
to 0 [xl0] (merged)
Jan 29 10:40:35 onefw01 ntop[89037]:   WEB: Initializing web server
Jan 29 10:40:35 onefw01 ntop[89037]:   WEB: Initializing tcp/ip socket
connections for web server
Jan 29 10:40:35 onefw01 ntop[89037]:   FILEDESCRIPTORBUG: Work-around
activated
Jan 29 10:40:35 onefw01 ntop[89037]:   Initialized socket, port 3000,
address (any)
Jan 29 10:40:35 onefw01 ntop[89037]:   WEB: Waiting for HTTP connections on
port 3000
Jan 29 10:40:35 onefw01 ntop[89037]:   WEB: Starting web server
Jan 29 10:40:35 onefw01 ntop[89037]:   THREADMGMT: Started thread
(141222912) for web server
Jan 29 10:40:35 onefw01 ntop[89037]:   THREADMGMT: Started thread
(141223936) for network packet sniffing on xl0
Jan 29 10:40:35 onefw01 ntop[89037]:   THREADMGMT: Packet processor thread
running...
Jan 29 10:40:35 onefw01 ntop[89037]:   THREADMGMT: Idle host scan thread
running...
Jan 29 10:40:35 onefw01 ntop[89037]:   THREADMGMT: Address resolution thread
running...
Jan 29 10:40:35 onefw01 ntop[89037]:   THREADMGMT: rrd thread (141221888)
started
Jan 29 10:40:35 onefw01 ntop[89037]:   THREADMGMT: web connections thread
(89037) started...
Jan 29 10:40:35 onefw01 ntop[89037]:   Note: SIGPIPE handler set (ignore)
Jan 29 10:40:35 onefw01 ntop[89037]:   THREADMGMT: pcap dispatch thread
running...
Jan 29 10:46:38 onefw01 ntop[89037]:   CLEANUP: ntop caught signal 15
Jan 29 10:46:38 onefw01 ntop[89037]:   CLEANUP: Cleaning up, set
FLAG_NTOPSTATE_TERM
Jan 29 10:46:38 onefw01 ntop[89037]:   SIGPIPE: Handled (ignored) 0 errors
Jan 29 10:46:38 onefw01 ntop[89037]:   FILEDESCRIPTORBUG: Bug work-around
cleanup
Jan 29 10:46:38 onefw01 ntop[89037]:   CLEANUP: Locking purge mutex (may
block for a little while)
Jan 29 10:46:38 onefw01 ntop[89037]:   CLEANUP: Locked purge mutex,
continuing shutdown
Jan 29 10:46:38 onefw01 ntop[89037]:   FREE_HOST: Start, 1 device(s)
Jan 29 10:46:38 onefw01 ntop[89037]:   Unable to accept HTTP(S) request
(errno=22: Unknown error: 0)
Jan 29 10:46:38 onefw01 ntop[89037]:   **WARNING** THREADMGMT: web
connections thread (141222912) terminated...
Jan 29 10:46:38 onefw01 /kernel: xl0: promiscuous mode disabled

Again if I use my actual workaround with & instead of -d, it works fine and
when I kill it, it goes down cleanly

Just to be sure if I get it right at the beginning, i have simply build ntop
with ./configure , gmake, gmake install, I got just a warning about deadlock
on the freebsd platform FREEBSD Release 4.5.

Thanks in advance,
Laurent Grilli

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

Reply via email to