[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

ntop



buenas tardes he instaldo ntop en mi maquina personal, en la instalacion
me dice que interfaz va a esuchar en este caso la unica que tengo eth0,
despues me pide un usuario que ejecute ntop el que sea menos root ok
puse el usuario x, todo perfecto, al intentar ejecutar con el comando
ntop -d -w 3000
me dice que  bash: ntop: command not found, al cambiarme como root y
quererlo ejecutar con el mismo comando me dice

Tue May 17 10:36:21 2005  ntop will be started as user nobody
Tue May 17 10:36:21 2005  ntop v.3.0 SourceForge .tgz MT (SSL)
Tue May 17 10:36:21 2005  Configured on Jan 30 2005 22:53:02, built on
Jan 30 2005 22:53:23.
Tue May 17 10:36:21 2005  Copyright 1998-2004 by Luca Deri <deri@ntop.org>
Tue May 17 10:36:21 2005  Get the freshest ntop from http://www.ntop.org/
Tue May 17 10:36:21 2005  Initializing ntop
Tue May 17 10:36:21 2005  Checking eth0 for additional devices
Tue May 17 10:36:21 2005  Resetting traffic statistics for device eth0
Tue May 17 10:36:21 2005  DLT: Device 0 [eth0] is 1, mtu 1514, header 14
Tue May 17 10:36:21 2005  Initializing gdbm databases
Tue May 17 10:36:21 2005  Now running as requested user 'nobody'
(65534:65534)
Tue May 17 10:36:21 2005  **FATAL_ERROR** ....open of
/var/lib/ntop/prefsCache.db failed: File open error
Tue May 17 10:36:21 2005  1. Is another instance of ntop running?
Tue May 17 10:36:21 2005  2. Make sure that the use you specified can
write in the target directory
pakuil:/etc/ntop# bash: ntop: command not found

checo que no este corriendo ntop, y despues los permisos e los archivos
dentro de /var/lib/ntop/ todos a nombre de x u grupo x  entonce decido
hacer

dpkg-reconfigure ntop

ahora le pongo como usuario a nobody, y como root ejecuto ntop -d -w
3000 dandome lo siguiente

pakuil:/etc/ntop# ntop -d -w 3000
Tue May 17 10:40:34 2005  ntop will be started as user nobody
Tue May 17 10:40:34 2005  ntop v.3.0 SourceForge .tgz MT (SSL)
Tue May 17 10:40:34 2005  Configured on Jan 30 2005 22:53:02, built on
Jan 30 2005 22:53:23.
Tue May 17 10:40:34 2005  Copyright 1998-2004 by Luca Deri <deri@ntop.org>
Tue May 17 10:40:34 2005  Get the freshest ntop from http://www.ntop.org/
Tue May 17 10:40:34 2005  Initializing ntop
Tue May 17 10:40:34 2005  Checking eth0 for additional devices
Tue May 17 10:40:34 2005  Resetting traffic statistics for device eth0
Tue May 17 10:40:34 2005  DLT: Device 0 [eth0] is 1, mtu 1514, header 14
Tue May 17 10:40:34 2005  Initializing gdbm databases
Tue May 17 10:40:34 2005  Now running as requested user 'nobody'
(65534:65534)
Tue May 17 10:40:34 2005  VENDOR: Loading MAC address table.
Tue May 17 10:40:34 2005  VENDOR: Checking for MAC address table file
Tue May 17 10:40:34 2005  VENDOR: File './specialMAC.txt.gz' does not
need to be reloaded
Tue May 17 10:40:34 2005  VENDOR: ntop continues ok
Tue May 17 10:40:34 2005  VENDOR: Checking for MAC address table file
Tue May 17 10:40:34 2005  VENDOR: File './oui.txt.gz' does not need to
be reloaded
Tue May 17 10:40:34 2005  VENDOR: ntop continues ok
Tue May 17 10:40:34 2005  INIT: Bye bye: I'm becoming a daemon...
Tue May 17 10:40:34 2005  INIT: Parent process is exiting (this is normal)


lo cual me indica que ya esta, al poner el en browser
http://localhost:3000 me rechaza la conexion, doy un ps aux y no
encuentro ntop corriendo y dando un nmap localhost no tengo el puerto
3000 abierto, alguien me puede decir que estoy haciendo mal o como puedo
hacer correr ntop correctamente, gracias por sus comentarios



Reply to: