LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 12-07-2009, 01:26 AM   #1
nishith
Member
 
Registered: Aug 2008
Posts: 148

Rep: Reputation: 15
Thumbs down Problem while configuring "ntop" on CentOS 5.3


Hello,

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".
 
Old 12-07-2009, 01:55 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
You need also the rrdtool-devel package in order to compile ntop.

Regards
 
Old 12-07-2009, 02:14 AM   #3
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,624

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
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+)

- gdbm, gdbm-devel
- libpcap (http://www.tcpdump.org)
- gd, gd-devel
- libpng, libpng-devel

1b. Optional packages

- openssl, openssl-devel (http://www.openssl.org)
- zlib, zlib-devel
--- `/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
 
Old 12-07-2009, 03:54 AM   #4
nishith
Member
 
Registered: Aug 2008
Posts: 148

Original Poster
Rep: Reputation: 15
Question Success with ntop "html" directory problem.

My "ntop" installation got success & i can open the ntop page by typing
http://localhost:3000

But, it isn't asking me user name & password for "ntop" authentication. I can login with it.

Another thing is : after login "ntop" is saying
"please make sure that ntop html/ directory is properly installed"

Now, during whole installation,i haven't found any step to configure "html" directory for "ntop"

Please Help.

Advanced Thanks,
Nishith Vyas
 
Old 12-07-2009, 04:08 AM   #5
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Before running ntop for the 1st time, you should run
Code:
ntop -A
to create a password for the user admin.
Without it you cannot access the admin pages of ntop.
 
Old 12-07-2009, 04:55 AM   #6
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Gurgaon, India
Distribution: Cent OS 6/7
Posts: 4,631

Rep: Reputation: Disabled
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]
Using service ntop start command.
 
Old 12-07-2009, 06:39 AM   #7
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
@linuxlover.chaitanya

It looks like the startup options are not parsed correctly. Take a look at /etc/ntop.conf, or try to start it manually using the options in that file

Regards
 
Old 12-07-2009, 11:43 PM   #8
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Gurgaon, India
Distribution: Cent OS 6/7
Posts: 4,631

Rep: Reputation: Disabled
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.
 
Old 12-08-2009, 12:44 PM   #9
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
If you cannot find out what is the problem with the startup options, you can put your ntop command with the correct options in rc.local, i.e:
Code:
/usr/sbin/ntop -d -i eth0 -u ntop
Cheers
 
Old 12-09-2009, 11:34 PM   #10
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Gurgaon, India
Distribution: Cent OS 6/7
Posts: 4,631

Rep: Reputation: Disabled
Done that. Let me see if that makes any difference. But is it a bug or something? How do I know that?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
What is the difference btw. "soft nofile" and "hard nofile" by configuring open file? thomas2004ch Linux - Newbie 1 11-17-2009 05:33 AM
Problems configuring "xorg.conf" with "ATI FGLRX" BlueSpirit Slackware 3 09-16-2006 02:01 PM
problem "make"ing gtk+ "/usr/bin/env: perl -w" caid Linux - Newbie 8 07-29-2005 04:51 AM
problem in "configuring" Gaim b0nd Linux - Newbie 7 02-07-2005 05:16 PM
Configuring kernel: Impact of "Y" or "N" vs. "M" Mark_E_Wallace Linux - Newbie 2 02-22-2004 06:02 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 05:59 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration