On Thu, 3 Jan 2002, Sim, CT (Chee Tong) wrote:

> Hi..  I can find plugins directory in the following directory, but when I
> run the ntop it still giving me "Unable to find the plugins/ directory"
> why??   Besides, I could not find LsWatch.db, dnsCache.db, hostsInfo.db and
> ntop.access.log that you told me. What should I do? Can I recommend me which
> side should I download the proper package for REDHAT linux 7.0??
>
> [root@lemon ntop]# find / -name plugins -print

A general note: 'find /' is slow and has a couple of risks. Generally you
should use 'locate' or 'slocate'

Another useful command:

rpm -ql ntop

  (gives you the list of files in the package ntop)

rpm -V ntop

  test if those files have changed (or been removed)

Does this package come with an ntop "service"? the script /etc/init.d/ntop

If so, have a look at this script, and maybe use it instead of running
ntop directly.

> /etc/ppp/plugins
> /usr/lib/mozilla/plugins
> /usr/lib/netscape/plugins
> /usr/lib/gedit/plugins
> /usr/lib/gnumeric/0.61/plugins
> /usr/lib/ntop-1.3.1/plugins
> /opt/ntop-1.3.1/plugins

I bet that /opt/ntop-1.3.1 is not from an RPM of powertools. Do you have
another installation of ntop? From where is the command 'ntop' issued? Is
/op/ntop-1.3.1/lib in LD_LIBRARY_PATH or /etc/ld.so.conf ?

>
> [root@lemon ntop]# ntop -w 4000
> ntop v.1.3.1 MT [i686-pc-linux] listening on [eth0].
> Copyright 1998-2000 by Luca Deri <[EMAIL PROTECTED]>
> Get the freshest ntop from http://www.ntop.org/
>
> Initialising...
> Loading plugins (if any)...
> WARNING: Unable to find the plugins/ directory.

If you can't thing of anything else, then use strace. Specifically
something like:

  strace ntop -w 4000

And with some filtering:

  strace ntop -w 4000 2>&1 |egrep ^(open|stat)

To see what files is ntop looking for.

> Waiting for HTTP connections on port 4000...
> Sniffying...
>
> Unloading plugins (if any)...
> 0 packets received by filter on eth0
> 0 packets dropped by kernel
> 0 packets dropped by ntop
>
> [root@lemon ntop]# cd /var/ntop/
> [root@lemon ntop]# ls -l
> total 3676
> -rw-------    1 root     root     76574720 Dec  5 09:42 core
> -rw-r--r--    1 root     root        12288 Dec  4 18:01 logger.db
> -rw-r--r--    1 root     root        12288 Dec  4 17:59 ntop.db
> -rw-r--r--    1 root     root        12396 Dec  4 17:59 ntop_pw.db
>
>
> -----Original Message-----
> From: Burton M. Strauss III [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, January 03, 2002 1:13 AM
> To: Ntop
> Cc: [EMAIL PROTECTED]
> Subject: RE: [Ntop] why ntop not working-> plugins/ directory missing.
>
>
> Most NTop stuff installs under /usr/share/ntop or a similar directory - no
> clue what the RPM uses, but look for the databases:
>
> -rw-r--r--    1 root     ntop        12971 Dec 31 17:42 LsWatch.db
> -rw-r--r--    1 ntop     ntop       247804 Jan  2 11:11 dnsCache.db
> -rw-r--r--    1 ntop     ntop        12288 Dec  9 10:27 hostsInfo.db
> drwxr-xr-x    3 ntop     ntop         4096 Dec 25 20:47 html
> -rw-r--r--    1 ntop     ntop        12288 Jan  1 15:54 logger.db
> -rw-r--r--    1 ntop     ntop      2278379 Jan  2 11:08 ntop.access.log
> -rw-r--r--    1 ntop     ntop        12485 Dec 29 08:02 ntop_pw.db
> drwxr-sr-x    2 ntop     ntop         4096 Dec 11 15:08 plugins
>
> Make sure there is a plugins/ directory under where it installed NTop.  If
> not create it.
>
> Make sure that the NTop user can read/write the databases.
>
> Make sure that the NTop user can read/execute from the plugins directory...
>
> -----Burton
>
>
> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Sim,
> CT (Chee Tong)
> Sent: Tuesday, January 01, 2002 8:38 PM
> To: '[EMAIL PROTECTED]'
> Subject: RE: [Ntop] why ntop not working-> plugins/ directory missing.
>
>
> Dear Friends,
>
> Yes,, I installed the ntop-1.3.1-2.i386.html from the powertool, it is
> successully installed. But I have problem running it, I don't know how to
> run it basically.  After I type Linux#ntop, it gave me the following
> message.   Then I went to http://hostname:3000 the ntop URL is shown, but
> there was no data at all.  What is my problem??
>
>
> [root@lemon simc]# rpm -ivh ntop-1.3.1-2.i386.rpm
> Preparing...                ###########################################
> [100%]
>    1:ntop                   ###########################################
> [100%]
>
> [root@lemon simc]# ntop
> ntop v.1.3.1 MT [i686-pc-linux] listening on [eth0].
> Copyright 1998-2000 by Luca Deri <[EMAIL PROTECTED]>
> Get the freshest ntop from http://www.ntop.org/
>
> Initialising...
> Loading plugins (if any)...
> WARNING: Unable to find the plugins/ directory.
> Waiting for HTTP connections on port 3000...
> Sniffying...
>
> Unloading plugins (if any)...
> 0 packets received by filter on eth0
> 0 packets dropped by kernel
> 0 packets dropped by ntop
> [root@lemon simc]#
>
>
> -----Original Message-----
> From: Tzafrir Cohen [mailto:[EMAIL PROTECTED]]
> Sent: Friday, December 28, 2001 2:10 PM
> To: '[EMAIL PROTECTED]'
> Subject: Re: [Ntop] why ntop not working--> plugins/ directory missing.
>
>
> On Fri, 28 Dec 2001, Sim, CT (Chee Tong) wrote:
>
> > Hi..  Dear friends,
> >
> > I need help. I want to install the NTOP on my Red Hat Linux,
>
> Then you needn't go too far. Grab the package from PowerTools (of the same
> version of your distro).

-- 
Tzafrir Cohen
mailto:[EMAIL PROTECTED]
http://www.technion.ac.il/~tzafrir


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

Reply via email to