PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : ntop - Startprobleme



schuelsche
26.02.04, 09:57
Hi,

ich würde gerne ntop zum Anzeigen des Netzwerktraffics benutzen. Leider habe ich dabei Probleme.

Ich nutze SuSE Linux 9.0 und davor unter SuSE Linux 8.2 lief alles noch problemlos. Ich konnte ntop mittels des Befehls:
ntop -d -u user
als Dämon starten und dann standardmässig über http://IP:3000 abrufen.

Jetzt unter SuSE 9.0 gibt es Probleme.
Egal ob ich die Version nehmen, die auf den SuSE-Distributions-CD's dabei ist oder die, die ich mir von sourceforge runtergeladen habe (ntop-2.2c-57.i586.rpm), es will einfach nicht funktionieren.

Wenn ich mit dem "alten" Befehl
ntop -d -u user
starte, bekomme ich folgende Fehlermeldung:

Wait please: ntop is coming up...
26/Feb/2004 09:51:12 ntop v.2.2c MT (SSL) [i686-suse-linux] (10/02/03 10:22:30 PM build)
26/Feb/2004 09:51:12 Copyright 1998-2003 by Luca Deri <deri@ntop.org>
26/Feb/2004 09:51:12 Get the freshest ntop from http://www.ntop.org/
26/Feb/2004 09:51:12 Initializing ntop
26/Feb/2004 09:51:12 SSL is present but https is disabled: use -W <https port> for enabling it
26/Feb/2004 09:51:12 Initializing gdbm databases
26/Feb/2004 09:51:12 **FATAL_ERROR** ....open of /var/lib/ntop/prefsCache.db failed: Can't be writer
26/Feb/2004 09:51:12 **FATAL_ERROR** Possible solution: please use '-P <directory>'

Wenn ich mit dem Befehl
ntop
starte, bekomme ich ebenfalls folgendes:

Wait please: ntop is coming up...
26/Feb/2004 09:51:50 ntop v.2.2c MT (SSL) [i686-suse-linux] (10/02/03 10:22:30 PM build)
26/Feb/2004 09:51:50 Copyright 1998-2003 by Luca Deri <deri@ntop.org>
26/Feb/2004 09:51:50 Get the freshest ntop from http://www.ntop.org/
26/Feb/2004 09:51:50 Initializing ntop
26/Feb/2004 09:51:50 SSL is present but https is disabled: use -W <https port> for enabling it
26/Feb/2004 09:51:50 Initializing gdbm databases
26/Feb/2004 09:51:50 **FATAL_ERROR** ....open of /var/lib/ntop/prefsCache.db failed: Can't be writer
26/Feb/2004 09:51:50 **FATAL_ERROR** Possible solution: please use '-P <directory>'t

Die Datei /var/lib/ntop/prefsCache.db ist vorhanden.
Ein ls -l bringt (nachdem ich einfach mal chmod 777 ntop * gemacht habe):

drwxr-xr-x 2 root root 272 2004-02-26 09:51 .
drwxr-xr-x 35 root root 920 2004-02-26 08:05 ..
-rw-r--r-- 1 root root 12288 2004-02-26 09:51 addressQueue.db
-rwxrwxrwx 1 root root 22080 2004-02-26 09:43 dnsCache.db
-rwxrwxrwx 1 root root 12288 2004-02-26 07:06 hostsInfo.db
-rwxrwxrwx 1 root root 12288 2004-02-26 07:06 LsWatch.db
-rwxrwxrwx 1 root root 21442 2004-02-26 07:41 macPrefix.db
-rwxrwxrwx 1 root root 12437 2004-02-26 07:41 ntop_pw.db
-rwxrwxrwx 1 root root 12691 2004-02-26 07:41 prefsCache.db

Die beiden Threads zum Thema habe ich ebenfalls gelesen:
http://www.linuxforen.de/forums/showthread.php?threadid=66312
http://www.linuxforen.de/forums/showthread.php?threadid=66030

Wenn ich es mit der Lösungsmöglichkeit
# chwon ntop.ntop /var/lib/ntop
versuche, bekomme ich folgende Fehlermeldung:

chown: »ntop.ntop«: ungültiger Benutzer

Tja, und jetzt?!

rcntop status
bringt die Meldung: running

rcntop stop
stoppt ntop.

rcntop start
bringt:
Starting service ntop/usr/sbin/rcntop: line 105: 7460 Speicherzugriffsfehler /usr/sbin/passcheck

ntop admin password is not yet set. Run
ntop -A
manually unused

Also
ntop -A
dann wieder folgendes:

Wait please: ntop is coming up...
26/Feb/2004 09:56:28 Initializing gdbm databases
26/Feb/2004 09:56:28 **FATAL_ERROR** ....open of /var/lib/ntop/prefsCache.db failed: Can't be writer
26/Feb/2004 09:56:28 **FATAL_ERROR** Possible solution: please use '-P <directory>'

Was kann ich denn jetzt tun?!

Ratlose Grüsse
schuelsche