Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I am having problems in configuring "ntop" on my CentOS 5.3. I have followed all steps which is required as per the documentation.
The installation steps are:-
1) Download the "tar"
2) Extract it.
3) cd to that directory
4) run ./autogen.sh
5) make & make install
I am getting error while executing "make". Below is the error output.
--------------------------------------------------------------
make all-recursive
make[1]: Entering directory `/root/Desktop/tar_118/ntop-3.3.10'
Making all in .
make[2]: Entering directory `/root/Desktop/tar_118/ntop-3.3.10'
if /bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I. -I. -I/root/Desktop/tar_118/ntop-3.3.10/lua-5.1.4/src -DLINUX -I/usr/local/include -I/opt/local/include -g -O2 -I/usr/local/include -I/opt/local/include -Wshadow -Wpointer-arith -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -fPIC -DPIC -I/root/Desktop/tar_118/ntop-3.3.10/GeoIP-1.4.6/libGeoIP/ -MT address.lo -MD -MP -MF ".deps/address.Tpo" -c -o address.lo address.c; \
then mv -f ".deps/address.Tpo" ".deps/address.Plo"; else rm -f ".deps/address.Tpo"; exit 1; fi
gcc -DHAVE_CONFIG_H -I. -I. -I. -I. -I/root/Desktop/tar_118/ntop-3.3.10/lua-5.1.4/src -DLINUX -I/usr/local/include -I/opt/local/include -g -O2 -I/usr/local/include -I/opt/local/include -Wshadow -Wpointer-arith -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -fPIC -DPIC -I/root/Desktop/tar_118/ntop-3.3.10/GeoIP-1.4.6/libGeoIP/ -MT address.lo -MD -MP -MF .deps/address.Tpo -c address.c -fPIC -DPIC -o .libs/address.o
In file included from address.c:21:
ntop.h:477:17: error: rrd.h: No such file or directory
address.c: In function 'dns_response_callback':
address.c:142: warning: assignment discards qualifiers from pointer target type
make[2]: *** [address.lo] Error 1
make[2]: Leaving directory `/root/Desktop/tar_118/ntop-3.3.10'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/Desktop/tar_118/ntop-3.3.10'
make: *** [all] Error 2
--------------------------------------------------------------
Please help.I already installed RRDTool, libpcap & libpcap-devel package as required for "ntop" installation,but still i found error. My ntop packag version is "ntop-3.3.10".
from the " BUILD-NTOP.txt "
do you have these packages installed ?
Quote:
- glibc, glibc-devel, gcc, cpp
- Some version of awk
- libtool (1.4+)
Note that there are reports of success with libtool 1.3.x under
FreeBSD so the script allows this.
- m4
- autoconf (2.53+)
- automake (1.6+)
--- `/root/Desktop/tar_118/ntop-3.3.10' ---- a big no-no
also you SHOULD NOT be building it AS ROOT!!!!!!!
and you should NOT build it on your root desktop!!!!!!!
that is a MS windows thing ( bad habit ) and WILL cause you all kinds of problems
build it in your NORMAL user home folder or a "build" folder that is owned by your normal user
something like this
/usr/opt/src/ntop
where you have done this to the src folder
Code:
chown -R "your user name":"your user name" /usr/opt/src
where "your user name" is replaced WITH your user name and do NOT ad the ""
then AS A NORMAL user run
Code:
./autogen.sh
make
su
( your root password when asked )
make install
Using CentOS5.4 Final. Installed ntop using yum. Configured password for admin using ntop -A.
Now while starting the ntop service it is giving the error.
Code:
Mon Dec 7 16:13:22 2009 NOTE: Interface merge enabled by default
Mon Dec 7 16:13:22 2009 Initializing gdbm databases
FATAL ERROR: Unrecognized/unprocessed ntop options...
, --user ntop, , , --interface eth1, , , , , , , , , --daemon,
run ntop --help for usage information
Common problems:
-B "filter expressions" (quotes are required)
--use-syslog=facilty (the = is required)
[FAILED]
It just gives error if I start it as a daemon. But if started manually with option --user it works. Yes it is error in parsing the file. But I suppose, I have not edited the file. Its just the default configuration that I am trying to use with. I do not know much about ntop. Have not used it much before but I kind of like the utility.
My main aim is to start it as a daemon and at boot up so that I do not have to keep watch at it much and at the end of the day can go through the logs using the web interface and I am done with log watch.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.