NTOP - I can't install it! I'm new in Linux! Anyone can help?


Hi,

Can anyone help me to setup NTOP on my Slackware 9.1 ?

I am trying for days, but I can't find what's is wrong!...  Are there any tutorial for dummies :) ?


thks!
ipsystemsAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Karl Heinz KremerCommented:
How are you setting it up? From source, or do you have a compiled package? What problems are you running into?
0
Karl Heinz KremerCommented:
This page has the NTOP FAQ: http://snapshot.ntop.org/faq.php
0
paullamhkgCommented:
as khkremer suggest in ntop.org there is some documentation you can read like this one http://www.ntop.org/ntop-overview.pdf

also have a look here http://www.ntop.org/documentation.html
0
The Ultimate Tool Kit for Technolgy Solution Provi

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy for valuable how-to assets including sample agreements, checklists, flowcharts, and more!

shivsaCommented:
first could u post what u were trying to do and what kinb of error u had.
this will give us idea where u are having problems.
0
shivsaCommented:
1. u get the source for ntop, unpack the source.(use tar zxvf ntop_something.tar.gz).
2. cd ntop
./configure
make
make install

this will install ntop for u.
if u see problem with these steps lets know.
0
shivsaCommented:
to download the ntop.
http://sourceforge.net/project/showfiles.php?group_id=17233&release_id=136698

and choose     ntop-2.2.tgz      2551153       11479       Platform-Independent      Source .gz

file since u are using it on slackware. and do as i said in my previous mail.
0
ipsystemsAuthor Commented:
I compile it, some errors occurs when compiling but finished.

When Make Install this problem occurs:


Installing with "make install"...

========================= Installation results ===========================

Copying documentation directory...
cd . && /bin/sh ./missing --run echo

Making install in .
make[1]: Entering directory `/usr/local/ntop/ntop'
cd . && /bin/sh ./missing --run echo

/bin/sh ./libtool --mode=link gcc -DLINUX -g -O2 -Wshadow -Wpointer-arith -Wmissing-prototypes -Wmissing-declarations -Wnested-externs  -fPIC -DLINUX -g -O2 -Wshadow -Wpointer-arith -Wmissing-prototypes -Wmissing-declarations -Wnested-externs  -fPIC   -o ntop  ntop-main.o ntop-admin.o libntopreport.la libntop.la -lxml2 -lglib -lpthread -lresolv -lnsl -lpng -lm -lssl -lcrypto -lpcap -lgdbm -ldl -lcrypt -lc -L/usr/local/ntop/gdchart0.94c/zlib-1.1.4 -lz
gcc -DLINUX -g -O2 -Wshadow -Wpointer-arith -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -fPIC -DLINUX -g -O2 -Wshadow -Wpointer-arith -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -fPIC -o .libs/ntop ntop-main.o ntop-admin.o  ./.libs/libntopreport.so -L/usr/local/ntop/gdchart0.94c/zlib-1.1.4 ./.libs/libntop.so /usr/lib/libxml2.so /usr/lib/libglib.so -lpthread -lresolv -lnsl -lpng -lm -lssl -lcrypto -lpcap /usr/lib/libgdbm.so -ldl -lcrypt -lc -lz -Wl,--rpath -Wl,/usr/local/lib
./.libs/libntop.so: undefined reference to `pthread_atfork'
collect2: ld returned 1 exit status
make[1]: *** [ntop] Error 1
make[1]: Leaving directory `/usr/local/ntop/ntop'
make: *** [install-recursive] Error 1

****  Installation failed. Aborting package creation.

Restoring overwritten files from backup...OK

Cleaning up...OK

Bye.
0
Karl Heinz KremerCommented:
You may want to try the unstable release. Sometime this year, a check was added for systems that don't have pthread_atfork.
0
shivsaCommented:
Sounds like you're actually running an older gcc, one that doesn't have it?
could u update your gcc to latest before making this.
0
shivsaCommented:
yes khkremer, it was added this year only.
--------------
2003/07/14 20:39:21       2.28       burton       config.h.in
2003/07/14 20:39:21       2.164       burton       initialize.c
2003/07/14 20:39:19       2.137       burton       configure
2003/07/14 20:39:19       2.149       burton       configure.in

Add pthread_atfork() test for those systems which don't have the function.
-----------------------

but i'll suggest that install latest gcc so that u will not face problem with old ntop. and old gcc.
0
shivsaCommented:
0
shivsaCommented:
did u get gcc latest and check if it works ??
0
ipsystemsAuthor Commented:
Yes!.... with 2.2.95
I can compile and install successfully....but
when I start Ntop....

something like   ./ntop -d  (Daemon)

this error occur:

13/Dec/2003 21:12:57  Copyright 1998-2003 by Luca Deri <deri@ntop.org>
13/Dec/2003 21:12:57  Get the freshest ntop from http://www.ntop.org/
13/Dec/2003 21:12:57  Initializing ntop
13/Dec/2003 21:12:57  Resetting traffic statistics for device eth0
13/Dec/2003 21:12:57  Initializing gdbm databases
13/Dec/2003 21:12:57  Now running as requested user '(null)' (99:99)
13/Dec/2003 21:12:57  **FATAL_ERROR** ....open of /usr/local/var/ntop/prefsCache.db failed: File open error
13/Dec/2003 21:12:57  Is another instance of ntop running?


Are there any other way to start NTOP?

0
Karl Heinz KremerCommented:
Did you create the directory /usr/local/var/ntop ? If not, create it, or specify the directory where ntop is supposed to store it's database with the -P flag:

ntop -P /usr/var/ntop

Regardless of which way you go, the directory has to exist.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
shivsaCommented:
Yup u are almost done, just create dir /usr/local/var/ntop and let NTOP know where will be your database files.
with -P option.
ntop -P /usr/local/var/nrop.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Linux Distributions

From novice to tech pro — start learning today.