You are not logged in.

#1 2008-01-17 09:46:45

ReaphSharc
Member
From: the Netherlands
Registered: 2007-11-05
Posts: 138
Website

[Solved] ntop not working?

I'm trying to run ntop on on of my boxes at work, but it seems to dissapear as soon as it goes into daemon mode...
In /var/log/ntop.log:

Thu Jan 17 10:27:57 2008  Initializing ntop
Thu Jan 17 10:27:57 2008  No patterns to load: protocol guessing disabled.
Thu Jan 17 10:27:57 2008  Checking eth1 for additional devices
Thu Jan 17 10:27:57 2008  Resetting traffic statistics for device eth1
Thu Jan 17 10:27:57 2008  Initializing device eth1 (0)
Thu Jan 17 10:27:57 2008  DLT: Device 0 [eth1] is 1, mtu 1514, header 14
Thu Jan 17 10:27:57 2008  Initializing gdbm databases
Thu Jan 17 10:27:57 2008  VENDOR: Loading MAC address table.
Thu Jan 17 10:27:57 2008  VENDOR: Checking for MAC address table file
Thu Jan 17 10:27:57 2008  VENDOR: File '/etc/ntop/specialMAC.txt.gz' does not need to be reloaded
Thu Jan 17 10:27:57 2008  VENDOR: ntop continues ok
Thu Jan 17 10:27:57 2008  VENDOR: Checking for MAC address table file
Thu Jan 17 10:27:57 2008  VENDOR: File '/etc/ntop/oui.txt.gz' does not need to be reloaded
Thu Jan 17 10:27:57 2008  VENDOR: ntop continues ok
Thu Jan 17 10:27:57 2008  Fingerprint: Loading signature file
Thu Jan 17 10:27:57 2008  Fingerprint: Checking for Fingerprint file... file
Thu Jan 17 10:27:57 2008  Fingerprint: Loading file '/etc/ntop/etter.finger.os.gz'
Thu Jan 17 10:27:57 2008  Fingerprint: ...loaded 1765 records
Thu Jan 17 10:27:57 2008  INIT: Bye bye: I'm becoming a daemon...
Thu Jan 17 10:27:57 2008  INIT: Parent process is exiting (this is normal)

Once it finishes this sequence, 'ps -ef' reveals not a single ntop process.
From /etc/conf.d/ntop:

#
# Paramaters passed to ntop by init
#
# -d -- to daemonize. (without this, the init script will not work)
#
# Parameters to be passed to ntop
#
# -i -- comma separated list of interfaces to monitor
# -w -- port to listen on (default 3000)
#
NTOP_ARGS="-d -i eth1 -w 3000"

#
# Log file for ntop
#
NTOP_LOG="/var/log/ntop.log"

I added the '-d' myself, but that seems to make no difference.

Because there is no 'ntop' process running, naturally the webserver http://localhost:3000 isn't running either.

What on earth am I missing or doing wrong?

Last edited by ReaphSharc (2008-01-31 15:01:48)


Do you want a Bubble Icon? Feel free to submit your requests or personal creations to be included in future releases.
I'm 100% Linux!

Offline

#2 2008-01-17 09:52:39

Basn
Member
From: Stockholm
Registered: 2007-08-13
Posts: 47

Re: [Solved] ntop not working?

does it start if you do it manualy? i did it manualy back when i used it and it worked.

Offline

#3 2008-01-17 10:21:04

ReaphSharc
Member
From: the Netherlands
Registered: 2007-11-05
Posts: 138
Website

Re: [Solved] ntop not working?

No, that gives the same output (command 'ntop -d -i eth1 -w 3000')


Do you want a Bubble Icon? Feel free to submit your requests or personal creations to be included in future releases.
I'm 100% Linux!

Offline

#4 2008-01-31 13:02:33

bitsuid
Member
Registered: 2007-11-06
Posts: 3

Re: [Solved] ntop not working?

1) delete ntop admin password is exist:
# rm /var/ntop/ntop_pw.db

2) only in first run add admin password with:
# ntop -A

3) start as daemon service
# /etc/rc.d/ntop start

salu2 --cesar

Offline

#5 2008-01-31 15:01:30

ReaphSharc
Member
From: the Netherlands
Registered: 2007-11-05
Posts: 138
Website

Re: [Solved] ntop not working?

Coincidentally, I figured this out earlier this week (but haven't had time to update this post yet.

I actually used # ntop -A -u nobody

But thanks for the reply!


Do you want a Bubble Icon? Feel free to submit your requests or personal creations to be included in future releases.
I'm 100% Linux!

Offline

Board footer

Powered by FluxBB