Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I've recently installed ntop v3.3 on a Debian/Lenny server, which runs as a daemon with the web interface enabled.

However, it randomly crashes and logs don't report anything... I've tried the following to pinpoint the source of the problem, but I can't find any information related to the crash.

I checked the logs using the following commands :

cat /var/log/*.log | grep ntop &> ~/ntop.extract.log
cat /var/log/syslog | grep ntop
cat /var/log/ntop/*.log

Am I missing some log files ? Is there a special switch for ntop to enable more verbose logging (running with the DEBUG option does not show any extra information relating to the cause of the crash...) ?

Any help welcome...

share|improve this question
Technically, if the crash is truly random, then there is no cause... I'd just wield strace over it, and if the crash is a segfault, enable core dumps. Sooner or later you'll find the cause. –  womble Mar 7 '12 at 9:33
Well random as in it happens randomly. Other than that, I cant find anything else on the crash, except that the daemon was running, and that it isn't anymore. –  T. Fabre Mar 7 '12 at 9:40
What you mean, I assume, is that you haven't yet found any correlation between the crashing and any other factor, which is a very different thing from "it happens randomly". At any rate, strace + core dumps will probably get you there. –  womble Mar 7 '12 at 9:45
Yes, that is what I meant, I will look into strace, I never used this one before. Thanks for the tip :) –  T. Fabre Mar 7 '12 at 9:48
Well, I finally got it. It's a good ol' plain segfault :s Strangely, attaching strace to the parent process stops the segfault (nothing happened for more than 3 days of monitoring via strace, 15minutes after detaching it, ntop segfaulted....) –  T. Fabre Mar 10 '12 at 10:05

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.